/* =====================================================
   VERSHY - Style glowne
   Schemat: niebiesko-bialy (jak BaseLinker)
   ===================================================== */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-lighter: #dbeafe;
    --accent: #06b6d4;
    
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    
    --radius: 8px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

h1, h2, h3 { color: var(--text); margin: 0 0 16px; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.login-footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 24px;
    font-size: 13px;
}

/* =====================================================
   FORM
   ===================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-logout {
    background: transparent;
    color: white;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 24px;
}

.topbar .logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav a {
    color: rgba(255,255,255,0.8);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.nav a.active {
    background: var(--primary-dark);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: var(--accent);
    color: white;
}

.badge-pak {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* =====================================================
   MAIN
   ===================================================== */
.main {
    padding: 32px 0;
}

.container-app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.lead {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
}

/* =====================================================
   CARD
   ===================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.card h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.card ul {
    margin: 8px 0;
    padding-left: 20px;
}

.card li {
    margin-bottom: 4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
    .nav { order: 3; width: 100%; overflow-x: auto; }
    .container-app { padding: 0 16px; }
    .main { padding: 16px 0; }
    h1 { font-size: 20px; }
}
