/* ==========================================================
   Hamro Jobs - Theme CSS
   Colors taken from logo: Navy Blue (#1b2459) & Sky Blue (#2e9bd6)
   ========================================================== */

:root {
    --navy: #1b2459;
    --sky: #2e9bd6;
    --light-bg: #f4f7fb;
    --white: #ffffff;
    --danger: #d9534f;
    --success: #2ecc71;
    --gray: #6c7a92;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--navy);
    min-height: 100vh;
}

/* ---------- Header / Logo ---------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(27, 36, 89, 0.08);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.site-header img {
    height: 60px;
    width: auto;
}

.site-header h1 {
    font-size: 22px;
    color: var(--navy);
    letter-spacing: 1px;
}

.site-header h1 span {
    color: var(--sky);
}

/* ---------- Container ---------- */
.container {
    max-width: 650px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(27, 36, 89, 0.12);
    padding: 35px 40px;
}

.container h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 26px;
}

.container p.subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 14px;
}

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d6dceb;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.15);
}

/* ---------- Radio Course Options ---------- */
.course-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.course-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #d6dceb;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    transition: all 0.2s;
}

.course-options label:hover {
    border-color: var(--sky);
    background: #f0f8fd;
}

.course-options input[type="radio"] {
    accent-color: var(--sky);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.course-options input[type="radio"]:checked + span {
    color: var(--sky);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--navy), var(--sky));
    color: var(--white);
    border: none;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, #a72d2d, var(--danger));
}

.btn-edit {
    background: linear-gradient(135deg, #1b6fa3, var(--sky));
}

.btn-logout {
    background: var(--gray);
    width: auto;
    padding: 8px 18px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #e6f9ef;
    color: #1c9a5b;
    border: 1px solid #b9eed1;
}

.alert-error {
    background: #fcebea;
    color: #c0392b;
    border: 1px solid #f3c6c2;
}

/* ---------- Footer link ---------- */
.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.footer-link a {
    color: var(--sky);
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Admin Dashboard ---------- */
.admin-wrap {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-topbar h2 {
    color: var(--navy);
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 18px 25px;
    box-shadow: 0 3px 12px rgba(27,36,89,0.08);
    flex: 1;
    min-width: 180px;
    border-left: 5px solid var(--sky);
}

.stat-card h3 {
    font-size: 28px;
    color: var(--navy);
}

.stat-card p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(27,36,89,0.08);
}

table th, table td {
    padding: 13px 15px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eef1f7;
}

table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

table tr:hover {
    background: #f7faff;
}

.badge {
    background: #e7f2fb;
    color: var(--sky);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.action-links {
    display: flex;
    gap: 8px;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: var(--white);
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(27, 36, 89, 0.12);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .course-options {
        grid-template-columns: 1fr;
    }
    .container {
        margin: 20px 15px;
        padding: 25px 20px;
    }
}
