@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #f72585;
    --accent-color: #4cc9f0;
    --dark-bg: #10121e;
    --card-bg: #ffffff;
    --text-color: #2b2d42;
    --border-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f3f4f8;
    color: var(--text-color);
}

/* Auth Pages (Login/Register) */
.auth-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    padding: 30px;
    color: white;
}

.auth-body {
    padding: 30px;
}

.btn-auth {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    color: white;
    filter: brightness(1.1);
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    border-color: var(--primary-color);
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
}

/* Dashboard & Panels */
.main-content {
    margin-left: 280px;
    /* Space for Fixed Sidebar */
    transition: margin-left 0.3s;
}

.sidebar {
    background: linear-gradient(180deg, #1a1c29 0%, #10121e 100%);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar .nav-link {
    color: #aeb4c0;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    font-weight: 600;
}

/* Stats Cards */
.bg-gradient-primary {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(45deg, #2ec4b6, #20bf55);
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ff9f1c, #ffbf69);
    color: white;
}

.bg-gradient-danger {
    background: linear-gradient(45deg, #ef233c, #d90429);
    color: white;
}

.bg-gradient-info {
    background: linear-gradient(45deg, #4cc9f0, #4895ef);
    color: white;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f9;
}

.table td {
    vertical-align: middle;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .d-flex {
        /* Fix flex container on mobile to prevent overflow */
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        /* Hide by default */
        height: 100vh;
        width: 280px;
        z-index: 1050;
        transition: 0.3s ease-in-out;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, #10121e 0%, #1a1c29 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.landing-feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

.landing-feature-card:hover {
    transform: translateY(-10px);
}

.landing-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.landing-footer {
    background: #10121e;
    color: #aeb4c0;
    padding: 60px 0 20px;
}

.landing-footer a {
    color: #aeb4c0;
    text-decoration: none;
    transition: color 0.3s;
}

.landing-footer a:hover {
    color: white;
}