﻿:root {
    --brand: #0f8b78;
    --brand-dark: #0b6f61;
    --bg: #f4f7f9;
    --surface: #ffffff;
    --surface-muted: #f9fbfc;
    --text: #1f2937;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    background: linear-gradient(135deg, #f4f7f9 0%, #eef4f3 100%);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= NAVBAR ================= */

.navbar {
    background: linear-gradient(90deg, var(--brand), #5f9b8b);
    color: white;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

    .navbar .left,
    .navbar .right {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .navbar a {
        color: white;
        font-weight: 600;
        font-size: 15px;
        transition: opacity 0.2s ease;
    }

        .navbar a:hover {
            opacity: 0.85;
        }

/* ================= COMMON PAGE ================= */

.container {
    padding: 32px;
}

.page-title {
    margin: 0 0 24px 0;
    font-size: 32px;
    font-weight: 700;
    color: #183153;
}

/* ================= DASHBOARD CARDS ================= */

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-link-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(229, 231, 235, 0.7);
}

    .dashboard-link-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }

/* ================= TABLES ================= */

.table-wrap {
    background: var(--surface);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    min-width: 1100px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    background: var(--surface-muted);
    color: #23324a;
    font-weight: 700;
    position: sticky;
    top: 0;
}

tr:hover td {
    background: #f6fbfa;
}

td {
    color: var(--text);
}

/* ================= LOGIN PAGE ================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(15,139,120,0.10), transparent 28%), radial-gradient(circle at bottom right, rgba(95,155,139,0.14), transparent 32%), linear-gradient(135deg, #f4f7f9 0%, #eef4f3 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(229, 231, 235, 0.85);
}

.login-inner {
    max-width: 420px;
    margin: 0 auto;
}

.login-brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
    text-align: center;
    margin-bottom: 12px;
}

.login-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #17325c;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
}

.login-subtitle {
    margin: 10px 0 26px 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #22324a;
    font-size: 16px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #cfd7e6;
    border-radius: 12px;
    font-size: 15px;
    background: #eef2ff;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
}

    .form-input:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(15,139,120,0.12);
        background: #fff;
    }

.btn {
    display: inline-block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.18s ease, transform 0.18s ease;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
}

.btn-primary {
    background: #5b9583;
    color: white;
}

    .btn-primary:hover {
        background: #4c8574;
        transform: translateY(-1px);
    }

.btn-block {
    margin-top: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.validation-text {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}
.page-actions {
    margin-bottom: 18px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--brand);
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: background 0.18s ease, transform 0.18s ease;
}

    .btn-action:hover {
        background: var(--brand-dark);
        transform: translateY(-1px);
    }

