:root {
    --primary-color: #16a34a;
    --primary-hover: #15803d;
    --primary-light: #f0fdf4;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-bg: #fef9c3;
    --warning-text: #854d0e;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Albert Sans', sans-serif;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.8s ease-out; }
.animate-slide-right { animation: slideInRight 0.8s ease-out; }
.animate-slide-left { animation: slideInLeft 0.8s ease-out; }

/* Split Layout */
.auth-container {
    min-height: 100vh;
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #065f46 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: var(--white);
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover)) !important;
    border: none !important;
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
}

/* Badges */
.feature-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #064e3b;
    color: white;
    transition: var(--transition);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 12px;
    margin: 4px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.main-content {
    flex: 1;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: white;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* User Profile & Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: #f8fafc;
}

.profile-trigger:hover {
    background: #f1f5f9;
}

.avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.profile-info h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu-custom.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header-custom {
    background: #f0fdf4;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-avatar {
    position: relative;
    width: 70px;
    height: 70px;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-indicator.big {
    width: 16px;
    height: 16px;
    bottom: 4px;
    right: 4px;
}

.header-info h6 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}

.header-info .role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.header-info .email {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-body-custom {
    padding: 12px;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.dropdown-item-custom:hover {
    background: #f8fafc;
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item-custom i {
    font-size: 20px;
    color: var(--text-muted);
}

.dropdown-item-custom:hover i {
    color: var(--primary-color);
}

.logout-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.logout-item {
    color: #e11d48 !important; /* Rose-600 */
}

.logout-item:hover {
    background: #fff1f2 !important;
}

.logout-item i {
    color: #e11d48 !important;
}

.dropdown-footer-custom {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #fcfcfc;
}

.dropdown-footer-custom p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.text-brand {
    color: var(--primary-color);
    font-weight: 700;
}

/* Notifications */
.notifications-trigger {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.notifications-trigger:hover {
    background: #f1f5f9;
}

.notifications-trigger .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    border: 2px solid var(--white);
    font-size: 10px;
    padding: 4px 6px;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bg-green-soft { background: #dcfce7; color: #10b981; }
.bg-blue-soft { background: #dbeafe; color: #3b82f6; }
.bg-purple-soft { background: #f3e8ff; color: #a855f7; }
.bg-orange-soft { background: #fff7ed; color: #f97316; }

.bg-success-soft { background: var(--success-bg); color: var(--success-text); }
.bg-warning-soft { background: var(--warning-bg); color: var(--warning-text); }
.bg-danger-soft { background: var(--danger-bg); color: var(--danger-text); }

.avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Table styling override */
.table thead th {
    background: #f8fafc;
    border-bottom: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 16px;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Profile Tabs */
.nav-tabs {
    gap: 10px;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border-radius: 12px 12px 0 0 !important;
    position: relative;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(22, 163, 74, 0.05) !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    background: transparent !important;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px 10px 0 0;
}

.list-group-item-action {
    transition: var(--transition);
}

.list-group-item-action:hover {
    background-color: var(--primary-light) !important;
    transform: translateX(5px);
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .main-content {
        width: calc(100% - 280px);
    }
}

/* Theme Toggle Buttons */
.btn-group-theme {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    display: inline-flex;
    gap: 4px;
}

.btn-group-theme .btn {
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    background: transparent;
    white-space: nowrap;
}

.btn-group-theme .btn:hover {
    color: var(--primary-color);
    background: rgba(22, 163, 74, 0.05);
}

.btn-group-theme .btn.active,
.btn-group-theme .btn-check:checked + .btn {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

