/* ================================
   EMPLOYEE DETAIL PAGE
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --white: #ffffff;
    --dark: #172554;
    --text: #475569;
    --border: #e2e8f0;
}

body {
    min-height: 100vh;
    padding: 50px 20px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #dbeafe, transparent 35%),
        radial-gradient(circle at bottom right, #ede9fe, transparent 40%),
        linear-gradient(135deg, #f8fafc, #e0e7ff);
}

/* Main content */
.container,
.employee-container,
.detail-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

/* Page title */
h1,
h2 {
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(25px, 5vw, 36px);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Employee table */
table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.16);
}

/* Table cells */
th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

/* Left column */
th {
    width: 42%;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

/* Right column */
td {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
}

/* Remove final border */
tr:last-child th,
tr:last-child td {
    border-bottom: none;
}

/* Row hover */
tr {
    transition: transform 0.2s ease;
}

tr:hover td {
    color: var(--primary);
    background: #f8faff;
}

/* Back Home button */
a,
.back-button,
.btn-back {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 13px 28px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
    cursor: pointer;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

a::before,
.back-button::before,
.btn-back::before {
    content: "←";
    margin-right: 8px;
}

a:hover,
.back-button:hover,
.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.38);
}

a:active,
.back-button:active,
.btn-back:active {
    transform: scale(0.97);
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 35px 15px;
    }

    h1,
    h2 {
        margin-bottom: 20px;
        font-size: 23px;
    }

    table {
        border-radius: 14px;
    }

    th,
    td {
        padding: 15px 13px;
        font-size: 14px;
    }

    th {
        width: 40%;
    }

    a,
    .back-button,
    .btn-back {
        margin-top: 24px;
        padding: 12px 22px;
        font-size: 14px;
    }
}