/* =========================
   VARIABLES
========================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #16a34a;
    --danger: #dc2626;

    --text-main: #111827;
    --text-muted: #4b5563;

    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --bg-soft: #f9fafb;

    --border: #d1d5db;
    --radius: 10px;

    --shadow: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 28px rgba(0,0,0,0.12);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: min(92%, 1100px);
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */
.header {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.header nav a {
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.header nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   HERO (FIXED & BALANCED)
========================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 17px;
    max-width: 520px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

/* =========================
   CARDS
========================= */
.card,
.hero-card,
.dashboard-card,
.auth-box {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* =========================
   ADMIN HERO CARD
========================= */
.hero-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.hero-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.hero-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================
   BUTTONS (CLEAR & VISIBLE)
========================= */
.btn,
button {
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--success);
    color: #ffffff;
}

.btn.secondary {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #111827;
}

.btn.dark {
    background: #111827;
    color: #ffffff;
}

.btn.danger {
    background: var(--danger);
    color: #ffffff;
}

/* =========================
   FEATURES SECTION
========================= */
.features {
    background: #ffffff;
    padding: 80px 0 60px;
}

.features h3 {
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
}

/* =========================
   DASHBOARD
========================= */
.dashboard {
    padding: 50px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* =========================
   TABLES (VERY READABLE)
========================= */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #1e3a8a;
    color: #ffffff;
    padding: 12px;
    font-size: 14px;
    text-align: left;
}

.table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.table tr:nth-child(even) {
    background: #f9fafb;
}

.table tr:hover {
    background: #eef2ff;
}

/* =========================
   STATUS BADGES
========================= */
.status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.status.Pending {
    background: #fde68a;
    color: #78350f;
}

.status.Approved {
    background: #bbf7d0;
    color: #14532d;
}

.status.Rejected {
    background: #fecaca;
    color: #7f1d1d;
}

/* =========================
   FORMS
========================= */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

/* =========================
   ALERTS
========================= */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111827;
    color: #e5e7eb;
    padding: 20px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .header-flex,
    .footer-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 32px;
    }
}
/* HERO BANNER BACKGROUND */
.hero-banner {
    position: relative;
    background: url('assets/electrical-bg.jpg') center/cover no-repeat;
    min-height: 90vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* DARK OVERLAY */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 80px;
}

/* LEFT TEXT */
.hero-left {
    max-width: 600px;
}

.hero-left h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ADMIN CARD */
.admin-card {
    background: rgba(0,0,0,0.75);
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.admin-card h3 {
    margin-bottom: 15px;
}

.admin-card p {
    margin-bottom: 20px;
}

/* PROGRAMME BAR */
.programme-bar {
    position: relative;
    display: flex;
    justify-content: space-around;
    background: #0b3d91;
    padding: 20px;
    border-top: 4px solid #ffc107;
}

.programme-item {
    font-weight: 600;
}

/* BUTTONS */
.btn {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.primary {
    background: #ffc107;
    color: #1a1a1a;
}

.dark {
    background: #1a1a1a;
    color: white;
}

.full {
    display: block;
    text-align: center;
}

/* MOBILE */
@media (max-width: 900px) {

    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .programme-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}
