* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f2f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.dash-body {
    display: block;
    padding: 0;
    background: #f2f5f7;
}

/* Auth Container */
.auth-box {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 36px 32px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.auth-box h1 {
    font-size: 22px;
    color: #14374a;
    margin-bottom: 4px;
}

.auth-box .subtitle {
    font-size: 13px;
    color: #6b7b84;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #33454f;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3dbe0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus {
    border-color: #2b8aa8;
}

.btn {
    width: 100%;
    padding: 11px;
    background: #14374a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s;
}

.btn:hover {
    background: #1c4b64;
}

.alt-link {
    text-align: center;
    font-size: 13px;
    color: #6b7b84;
    margin-top: 18px;
}

.alt-link a {
    color: #2b8aa8;
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.alert.error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c6c3;
}

.alert.success {
    background: #e8f5e9;
    color: #1e7d32;
    border: 1px solid #c3e6c5;
}

/* Dashboard */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #14374a;
    color: #fff;
    padding: 16px 28px;
}

.dash-header h1 {
    font-size: 18px;
}

.dash-header .logout-btn {
    background: #b3261e;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.dash-wrap {
    padding: 24px 28px;
}

.dash-wrap h2 {
    font-size: 16px;
    color: #14374a;
    margin-bottom: 14px;
}

/* Table Base Styling */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #eef1f3;
}

th {
    background: #eef4f7;
    color: #14374a;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

.empty-row td {
    text-align: center;
    color: #8a97a0;
    padding: 24px;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .auth-box {
        padding: 28px 20px;
    }

    .dash-header {
        padding: 14px 16px;
    }

    .dash-wrap {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .dash-header h1 {
        font-size: 16px;
    }

    .dash-header .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Transform Table to Cards on Small Mobile Screens */
    .table-container {
        box-shadow: none;
        background: transparent;
    }



    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 4px;
        border-bottom: 1px dashed #eef1f3;
        font-size: 13px;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #14374a;
        margin-right: 12px;
    }

    .empty-row td {
        display: block;
        text-align: center;
    }

    .empty-row td::before {
        display: none;
    }
}