:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

/* Base Utility Classes */
.hidden { display: none !important; }
.active { display: block !important; }
.w-50 { width: 48%; }

/* Typography */
h1 { font-size: 1.8rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Components */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); border-radius: 8px; }
.badge { background: rgba(255,255,255,0.2); font-size: 0.7rem; padding: 4px 8px; border-radius: 20px; font-weight: 400; }

nav { display: flex; gap: 10px; }
.nav-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.nav-btn:hover { background: rgba(255,255,255,0.1); }
.btn-danger { border-color: var(--danger); color: #fca5a5; }
.btn-danger:hover { background: var(--danger); color: white; }

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Role Selection */
.role-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
}

.role-card {
    flex: 1;
    max-width: 400px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Master Form */
.settings-card {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.preview-img {
    margin-top: 10px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.success-msg {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Staff Apps */
.card-header {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}
.card-header h2 { color: white; }
.card-header .subtitle { color: #cbd5e1; }

.app-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.app-card {
    flex: 1;
    max-width: 400px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.btn-outline {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 8px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

.app-card:hover .btn-outline {
    background: var(--primary);
    color: white;
}
