/* EventHive Modern Design System 
   Inspired by Linear, Notion, Vercel
*/

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

:root {
    /* Color Palette */
    --primary: #534AB7;
    --primary-light: #EEEDFE;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F3;
    --bg-tertiary: #EFEDE8;
    --text-primary: #1A1A19;
    --text-secondary: #6B6B68;
    --text-tertiary: #9B9B98;
    --border-default: #E0E0DE;
    
    /* Status Colors */
    --success-fill: #EAF3DE;
    --success-text: #3B6D11;
    --warning-fill: #FAEEDA;
    --warning-text: #854F0B;
    --info-fill: #E6F1FB;
    --info-text: #185FA5;
    --error-fill: #FCEBEB;
    --error-text: #A32D2D;
    --neutral-fill: #F1EFE8;
    --neutral-text: #5F5E5A;

    /* Spacing & Radius */
    --radius-card: 12px;
    --radius-button: 8px;
    --radius-pill: 100px;
    --padding-component: 16px;
    --gap-section: 20px;
    --gap-grid: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: opacity 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-primary);
}

.text-muted { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* Premium Sidebar Navigation Items (Beautiful & Functional) */
.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary);
}

/* Beautiful Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-button);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0.5px solid transparent;
    gap: 8px;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary { background-color: white; color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { background-color: var(--bg-secondary); border-color: var(--text-tertiary); }

.btn-ghost { background-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background-color: var(--bg-secondary); color: var(--text-primary); }

/* Layout Containers */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px;
    background-color: var(--bg-primary);
    border-right: 0.5px solid var(--border-default);
    position: sticky;
    top: 0;
    height: 100vh;
}

.topbar {
    height: 52px;
    background-color: var(--bg-primary);
    border-bottom: 0.5px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.main-content { flex: 1; min-width: 0; }

/* Cards & Badges */
.card {
    background-color: var(--bg-primary);
    border: 0.5px solid var(--border-default);
    border-radius: var(--radius-card);
    padding: var(--padding-component);
    transition: box-shadow 0.2s;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: var(--success-fill); color: var(--success-text); }
.badge-warning { background: var(--warning-fill); color: var(--warning-text); }
.badge-info { background: var(--info-fill); color: var(--info-text); }
.badge-error { background: var(--error-fill); color: var(--error-text); }
.badge-neutral { background: var(--neutral-fill); color: var(--neutral-text); }

/* Grid Utilities */
.grid { display: grid; gap: var(--gap-grid); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Role Cards for Landing */
.role-card {
    background-color: var(--bg-primary);
    border: 0.5px solid var(--border-default);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    color: inherit;
}

.role-card:hover { 
    background-color: var(--bg-secondary); 
    transform: translateY(-2px); 
    border-color: var(--primary);
}

/* Auth Pages */
.auth-page { display: flex; align-items: center; justify-content: center; height: 100vh; background-color: var(--bg-primary); }
.auth-card { width: 400px; padding: 32px; border: 1.5px solid var(--border-default); border-radius: 16px; }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 0.5px solid var(--border-default); }
.auth-tab { flex: 1; text-align: center; padding: 8px 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-secondary); position: relative; }
.auth-tab.active { color: var(--text-primary); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background-color: var(--primary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 10px 12px; border: 0.5px solid var(--border-default); border-radius: 8px; font-family: inherit; font-size: 13px; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--primary); }
