:root {
    /* Vibrant Green & Blue Palette */
    --primary-color: #00c853;
    /* Vibrant Green */
    --secondary-color: #2979ff;
    /* Bright Blue */
    --accent-color: #00e676;
    /* Neon/Bright Green Accent */

    --bg-gradient: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    /* Soft Blue-Green White Mix */
    --warm-gradient: linear-gradient(to right, #00c853, #2979ff);
    /* Green to Blue Gradient */
    --dark-gradient: linear-gradient(135deg, #102027 0%, #263238 100%);

    --card-dark: #1c252a;
    --text-color: #37474f;
    /* Blue-Grey Text */
    --shadow: 0 10px 30px rgba(0, 200, 83, 0.2);
    /* Green-tinted shadow */
}

body.dark-mode {
    background: #0f0f1b;
    color: #e0e0e0;
}

body.dark-mode .card {
    background: var(--card-dark);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .bg-light {
    background-color: #16213e !important;
}

body.dark-mode .text-muted {
    color: #b0b0b0 !important;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table thead {
    background: #1a1a2e !important;
}

body.dark-mode .search-box {
    background: var(--card-dark) !important;
}

body.dark-mode .list-group-item {
    background: transparent;
    color: #e0e0e0;
}

/* Header Gradient */
.app-header {
    background: var(--warm-gradient);
    padding: 3rem 0;
    border-radius: 0 0 40px 40px;
    margin-bottom: -40px;
    color: white;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* Table Scroll */
.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
}

.table-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
}

body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease-out;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--warm-gradient);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(243, 156, 18, 0.3));
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--secondary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(243, 156, 18, 0.25);
}

.input-group-text {
    background: transparent;
    border-left: none;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.input-group-text:hover {
    color: var(--accent-color);
}

.btn-login {
    background: var(--warm-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

/* Dynamic Input Animation */
.input-group-dynamic {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-dynamic input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-color);
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: 0.5s;
}

.input-group-dynamic label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: 0.5s;
}

.input-group-dynamic input:focus~label,
.input-group-dynamic input:valid~label {
    top: -20px;
    left: 0;
    color: var(--secondary-color);
    font-size: 12px;
}

.input-group-dynamic .bar {
    position: relative;
    display: block;
    width: 100%;
}

.input-group-dynamic .bar::before {
    content: '';
    height: 2px;
    width: 0;
    bottom: 0px;
    position: absolute;
    background: var(--warm-gradient);
    transition: 0.5s ease all;
}

.input-group-dynamic input:focus~.bar::before {
    width: 100%;
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem 0.75rem;
}

.modal-body {
    padding: 0.75rem 1.5rem 1.5rem;
}

.modal-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: none;
}

.welcome-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    animation: bounceIn 0.8s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navbar Styles */
.bg-warm-glass {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
}

.navbar-brand img {
    filter: drop-shadow(0 0 5px rgba(243, 156, 18, 0.5));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background: var(--warm-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Notification Panel */
.notification-panel {
    width: 350px;
    border-radius: 15px !important;
    overflow: hidden;
    padding: 0;
}

.notification-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: rgba(243, 156, 18, 0.05);
}

.notification-item .icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Mobile Sidebar (From the Right) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    z-index: 1050;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: white;
}

.mobile-sidebar.active {
    transform: translateX(-300px);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-sidebar .list-group-item {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s;
}

.mobile-sidebar .list-group-item:hover,
.mobile-sidebar .list-group-item.active {
    background: rgba(243, 156, 18, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.mobile-sidebar .list-group-item.active {
    font-weight: bold;
    border-left: 5px solid var(--primary-color);
}

/* Toasts */
.toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background: var(--warm-gradient);
    color: white;
    border-radius: 12px 12px 0 0;
}

.toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Admin Dashboard Specifics */
.search-box {
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.search-input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input-group input:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-group .btn {
    border-radius: 8px !important;
    margin: 0 2px;
}

/* Custom transitions for modals */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}