/* Employee Timesheet Portal - portal.css */
/* All styles scoped under .etp-portal to avoid conflicts */

.etp-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2d2d2d;
    box-sizing: border-box;
}

.etp-portal *,
.etp-portal *::before,
.etp-portal *::after {
    box-sizing: inherit;
}

/* ── Typography ─────────────────────────────────────────── */

.etp-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1a1a2e;
}

.etp-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #1a1a2e;
}

/* ── Login Wrap ─────────────────────────────────────────── */

.etp-login-wrap {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 2.25rem;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* ── Timesheet Wrap ─────────────────────────────────────── */

.etp-timesheet-wrap {
    max-width: 560px;
    margin: 1.5rem auto;
}

.etp-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.etp-header-row .etp-heading {
    margin-bottom: 0;
}

.etp-timesheet-form {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Confirmation Wrap ──────────────────────────────────── */

.etp-confirmation-wrap {
    max-width: 560px;
    margin: 1.5rem auto;
}

.etp-confirmation-summary {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
}

.etp-confirmation-summary p {
    margin: 0.4rem 0;
}

/* ── Form Elements ──────────────────────────────────────── */

.etp-form {
    width: 100%;
}

.etp-field {
    margin-bottom: 1.25rem;
}

.etp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}

.etp-field input[type="text"],
.etp-field input[type="password"],
.etp-field input[type="number"],
.etp-field input[type="date"],
.etp-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.etp-field input:focus,
.etp-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.18);
}

.etp-field textarea {
    resize: vertical;
    min-height: 90px;
}

.etp-optional {
    font-weight: 400;
    color: #888;
    font-size: 0.88em;
}

/* ── Buttons ────────────────────────────────────────────── */

.etp-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    line-height: 1.4;
}

.etp-btn:active {
    transform: scale(0.98);
}

.etp-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.etp-btn-primary:hover {
    background: #005d8c;
    color: #ffffff;
}

.etp-btn-secondary {
    background: #f0f0f1;
    color: #2c2c2c;
    border: 1px solid #ccc;
}

.etp-btn-secondary:hover {
    background: #dcdcde;
    color: #1a1a1a;
}

/* ── Logout form inline ─────────────────────────────────── */

.etp-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* ── Messages ───────────────────────────────────────────── */

.etp-error {
    background: #fef2f2;
    border: 1px solid #f5c2c7;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.etp-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 0.85rem 1.1rem;
    border-radius: 5px;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.etp-check {
    font-size: 1.2em;
    margin-right: 0.3em;
}

/* ── Forgot password note ───────────────────────────────── */

.etp-forgot {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: #666;
    text-align: center;
}

/* ── Recent Submissions Table ───────────────────────────── */

.etp-recent {
    margin-top: 2rem;
}

.etp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.etp-table th {
    background: #f6f8fa;
    border-bottom: 2px solid #d0d7de;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.etp-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #e8ecef;
    vertical-align: top;
    word-break: break-word;
}

.etp-table tbody tr:nth-child(even) td {
    background: #f9fbfc;
}

.etp-table tbody tr:hover td {
    background: #eef4f9;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
    .etp-login-wrap,
    .etp-timesheet-wrap,
    .etp-confirmation-wrap {
        margin: 0.75rem;
    }

    .etp-login-wrap {
        padding: 1.5rem 1.25rem;
    }

    .etp-timesheet-form {
        padding: 1.25rem 1rem;
    }

    .etp-table {
        font-size: 0.82rem;
    }

    .etp-table th,
    .etp-table td {
        padding: 0.45rem 0.5rem;
    }

    .etp-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
