/* Reset + base */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #111;
    color: #f5f5f5;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.backBtn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.backBtn button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.5rem 0.75rem;
    border-radius: 999px;

    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.25);

    color: #d62828;
    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.backBtn button:hover {
    background: rgba(255, 0, 0, 0.15);
    transform: translateX(-2px);
}

.backBtn .icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Keep iOS from zooming inputs */
input, textarea, select {
    font-size: 16px;
}


/* --- Error message --- */
p[th\:if] {
    width: 100%;
    max-width: 420px;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(214, 40, 40, 0.12);
    border: 1px solid rgba(214, 40, 40, 0.35);
    color: #ff8b8b;
    text-align: center;
}

/* --- Login card --- */
.login-form {
    width: 100%;
    max-width: 420px;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);

    padding: 1.5rem;
    border-radius: 16px;
}

.login-form h1 {
    text-align: center;
}

/* Labels */
.login-form label {
    font-size: 0.85rem;
    color: #cfcfcf;
    margin-top: 0.25rem;
}

/* Inputs */
.login-form input {
    width: 100%;
    padding: 0.85rem 0.9rem;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #121212;
    color: #f5f5f5;

    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.login-form input::placeholder {
    color: rgba(255,255,255,0.35);
}

.login-form input:focus {
    border-color: rgb(134, 255, 107);
    box-shadow: 0 0 0 4px rgb(75, 108, 68);
}

/* Small note */
.login-form p {
    margin: 0.25rem 0 0.75rem;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.85rem;
}

/* Button */
.login-form button {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.10);
    background: #86ff6b;
    color: #111;

    font-weight: 650;
    font-size: 0.95rem;

    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.login-form button:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.login-form button:active {
    transform: translateY(1px);
}


/* dashboard */

.dashboard-title {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.dashboard {
    width: 100%;
    padding: 1.2rem;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-card {
    background: #1f1f1f;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card .chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    opacity: 0.6;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgb(134, 255, 107);
}



/* Text */
.dashboard-card h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.dashboard-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #cfcfcf;
}

/* Links */
.dashboard-card a {
    margin-top: auto;
    align-self: flex-start;

    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;

    color: #ff6b6b;
    border-bottom: 1px solid transparent;
}

.dashboard-card a:hover {
    border-bottom-color: #ff6b6b;
}

.logout-card {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.logout-card button {
    background: #d62828;
    color: #fff;

    border: none;
    border-radius: 999px;

    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.logout-card button:hover {
    background: #e63946;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.logout-card button:active {
    transform: translateY(1px);
}

/* employee list */



.employeeList {
    padding: 2rem;
}

.employeeList .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employeeList .employee {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    background: #1f1f1f;
    color: #f5f5f5;

    padding: 1.25rem 1.5rem;
    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.employeeList .employee:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.employeeList .employee h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.employeeList .employee p {
    margin: 0;
    font-size: 0.85rem;
    color: #cfcfcf;
}

.employeeList .employee a {
    margin-top: 0.5rem;
    align-self: flex-start;

    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;

    color: #ff6b6b;
    border-bottom: 1px solid transparent;

    transition: border-color 0.15s ease, color 0.15s ease;
}

.employeeList .employee a:hover {
    color: #ff8787;
    border-bottom-color: #ff8787;
}

.employee {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    text-decoration: none;   /* remove underline */
    color: inherit;          /* keep text colors */

    position: relative;
    cursor: pointer;
}

/* Mobile tap feedback */
.employee:active {
    transform: scale(0.98);
    filter: brightness(1.05);
}

/* Chevron positioning */
.employee .chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.6;
}
















