/* Modern DBizz Theme - 2025 Design Trends */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --accent-red: #dc2626;
    --light-red: #ef4444;
    --dark-navy: #1e293b;
    --medium-navy: #334155;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --gradient-dark: linear-gradient(135deg, var(--dark-navy), var(--medium-navy));
    --gradient-accent: linear-gradient(135deg, var(--accent-red), var(--light-red));
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    /* color: var(--text-dark); */
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Login Page Background */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.9), 
        rgba(45, 45, 45, 0.8)), 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ff6b35;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23ff8c42;stop-opacity:0.05" /></linearGradient></defs><circle cx="200" cy="150" r="120" fill="url(%23grad1)"/><circle cx="800" cy="400" r="180" fill="url(%23grad1)"/><circle cx="400" cy="600" r="100" fill="url(%23grad1)"/><circle cx="1000" cy="200" r="150" fill="url(%23grad1)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Card Design */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
}

/* Navigation bar */

.nav-item {
    margin: 0.5rem 1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-link:hover, .nav-link.active {
    background: var(--gradient-blue);
    color: var(--white);
    
    text-decoration: none;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Navbar */
.navbar {
    background: var(--white); /* Clean white navbar */
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 0.05em;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: var(--dark-navy);
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 1rem;
    position: relative;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    text-decoration: none;
}

/* Hover effect - blue underline */
.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
    background: transparent !important;
    text-decoration: none;
}

.navbar-nav .nav-link:hover::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    position: absolute;
    bottom: -6px;
    left: 0;
    border-radius: 1px;
}

/* Active link with underline */
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    background: transparent !important;
}

.navbar-nav .nav-link.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    position: absolute;
    bottom: -6px;
    left: 0;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(0); /* Dark burger icon for white navbar */
}

.navbar .btn-outline-primary {
    border-radius: 8px;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

/* Auth buttons (Login & Sign Up) */
.navbar .btn-auth {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    background: var(--primary-blue);
    color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    border: none;
}

.navbar .btn-auth:hover {
    background: var(--secondary-blue);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    background: var(--light-gray);
    min-height: 100vh;
}

/* Header */
.content-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

.content-title {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--light-gray);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: #20c997;
    color: var(--white);
    border: 1px solid #20c997;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    border: 1px solid #dc3545;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Forms */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Tables */
.table {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--gradient-blue);
    color: var(--white);
}

.table th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: dashed;
}

.card-header {
    background: var(--gradient-blue);
    color: var(--white);
    border-bottom: none;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
}

.card-header .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    background: transparent;
}

.card-header .btn-outline-primary:hover,
.card-header .btn-outline-primary:focus {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.card-body {
    padding: 1.5rem;
}

.dashboard-scroll {
    max-height: 320px;
    overflow-y: auto;
}

/* Statistics Cards */
.stats-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(32, 201, 151, 0.1);
    color: #0d7050;
    border-left: 4px solid #20c997;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-success {
    background: #20c997;
    color: var(--white);
}

.badge-danger {
    background: #dc3545;
    color: var(--white);
}

.badge-warning {
    background: #ffc107;
    color: var(--dark-gray);
}

.badge-primary {
    background: var(--primary-blue);
    color: var(--white);
}

/* Progress Bars */
.progress {
    height: 8px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-blue);
    transition: width 0.6s ease;
    border-radius: 10px;
}

/* Loading States */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .content-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Blue gradient text */
.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 1rem 2rem rgba(255, 107, 53, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Action Icon Buttons - Slightly Enlarged */
.btn-sm i,
.btn-outline-primary.btn-sm,
.btn-outline-danger.btn-sm,
.btn-outline-info.btn-sm,
.btn-outline-warning.btn-sm,
.btn-outline-success.btn-sm {
    font-size: 1rem !important;
    padding: 0.5rem 0.7rem !important;
}

.btn-sm i {
    font-size: 1.1rem !important;
}

/* Action button groups with better spacing */
.btn-group .btn-sm {
    min-width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Styles */
footer {
    background: var(--dark-navy) !important;
    border-top: 3px solid var(--primary-blue);
    margin-top: auto;
}

footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .text-primary {
    color: var(--light-blue) !important;
}

footer span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Ensure footer sticks to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container.py-5 {
    flex: 1;
}
.width{
    margin-left: 60px;
    margin-right: 60px;
}