/* Admin Panel Styles - Uses CSS variables from landing.css */

/* ===== App Bar ===== */
.admin-app-bar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.admin-app-bar .mud-toolbar {
    height: 70px;
    min-height: 70px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.admin-logo {
    height: 45px;
    width: auto;
    margin-right: 16px;
}

.banner-btn {
    background: #1a237e;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #534bae;
    transform: translateY(-2px);
}

.banner-username {
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 8px;
}


/* ===== Navigation Menu ===== */
.admin-nav-menu .mud-menu-activator {
    color: var(--text-dark);
}

.admin-nav-menu .mud-menu-activator:hover {
    color: var(--primary-color);
}

.mud-menu .mud-popover-paper {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    min-width: 240px;
    padding: 8px 0;
}

.mud-menu .mud-menu-item {
    border-radius: 8px;
    margin: 2px 8px;
    padding: 10px 16px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.mud-menu .mud-menu-item:hover {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    color: var(--primary-color);
}

.mud-menu .mud-menu-item .mud-icon-root {
    margin-right: 12px;
    color: inherit;
}

.menu-section-label {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px 6px 24px;
}

.menu-user-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-section-label {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 16px 8px 16px;
}

/* ===== Main Content ===== */
.admin-main-content {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    min-height: calc(100vh - 70px);
}

.admin-page-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Statistics Cards ===== */
.stat-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.stat-card-clickable {
    cursor: pointer;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper .mud-icon-root {
    color: var(--primary-color);
    font-size: 28px;
}

.stat-icon-wrapper.orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.stat-icon-wrapper.orange .mud-icon-root {
    color: #f57c00;
}

.stat-icon-wrapper.green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.stat-icon-wrapper.green .mud-icon-root {
    color: #43a047;
}

.stat-icon-wrapper.blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.stat-icon-wrapper.blue .mud-icon-root {
    color: #1976d2;
}

.stat-icon-wrapper.red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.stat-icon-wrapper.red .mud-icon-root {
    color: #e53935;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-sublabel {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ===== Section Cards ===== */
.admin-section-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: var(--white);
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Quick Action Buttons ===== */
.quick-action-btn {
    border-radius: 25px !important;
    padding: 10px 24px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

/* ===== Table Styling ===== */
.admin-table {
    border-radius: 12px;
    overflow: hidden;
}

.admin-table .mud-table-head {
    background: var(--bg-light);
}

.admin-table .mud-table-row:hover {
    background: #fafafa;
}

.admin-table .mud-chip {
    border-radius: 12px;
}

/* ===== Empty State ===== */
.empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon .mud-icon-root {
    color: var(--primary-color);
    font-size: 40px;
}

/* ===== Venue Cards ===== */
.venue-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.venue-card-header {
    padding: 16px 16px 0 16px;
    display: flex;
    justify-content: flex-end;
}

.venue-card-status {
    display: flex;
    gap: 8px;
}

.venue-card-content {
    padding: 0 16px 16px 16px;
    flex: 1;
}

.venue-card-title:hover {
    color: var(--primary-color) !important;
}

.venue-card-details {
    margin-top: 8px;
}

.venue-card-actions {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    background: var(--bg-light);
}

/* ===== Photo Preview ===== */
.photo-preview-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Responsive ===== */

@media (max-width: 599.98px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .quick-action-btn {
        width: 100%;
    }

    .mud-menu .mud-popover-paper {
        min-width: 200px;
    }
}

/* ===== Calendar Styles ===== */

/* Month View */
.calendar-month-view {
    display: flex;
    flex-direction: column;
}

.calendar-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
}

.calendar-header-cell {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-cell {
    min-height: 120px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day-cell:hover {
    background-color: #f5f5f5;
}

.calendar-day-cell:nth-child(7n) {
    border-right: none;
}

.calendar-day-cell.other-month {
    background-color: #fafafa;
}

.calendar-day-cell.other-month .day-number {
    color: #bdbdbd;
}

.calendar-day-cell.today {
    background-color: #e3f2fd;
}

.day-header {
    display: flex;
    justify-content: flex-end;
    padding: 4px;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.today-badge {
    background: #1976d2;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-bookings {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.more-bookings-link {
    font-size: 0.75rem;
    color: #1976d2;
    cursor: pointer;
    padding: 2px 6px;
    font-weight: 500;
}

.more-bookings-link:hover {
    text-decoration: underline;
}

/* Week View */
.calendar-week-view {
    display: flex;
    flex-direction: column;
}

.calendar-week-header {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.calendar-time-gutter {
    border-right: 1px solid #e0e0e0;
}

.calendar-week-header-cell {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.calendar-week-header-cell:last-child {
    border-right: none;
}

.calendar-week-header-cell.today {
    background-color: #e3f2fd;
}

.header-day-name {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.header-day-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 4px;
}

.header-day-number.today-badge {
    background: #1976d2;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-week-body {
    max-height: 600px;
    overflow-y: auto;
}

.calendar-week-scroll {
    display: flex;
    flex-direction: column;
}

.calendar-time-row {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    min-height: 60px;
}

.calendar-time-label {
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
    border-right: 1px solid #e0e0e0;
    background: #fafafa;
}

.calendar-time-cell {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #f0f0f0;
    padding: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-time-cell:last-child {
    border-right: none;
}

.calendar-time-cell:hover {
    background-color: #f5f5f5;
}

.calendar-time-cell.today {
    background-color: #e3f2fd40;
}

/* Booking Chip */
.calendar-booking-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-booking-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-booking-chip.status-pending {
    background-color: #fff3e0;
    border-left: 3px solid #f57c00;
    color: #e65100;
}

.calendar-booking-chip.status-approved {
    background-color: #e8f5e9;
    border-left: 3px solid #43a047;
    color: #2e7d32;
}

.calendar-booking-chip.status-rejected {
    background-color: #ffebee;
    border-left: 3px solid #e53935;
    color: #c62828;
}

.chip-content {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.chip-warning-icon {
    color: #f57c00;
    font-size: 14px !important;
}

.chip-time {
    font-weight: 600;
    white-space: nowrap;
}

.chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.chip-guests {
    font-size: 0.65rem;
    opacity: 0.8;
    white-space: nowrap;
}

.chip-quick-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 4px;
}

.chip-quick-actions .mud-icon-button {
    padding: 2px !important;
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
}

/* Legend */
.legend-chip {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border-left-width: 3px;
    border-left-style: solid;
}

.legend-chip.status-pending {
    background-color: #fff3e0;
    border-left-color: #f57c00;
}

.legend-chip.status-approved {
    background-color: #e8f5e9;
    border-left-color: #43a047;
}

.legend-chip.status-rejected {
    background-color: #ffebee;
    border-left-color: #e53935;
}

/* Booking List Item in Day Dialog */
.booking-list-item {
    border-radius: 8px;
    margin: 4px 0;
    transition: background-color 0.2s ease;
}

.booking-list-item:hover {
    background-color: #f5f5f5;
}

/* Calendar Responsive */
@media (max-width: 959.98px) {
    .calendar-day-cell {
        min-height: 80px;
    }

    .calendar-week-body {
        max-height: 400px;
    }

    .calendar-time-row {
        min-height: 50px;
    }

    .calendar-booking-chip {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

@media (max-width: 599.98px) {
    .calendar-header-cell {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .calendar-day-cell {
        min-height: 60px;
        padding: 2px;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .today-badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .calendar-booking-chip .chip-name {
        max-width: 40px;
    }
}
