/* Admin Panel Light Theme Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #31566D;
    min-height: 100vh;
    line-height: 1.5;
}

/* Admin Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styles */
.admin-sidebar {
    width: 280px;
    background-color: #FFFFFF;
    border-right: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.sidebar-brand {
    font-size: 16px;
    font-weight: 700;
    color: #31566D;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.sidebar-subtitle {
    font-size: 12px;
    color: #4C7189;
    font-weight: 400;
}

/* Navigation Styles */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #4C7189;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 10px;
    margin-bottom: 6px;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #31566D;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #F5F5F5;
    color: #31566D;
}

.nav-link.active {
    background-color: #31a4a0;
    color: #FFFFFF;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #FFFFFF;
}

.nav-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.nav-link span {
    flex: 1;
}

/* Sidebar Footer - User Info and Logout */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #E0E0E0;
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #31a4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #31566D;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11px;
    color: #4C7189;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-form {
    width: 100%;
}

.btn-logout {
    width: 100%;
    padding: 8px 14px;
    background-color: #31a4a0;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #2a8f8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 164, 160, 0.3);
}

.btn-logout:active {
    transform: translateY(0);
}

.btn-logout:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 164, 160, 0.2);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background-color: #F5F5F5;
}

.admin-content {
    padding: 0;
    width: 100%;
}

/* Dashboard Header */
.dashboard-header {
    padding: 24px 32px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-title {
    font-size: 18px;
    font-weight: 700;
    color: #31566D;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.dashboard-subtitle {
    font-size: 13px;
    color: #4C7189;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #F5F5F5;
    border: 1px solid #E0E0E0;
    color: #31566D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background-color: #E8E8E8;
    border-color: #D0D0D0;
    color: #31566D;
}

.icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 164, 160, 0.2);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Dashboard Divider */
.dashboard-divider {
    height: 1px;
    background-color: #E0E0E0;
    margin: 0 32px;
}

/* Dashboard Content */
.dashboard-content {
    padding: 24px 32px;
}

.dashboard-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #31566D;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.dashboard-welcome {
    margin-bottom: 32px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: #31566D;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.welcome-text {
    font-size: 14px;
    color: #4C7189;
    line-height: 1.6;
}

.dashboard-widgets {
    margin-top: 24px;
}

/* Scrollbar Styling */
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }

    .admin-main {
        margin-left: 240px;
    }

    .dashboard-header,
    .dashboard-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .dashboard-header,
    .dashboard-content {
        padding: 20px 16px;
    }

    .dashboard-divider {
        margin: 0 16px;
    }
}

/* Loading States */
.btn-logout:disabled,
.icon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

