:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Dark Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1030;
    overflow-y: auto;
}

.sidebar .nav-link {
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar .nav-link:hover:before {
    left: 100%;
}

.sidebar .nav-link:hover {
    transform: translateX(5px);
    background-color: rgba(108, 92, 231, 0.2) !important;
    color: var(--primary) !important;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
}

.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header adjustments */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    z-index: 1020;
    transition: left 0.3s ease;
}

/* Main content adjustments */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - var(--header-height));
}

/* Avatar Styles */
.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .header {
        left: 0 !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Custom badge positioning for header icons */
.btn-link .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
}

/* Table styles */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove any default body spacing */
body {
    margin: 0;
    padding: 0;
}

/* Ensure sidebar starts from top */
.sidebar {
    top: 0 !important;
    left: 0 !important;
}

/* Fix for any potential padding in sidebar content */
.sidebar-header {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Ensure no gaps in the layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}


.progress-circle {
    position: relative;
    display: inline-block;
}

.object-fit-cover {
    object-fit: cover;
}

.card {
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
}

.btn {
    border-radius: 8px;
}

.badge {
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}