* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #f4f6f9; color: #222; line-height: 1.5; }
a { text-decoration: none; color: inherit; }

/* ---------- Navbar ---------- */
.navbar {
    background: #1e293b;
    color: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .brand { font-size: 22px; font-weight: 700; }
.navbar a.nav-link {
    color: #fff;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.2s;
}
.navbar a.nav-link:hover { background: #334155; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}
.hero h1 { font-size: 36px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: 0.9; }

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

/* ---------- Job Cards ---------- */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.job-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #2563eb;
}
.job-card h3 { margin-bottom: 8px; color: #1e293b; }
.job-card .meta { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.job-card p { font-size: 14px; margin-bottom: 14px; color: #334155; }
.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 6px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.btn:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.form-card h2 { margin-bottom: 20px; color: #1e293b; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #334155; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #2563eb; }
.error-text { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- HR Login ---------- */
.login-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Dashboard ---------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.stats-row { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-box {
    background: #fff;
    padding: 18px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 140px;
    text-align: center;
}
.stat-box .num { font-size: 26px; font-weight: 700; color: #2563eb; }
.stat-box .label { font-size: 13px; color: #64748b; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
thead { background: #1e293b; color: #fff; }
th, td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #e2e8f0; }
tbody tr:hover { background: #f1f5f9; }
.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-New { background: #dbeafe; color: #1e40af; }
.status-Shortlisted { background: #fef9c3; color: #854d0e; }
.status-Interview { background: #e0e7ff; color: #4338ca; }
.status-Rejected { background: #fee2e2; color: #991b1b; }
.status-Hired { background: #dcfce7; color: #166534; }

.actions a, .actions button { margin-right: 6px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; }

footer { text-align: center; padding: 20px; color: #94a3b8; font-size: 13px; }

@media (max-width: 700px) {
    .navbar { flex-direction: column; gap: 10px; }
    table { font-size: 12px; }
}
