/* =====================
   GLOBAL
===================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #23264B;
}

a {
    text-decoration: none;
}

/* =====================
   HEADER
===================== */
.app-header {
    background: #23264B;
    padding: 14px 30px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
}

.header-center {
    text-align: center;
}

.header-center h1 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-right a {
    color: #fff;
    font-weight: 600;
}

.header-right a:hover {
    color: #E65525;
}

/* =====================
   MAIN CONTENT
===================== */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 40px;
}

/* =====================
   CARD & FORMS
===================== */
.card {
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.card h2 {
    margin-bottom: 24px;
}

.card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card label {
    text-align: left;
    font-weight: 600;
}

.card input,
.card select {
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* =====================
   BUTTON
===================== */
.btn-primary,
button {
    background: #E65525;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover,
button:hover {
    background: #cc4c20;
}

/* =====================
   DASHBOARD GRID
===================== */
.dashboard-container {
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: auto;
}

.grid-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    color: #23264B;
}

.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(230,85,37,0.25);
}

/* =====================
   FOOTER
===================== */
.app-footer {
    text-align: center;
    padding: 18px;
    color: #777;
    font-size: 14px;
}
/* =====================
   TABLE IMPROVEMENTS
===================== */
.table-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 1200px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    table-layout: fixed;
}

.results-table th {
    background: #23264B;
    color: #ffffff;
    padding: 12px 10px;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.results-table td {
    padding: 12px 10px;
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    word-break: break-word;
}

/* Column widths */
.results-table th:nth-child(1),
.results-table td:nth-child(1) { width: 14%; }

.results-table th:nth-child(2),
.results-table td:nth-child(2) { width: 22%; }

.results-table th:nth-child(3),
.results-table td:nth-child(3) { width: 36%; }

.results-table th:nth-child(4),
.results-table td:nth-child(4) { width: 10%; }

.results-table th:nth-child(5),
.results-table td:nth-child(5) { width: 18%; }

/* Zebra rows */
.results-table tr:nth-child(even) td {
    background: #f8f9fd;
}

/* Table links */
.results-table a {
    color: #E65525;
    font-weight: 600;
}

.results-table a:hover {
    text-decoration: underline;
}
.dashboard-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #23264B;
}

.dashboard-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 36px;
}
/* =====================
   TABLE GRID / BORDERS
===================== */
.bordered-table {
    border: 1px solid #ddd;
}

.bordered-table th,
.bordered-table td {
    border: 1px solid #e0e0e0;
}

/* Header stronger border */
.bordered-table th {
    border-bottom: 2px solid #23264B;
}

/* Hover row */
.bordered-table tbody tr:hover td {
    background-color: #fff4ef;
}

/* Empty row */
.empty-row {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Success banner */
.success-banner {
    font-weight: 700;
    margin-bottom: 16px;
    color: #2e7d32;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    color: #23264B;
}

.back-link:hover {
    color: #E65525;
}
