/* Light Theme Customization */

/* Sidebar must start from top */
.sidebar-drawer {
    height: 100vh;
}

/* Flex column – push content from top */
.sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fixed header */
.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Scrollable menu area */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}


/* Blazor error UI */
#blazor-error-ui {
    background: #FEF3C7;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Light drawer styling */
.mud-drawer {
    background: #F8F9FC !important;
    border-right: 1px solid #E5E7EB !important;
}

.mud-drawer .mud-nav-link {
    color: #6B7280 !important;
    border-radius: 8px;
    margin: 2px 8px;
}

.mud-drawer .mud-nav-link:hover {
    background-color: #EEF2FF !important;
    color: #4F46E5 !important;
}

.mud-drawer .mud-nav-link.active {
    background-color: #E0E7FF !important;
    color: #4F46E5 !important;
    font-weight: 600;
}

/* Light app bar */
.mud-appbar {
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* KPI Card Styling */
.kpi-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #E5E7EB;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Table styling */
.mud-table {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.mud-table-head {
    background: #F9FAFB;
}

.mud-table-row:hover {
    background: #F9FAFB !important;
}

/* Button styling */
.mud-button-root {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

/* Card styling */
.mud-card {
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Dialog styling */
.mud-dialog {
    border-radius: 12px !important;
}

/* Chip/Badge styling */
.mud-chip {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Page content animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Status badges */
.status-paid {
    background: #D1FAE5 !important;
    color: #065F46 !important;
}

.status-pending {
    background: #FEF3C7 !important;
    color: #92400E !important;
}

.status-cancelled {
    background: #FEE2E2 !important;
    color: #991B1B !important;
}
