@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Minimal Black + Blue */
    --bg-body: #1a1a1a;
    --bg-surface: #2a2a2a;

    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;

    --accent: #3b82f6;
    --border-color: #333333;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1000px;

    /* Transitions */
    --transition-speed: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(4rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Cards - Flat, No Glassmorphism */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-speed);
    border: none;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    padding: 2rem;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding) 0;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.1;
}

.hero p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 auto 48px auto;
    max-width: 600px;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Form Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: var(--transition-speed);
    font-size: 0.95rem;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    background-color: #252525;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cccccc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.input-group select option {
    background-color: var(--bg-surface);
    color: white;
}

/* Profile */
.profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-speed);
}

.profile-pill:hover {
    border-color: var(--accent);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
}

/* Notifications */
.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.notification-btn:hover {
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Popup/Modal */
.popup-card {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 2rem;
    animation: popupFade 0.2s ease;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Utilities */
.hide-mobile {
    display: inline;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 24px;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        width: 280px;
        background: var(--bg-surface);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        padding: 1rem;
    }

    .content-header {
        padding: 1rem !important;
    }

    .view-panel {
        padding: 1rem !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .hide-mobile {
        display: none;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0;
    }
}