* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
}
a { color: #14532d; }
.muted { color: #9ca3af; }

/* ===== NAV ===== */
.topnav {
    background: #14532d;
    padding: 0 16px;
}
.topnav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.brand {
    color: white !important;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}
.topnav-links a {
    color: #d1fae5 !important;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}
.topnav-links a:hover { color: white !important; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px 60px 16px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
h1 { font-size: 22px; margin: 0; }
.count { color: #9ca3af; font-weight: normal; font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 12px; text-decoration: none; font-size: 14px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #14532d; color: white !important; }
.btn-primary:hover { background: #166534; }

button {
    background: #14532d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
button:hover { background: #166534; }

/* ===== FORM ===== */
fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}
legend {
    font-weight: bold;
    color: #14532d;
    padding: 0 8px;
    font-size: 16px;
}
label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
input[type=text], input[type=tel], input[type=date], input[type=password],
input[type=file], select, textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-weight: normal;
    font-family: inherit;
}
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
@media (max-width: 640px) {
    .grid2 { grid-template-columns: 1fr; }
}
.checkbox-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: normal;
}
.checkbox-row.wrap label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    width: auto;
    margin-bottom: 8px;
}
.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}
input[type=checkbox] { width: auto; }

.steps {
    text-align: center;
    font-weight: bold;
    color: #14532d;
    margin-bottom: 16px;
    font-size: 14px;
}
.step-nav {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
}

/* ===== TABLE ===== */
.candidate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.candidate-table th, .candidate-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.candidate-table th {
    background: #f0fdf4;
    color: #14532d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.small-text { font-size: 12px; color: #6b7280; }

.search-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.search-bar input { flex: 1; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; }

/* ===== BADGES ===== */
.badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}
.badge-not-started { background: #fee2e2; color: #991b1b; }
.badge-in-progress { background: #fef3c7; color: #92400e; }
.badge-ready { background: #dcfce7; color: #14532d; }
.badge-sent-to-employer { background: #dbeafe; color: #1e40af; }

/* ===== PROFILE VIEW ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 700px) {
    .profile-grid { grid-template-columns: 1fr; }
}
.profile-card {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.profile-card h3 {
    color: #14532d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #f0fdf4;
    padding-bottom: 6px;
    margin-top: 0;
}
.profile-card p { font-size: 14px; margin: 6px 0; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #14532d; }

/* ===== LOGIN ===== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #14532d;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 360px;
    text-align: center;
}
.login-box h1 { font-size: 20px; margin-bottom: 4px; }
.login-box form { margin-top: 20px; }
.login-box input { margin-bottom: 12px; text-align: center; }
.login-box button { width: 100%; }
