:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #818cf8;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding-top: 0;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(95deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    padding-top: 1rem;
}

.sidebar-brand {
    font-size: 2.2rem !important;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem;
}

.sidebar .nav-link,
.sidebar .navbar-brand,
.sidebar-bottom-btn,
.sidebar .nav-link:visited,
.sidebar .nav-link:active,
.sidebar .nav-link:focus {
    color: #fff !important;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.sidebar .nav-link,
.sidebar-bottom-btn {
    width: 90%;
    text-align: center;
    border-radius: 1.5rem;
    margin: 0.2rem 0;
    background: none !important;
}

    .sidebar .nav-link.active,
    .sidebar .nav-link:hover,
    .sidebar-bottom-btn:hover {
        background: none !important;
        color: #fff !important;
    }

    .sidebar .nav-link i,
    .sidebar-bottom-btn i {
        transition: transform 0.2s;
    }

    .sidebar .nav-link:hover i,
    .sidebar-bottom-btn:hover i {
        transform: scale(1.25);
    }

.sidebar-search .form-control {
    min-width: 120px;
    max-width: 160px;
    border-radius: 2rem !important;
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    margin: 0 auto;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

    .sidebar-search .form-control::placeholder {
        color: rgba(255,255,255,0.7);
    }

.sidebar-bottom-btn {
    width: 90%;
    border-radius: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Navbar Styles */
.navbar-glass {
    background: linear-gradient(185deg, var(--primary-color), var(--secondary-color));
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    opacity: 0.9;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0.2rem;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.1);
    }

.brand-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white) !important;
}

/* Search Input Styles */
.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    min-width: 250px;
}

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .search-input:focus {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--white);
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
    }

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

/* Content Wrapper */
.content-wrapper {
    margin-left: 300px;
    padding: 2rem 0;
    min-height: calc(100vh - 4.5rem);
}


/* Alert Styles */
.alert {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}

/* Progress Bar */
.progress {
    height: 0.8rem;
    border-radius: 1rem;
    background-color: #e2e8f0;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 1rem;
}

/* Custom Focus Styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }

        .navbar-nav .nav-link {
            padding: 0.5rem 1rem;
            margin: 0.2rem 0;
        }

    .search-input {
        min-width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
