/* Venue Management System — My Venues Dashboard */

.vms-dashboard {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding-top: 140px;
    font-family: "Host Grotesk", sans-serif;
}

@media screen and (max-width: 991px) {
    .vms-dashboard {
        padding-top: 140px;
    }
}

@media screen and (max-width: 575px) {
    .vms-dashboard {
        padding-top: 80px;
    }
}

.vms-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0278ae 0%, #015a84 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(2, 120, 174, 0.22);
}

.vms-dashboard-title {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
}

.vms-dashboard-subtitle {
    margin: 0;
    font-size: 15px;
    opacity: 0.92;
}

.vms-add-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    background: #fff;
    color: #0278ae !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.vms-add-new-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.vms-dashboard-header .vms-add-new-btn:hover {
    color: #0278ae !important;
    border-color: #fff;
    transform: translateY(0);
    box-shadow: none;
}

.vms-add-new-btn-inline {
    margin-top: 8px;
}

.vms-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.vms-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vms-stat-total { border-left: 4px solid #7b61ff; }
.vms-stat-success { border-left: 4px solid #00a32a; }
.vms-stat-warning { border-left: 4px solid #dba617; }
.vms-stat-danger { border-left: 4px solid #d63638; }

.vms-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f6f7f7;
}

.vms-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vms-stat-total .vms-stat-icon { color: #7b61ff; background: #f3f0ff; }
.vms-stat-success .vms-stat-icon { color: #00a32a; background: #edfaef; }
.vms-stat-warning .vms-stat-icon { color: #dba617; background: #fcf0e3; }
.vms-stat-danger .vms-stat-icon { color: #d63638; background: #fcf0f1; }

.vms-stat-number {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #1d2327;
}

.vms-stat-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #646970;
}

.vms-filter-section {
    margin-bottom: 20px;
}

.vms-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vms-filter-tab {
    padding: 10px 18px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #fff;
    color: #50575e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vms-filter-tab:hover {
    border-color: #0278ae;
    color: #0278ae;
}

.vms-filter-tab.active {
    background: #0278ae;
    border-color: #0278ae;
    color: #fff;
}

.vms-venues-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vms-venue-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vms-venue-item.is-hidden {
    display: none;
}

.vms-venue-thumbnail {
    position: relative;
    width: 180px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
}

.vms-venue-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vms-venue-thumbnail.has-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vms-venue-thumbnail.has-placeholder img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.vms-venue-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vms-venue-thumbnail:hover .vms-venue-overlay {
    opacity: 1;
}

.vms-view-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0278ae;
    text-decoration: none;
}

.vms-venue-info {
    min-width: 0;
}

.vms-venue-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.vms-venue-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
}

.vms-venue-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vms-venue-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vms-status-publish {
    background: #edfaef;
    color: #007017;
}

.vms-status-pending {
    background: #fcf0e3;
    color: #9a6700;
}

.vms-status-draft {
    background: #fcf0e3;
    color: #9a6700;
}

.vms-status-rejected {
    background: #fcf0f1;
    color: #8a1f1f;
}

.vms-venue-locations {
    margin-bottom: 10px;
    font-size: 14px;
    color: #646970;
}

.vms-venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.vms-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #646970;
}

.vms-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #a7aaad;
}

.vms-rejection-message,
.vms-pending-message,
.vms-approved-message,
.vms-status-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.vms-status-message-approved,
.vms-approved-message {
    background: #edfaef;
    color: #007017;
    border-left: 4px solid #00a32a;
}

.vms-rejection-message,
.vms-status-message-rejected {
    background: #fcf0f1;
    color: #8a1f1f;
    border-left: 4px solid #d63638;
}

.vms-pending-message,
.vms-status-message-pending {
    background: #fcf0e3;
    color: #9a6700;
    border-left: 4px solid #dba617;
}

.vms-rejection-message p,
.vms-pending-message p,
.vms-approved-message p,
.vms-status-message p {
    margin: 0;
}

.vms-venue-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 130px;
}

.vms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.vms-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.vms-btn-edit {
    background: #00a0d2;
    color: #fff !important;
}

.vms-btn-edit:hover {
    background: #0087b3;
    color: #fff !important;
}

.vms-btn-view {
    background: #0278ae;
    color: #fff !important;
}

.vms-btn-view:hover {
    background: #026291;
    color: #fff !important;
}

.vms-btn-delete {
    background: #d63638;
    color: #fff;
}

.vms-btn-delete:hover {
    background: #b32d2e;
    color: #fff;
}

.vms-empty-state {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.vms-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f0f6fc;
    color: #0278ae;
    font-size: 34px;
}

.vms-empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.vms-empty-state p {
    margin: 0 0 20px;
    color: #646970;
}

@media (max-width: 960px) {
    .vms-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vms-venue-item {
        grid-template-columns: 1fr;
    }

    .vms-venue-thumbnail {
        width: 100%;
        height: 180px;
    }

    .vms-venue-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .vms-btn {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 782px) {
    .vms-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vms-stats-grid {
        grid-template-columns: 1fr;
    }

    .vms-venue-header {
        flex-direction: column;
    }
}
