/* =====================================================
   GLOBAL RESET & BASE TYPOGRAPHY
===================================================== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f4f7fa;
    color: #333;
}

/* =====================================================
   PUBLIC CONTACT-FORM CARD
===================================================== */
.wrapper {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.heading {
    text-align: center;
    margin-bottom: 1.6rem;
    font-size: 1.4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.contact-form label {
    font-weight: 600;
    color: #444;
}

.contact-form input {
    padding: 0.65rem 0.8rem;
    border: 1px solid #ccd1d7;
    border-radius: 6px;
    font-size: 0.96rem;
    transition: border 0.2s;
}

.contact-form input:focus {
    outline: none;
    border-color: #0077cc;
}

.contact-form button {
    padding: 0.85rem 1rem;
    background: #0077cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover { background: #005fa3; }

/* =====================================================
   ADMIN PANEL  (rev-3)
===================================================== */
.admin-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.8rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* --- heading bar --- */
.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}
.admin-heading h1 { font-size: 1.6rem; margin: 0; }

.logout-link {
    font-size: .9rem;
    color: #0077cc;
    text-decoration: none;
    padding: .4rem .9rem;
    border: 1px solid #0077cc;
    border-radius: 5px;
    transition: background .2s,color .2s;
}
.logout-link:hover { background:#0077cc; color:#fff; }

/* --- scrollable container --- */
.table-container {
    overflow-x: auto;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* --- table layout --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;          /* let browser decide widths */
}

/* sticky header */
.data-table thead {
    position: sticky;
    top: 0;
    background: #0077cc;
    color: #fff;
    z-index: 1;
}

/* cells */
.data-table th,
.data-table td {
    padding: .75rem .9rem;
    border: 1px solid #d7dbe0;   /* visible grid lines */
    text-align: left;
    font-size: .9rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;      /* wrap long strings */
}

/* zebra & hover */
.data-table tbody tr:nth-child(even){ background:#f9fbfd; }
.data-table tbody tr:hover         { background:#eef5ff; }

/* responsive */
@media (max-width: 580px){
    .wrapper        { padding: 1.5rem; }
    .admin-wrapper  { padding: 1.5rem 1rem; }
    .data-table     { min-width: 600px; }  /* enable horizontal scroll */
}
