/**
 * QR Validator Styles
 * SAT-exact design replica
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: linear-gradient(to bottom, #ffffff 0%, #f2efea 70%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

/* ==========================================================================
   Header
   ========================================================================== */

.sat-header {
    background: #ffffff;
    padding: 6px 0 0 0;
    text-align: center;
}

.sat-header img {
    height: 66px;
    display: block;
    margin: 0 auto;
    background: #ffffff;
}

/* ==========================================================================
   Body Content
   ========================================================================== */

.sat-body {
    padding: 50px 18px 60px 18px;
}

/* ==========================================================================
   Messages (Info/Error)
   ========================================================================== */

.ui-messages {
    display: block;
    max-width: 50%;
    background: #f7f7f5;
    border: 1px solid #b8a070;
    border-radius: 6px;
    padding: 12px;
    margin: 0 0 32px 18px;
    box-shadow: 0 4px 6px rgba(184,150,96,0.5);
}

.ui-messages-info {
    display: block;
    background: linear-gradient(to bottom, #c8aa7e, #b89660);
    border-radius: 5px;
    padding: 8px 18px;
    color: #1f1513;
    font-size: 15px;
    line-height: 1.55;
}

.ui-messages-error {
    display: block;
    background: linear-gradient(to bottom, #d9534f, #c9302c);
    border-radius: 5px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.55;
}

.ui-messages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ui-messages li {
    display: block;
}

.ui-messages-summary {
    font-weight: 500;
    color: #000000;
    text-align: center;
    display: block;
    text-indent: 0.75em;
}

.ui-messages-error .ui-messages-summary {
    color: #ffffff;
}

/* ==========================================================================
   Panel (Data Section)
   ========================================================================== */

.ui-panel {
    background: #e2d5c5;
    border: 0.5px solid #b8a070;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    box-shadow: 0 7px 7px -2px rgba(184,150,96,0.7);
    overflow: hidden;
}

.ui-panel-titlebar {
    background: linear-gradient(to bottom, #ebded6, #bd9a72);
    border-radius: 3px 3px 0 0;
    border: none;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: normal;
    color: #1a1000;
}

.ui-panel-content {
    background: linear-gradient(to bottom, #ffffff 0%, #f2efea 70%);
    background-attachment: fixed;
    border: none;
    border-radius: 0 0 3px 3px;
    padding: 0;
}

/* ==========================================================================
   Data Table
   ========================================================================== */

.ui-panelgrid {
    width: 100%;
    border-collapse: collapse;
}

.ui-panelgrid tr:first-child td {
    padding-top: 20px;
    padding-bottom: 2px;
}

.ui-panelgrid tr:last-child td {
    padding-top: 2px;
    padding-bottom: 34px;
}

.ui-panelgrid td {
    padding: 14px 12px;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.5;
    border: none;
    background: transparent;
}

td.lbl {
    width: 100px;
    min-width: 100px;
    text-align: right;
    font-weight: bold;
    color: #222;
    white-space: nowrap;
    padding-right: 14px;
}

td.val {
    text-align: left;
    color: #222;
    word-break: break-all;
}

td.val.mono {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-all;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2d5c5;
    border-top-color: #b89660;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 16px;
}

.loading__text {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden {
    display: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .ui-messages {
        max-width: calc(100% - 36px);
    }
    .ui-messages-info,
    .ui-messages-error {
        padding: 8px 60px;
    }
    .ui-messages-summary {
        text-align: left;
        text-indent: 0.75em;
    }
}

@media (max-width: 480px) {
    .sat-body {
        padding: 30px 14px 40px 14px;
    }
    .ui-messages {
        max-width: 100%;
        margin: 0 10px 24px 10px;
        padding: 16px;
    }
    .ui-messages-info,
    .ui-messages-error {
        padding: 14px 18px;
    }
    .ui-messages-summary {
        text-align: left;
    }
    .ui-panelgrid td {
        padding: 10px 8px;
        font-size: 14px;
    }
    td.lbl {
        width: 50%;
        min-width: 50%;
        padding-right: 10px;
        vertical-align: middle;
    }
    td.val, td.val.mono {
        width: 50%;
        font-size: 14px;
    }
    .ui-panelgrid tr:first-child td {
        padding-top: 14px;
        padding-bottom: 2px;
    }
    .ui-panelgrid tr:last-child td {
        padding-top: 2px;
        padding-bottom: 24px;
    }
}
