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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    min-height: 100vh;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: #1a3a5c;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-brand a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
    color: #c8d6e5;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-user { color: #8abae0; font-size: 13px; margin-left: 10px; }
.nav-notif { position: relative; font-size: 18px; text-decoration: none; margin-left: 8px; }
.notif-badge {
    position: absolute; top: -8px; right: -10px;
    background: #e74c3c; color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; line-height: 18px;
    border-radius: 9px; text-align: center; padding: 0 4px;
}
.btn-logout {
    background: #e74c3c;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
}

/* ---------- CONTAINER ---------- */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

/* ---------- LANDING / LOGIN ---------- */
.landing-hero {
    text-align: center;
    padding: 60px 20px 30px;
}
.landing-hero h1 { font-size: 36px; color: #1a3a5c; margin-bottom: 10px; }
.landing-hero p { font-size: 18px; color: #666; margin-bottom: 40px; }

.login-box {
    max-width: 420px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.login-box h2 { margin-bottom: 25px; color: #1a3a5c; font-size: 22px; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}
.form-row {
    display: flex;
    gap: 18px;
}
.form-row .form-group { flex: 1; }

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}
.btn:hover { background: #15304d; }
.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-warning { background: #ffc107; color: #333; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; text-align: center; }

.link-text { color: #3498db; text-decoration: none; font-size: 14px; }
.link-text:hover { text-decoration: underline; }

/* ---------- CARDS ---------- */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 25px;
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 15px; color: #1a3a5c; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-align: center;
}
.stat-card .number { font-size: 32px; font-weight: 700; color: #1a3a5c; }
.stat-card .label { font-size: 14px; color: #888; margin-top: 5px; }

/* ---------- TABLES ---------- */
.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
th, td { padding: 12px 16px; text-align: left; font-size: 14px; }
th { background: #1a3a5c; color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #f8f9fa; }
tr:hover { background: #eef3f8; }

/* ---------- REGISTER ROLE SELECTOR ---------- */
.role-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.role-option {
    flex: 1;
    text-align: center;
    padding: 25px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
}
.role-option:hover, .role-option.active {
    border-color: #1a3a5c;
    background: #eef3f8;
}
.role-option h4 { margin-bottom: 6px; color: #1a3a5c; }
.role-option p { font-size: 13px; color: #888; }

/* ---------- PENDING PAGE ---------- */
.pending-box {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.pending-box h2 { color: #f39c12; margin-bottom: 15px; }
.pending-box p { color: #666; line-height: 1.6; }

/* ---------- DOCUMENTS PREVIEW ---------- */
.doc-link {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4fd;
    color: #2980b9;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
.doc-link:hover { background: #d1e9f7; }

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    margin-top: 40px;
}

/* ---------- ERROR / INFO ---------- */
.error-text { color: #dc3545; font-size: 13px; margin-top: 4px; }
.text-muted { color: #999; font-size: 13px; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
