:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 0.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    position: fixed;
    top: 5rem;
    left: 0.5rem;
    width: 240px;
    height: calc(100vh - 6rem);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    flex-shrink: 0;
    padding: 0.5rem 0;
}

.sidebar-header h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    color: white;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.sidebar-menu a:hover::before {
    transform: scaleY(1);
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-menu a.active::before {
    transform: scaleY(1);
    background: white;
}

.sidebar-menu i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    width: 1.2rem;
    text-align: center;
}

.sidebar-title {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    flex-shrink: 0;
    padding-top: 1rem;
}

.sidebar-footer .card {
    border: none;
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-footer .card-body {
    padding: 0.75rem;
}

.sidebar-footer h6 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.sidebar-footer h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        margin: 0;
        height: calc(100vh - 4rem);
        border-radius: 0;
        top: 4rem;
        left: 0;
        width: 220px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
        margin-right: 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        margin-right: 0.5rem;
        order: -1;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }

    .dropdown-menu {
        border: none;
        box-shadow: var(--box-shadow);
    }
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.5;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 3D Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Main Content Adjustment */
.main-content {
    margin-top: 5rem;
}

@media (max-width: 991.98px) {
    .main-content {
        margin-top: 4rem;
    }
}

.custom-thead-table {
    border-radius: 10px;
    overflow: hidden;
}

.custom-thead-table thead th {
    background: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 15px;
}

.custom-thead-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.custom-thead-table tbody tr:hover {
    background: #f8f9fa;
}