/* ========== PathLab Base Styles ========== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
    --border: #dee2e6;
    --radius: 0.75rem;
    --shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; }

.form-label { font-weight: 500; margin-bottom: 0.25rem; display: block; }
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15); }

.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: #6c757d; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.d-none { display: none; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.header-main {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img { display: block; }
.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-main {
    padding: 1rem;
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--light);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}
.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.flash-error {
    background: #fee;
    border-color: #fcc;
    color: #900;
}
.flash-success {
    background: #efe;
    border-color: #cfc;
    color: #060;
}