/* =============================================================
   Lease User Dashboard — v2.0.0  (structural styles only)
   
   Colors are NOT set here. They are injected as an inline
   <style> block built from plugin options directly inside the
   dashboard HTML — see get_inline_color_styles() in the class.
   This means theme stylesheets can never override them.
   ============================================================= */

/* ---- Dashboard wrapper ---- */
.lud-dashboard {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* ---- Greeting h2 — structural only, color set inline ---- */
h2.lud-greeting,
.lud-dashboard h2.lud-greeting {
    all: unset;
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 22px;
    padding: 6px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ---- Section headings — structural only, color set inline ---- */
h3.lud-section-heading,
.lud-dashboard h3.lud-section-heading {
    all: unset;
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 30px 0 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid #dcdfe4; /* overridden by inline style */
    line-height: 1.3;
}

/* =============================================================
   Tables
   ============================================================= */
.lud-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.lud-table th,
.lud-table td {
    padding: 8px 10px;
    font-size: 0.94rem;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #dcdfe4; /* overridden by inline style */
}

/* Identity label column width */
.lud-identity .lud-table th {
    font-weight: 600;
    width: 38%;
    white-space: nowrap;
}

/* Balance/payments column header typography */
.lud-balances .lud-table thead th,
.lud-payments .lud-table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: none;
}

/* Balance/payments data cell typography */
.lud-balances .lud-table tbody td,
.lud-payments .lud-table tbody td {
    font-size: 1rem;
    font-weight: 500;
}

/* ---- "Data last updated" ---- */
.lud-updated {
    display: block;
    margin-top: 10px;
    font-size: 0.82rem;
    text-align: right;
    color: #787c82;
}

/* ---- No-balance notice ---- */
.lud-message {
    display: block;
    padding: 14px 18px;
    background: #fff8e1;
    border-left: 4px solid #f0b429;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1d2327;
    margin: 16px 0;
}

.lud-identity,
.lud-balances,
.lud-payments { margin-bottom: 12px; }

/* =============================================================
   Responsive — stack tables on mobile
   ============================================================= */
@media screen and (max-width: 600px) {
    .lud-responsive thead {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden; clip: rect(0,0,0,0);
        white-space: nowrap;
    }
    .lud-responsive,
    .lud-responsive tbody,
    .lud-responsive tr,
    .lud-responsive td { display: block; width: 100%; }
    .lud-responsive tr {
        margin-bottom: 12px;
        border: 1px solid #dcdfe4;
        border-radius: 4px;
        overflow: hidden;
    }
    .lud-responsive td {
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid #dcdfe4;
    }
    .lud-responsive td:last-child { border-bottom: none; }
    .lud-responsive td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 3px;
    }
}

/* =============================================================
   Login Card
   ============================================================= */
.lud-login-container {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}
.lud-login-card {
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    color: #1d2327;
}
.lud-login-card h2 {
    all: unset;
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    color: #1d2327;
}
.lud-login-card #lud-loginform {
    margin: 0; padding: 0; background: transparent; border: none; box-shadow: none;
}
.lud-login-card .lud-field label {
    display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #3c434a;
}
.lud-login-card .lud-field input[type="text"],
.lud-login-card .lud-field input[type="password"] {
    width: 100%; padding: 10px 12px; background: #ffffff;
    border: 1px solid #dcdfe4; border-radius: 5px; font-size: 0.95rem; color: #1d2327;
    transition: border-color .15s;
}
.lud-login-card .lud-field input:focus {
    border-color: #2271b1; outline: 2px solid rgba(34,113,177,.25);
}
.lud-login-card p.login-username,
.lud-login-card p.login-password { margin-bottom: 16px; }
.lud-login-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; font-size: 0.88rem; color: #3c434a;
}
.lud-remember label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #3c434a; }
.lud-links a { color: #2271b1; text-decoration: none; font-size: 0.88rem; }
.lud-links a:hover { text-decoration: underline; }
.lud-login-card #wp-submit,
.lud-login-card input[type="submit"] {
    width: 100%; padding: 11px; background: #1d2327; color: #ffffff;
    border: none; border-radius: 5px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: opacity .15s;
}
.lud-login-card #wp-submit:hover,
.lud-login-card input[type="submit"]:hover { opacity: .88; }
.lud-login-card p.submit { margin-bottom: 0; }

/* wp-login.php branding */
.lud-card-heading {
    font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 6px; color: #1d2327;
}
.lud-card-subtext {
    font-size: 0.9rem; text-align: center; color: #50575e; margin-bottom: 16px;
}
