/* Google Anti-Gravity Inspired Theme */
:root {
    --primary-color: #6200ea;
    /* Deep Purple */
    --secondary-color: #00bfa5;
    /* Teal */
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
    --sidebar-width: 260px;
    --br: 16px;
    /* Border Radius */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--card-bg);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(98, 0, 234, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Antigravity Cards */
.card {
    border: none;
    border-radius: var(--br);
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(98, 0, 234, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    font-weight: 700;
    color: #444;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(98, 0, 234, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(98, 0, 234, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5000c2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(98, 0, 234, 0.4);
}

/* Tables */
.table-custom th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.table-custom td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f8f8;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-new {
    background: #e3f2fd;
    color: #1565c0;
}

.status-won {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-lost {
    background: #ffebee;
    color: #c62828;
}

/* Login */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card {
    width: 400px;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        width: 260px;
        left: -260px;
        z-index: 1050;
    }

    .sidebar.show {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .table-responsive {
        border-radius: var(--br);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust cards on mobile */
    .card-body {
        padding: 1rem;
    }

    /* Dashboard Grid */
    .row-cols-md-3>.col {
        margin-bottom: 1rem;
    }

    /* Login */
    .login-card {
        width: 90%;
        max-width: 400px;
    }
}

/* Sidebar Toggle Button (Visible on mobile) */
.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: inline-block;
    }
}