/* --- 1. MODERN CSS VARIABLES (For easy theme changes) --- */
:root {
    --primary-color: #1a73e8;       /* Professional Google Blue */
    --primary-hover: #1557b0;
    --bg-color: #f4f7f6;            /* Soft off-white background */
    --card-bg: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border-color: #dadce0;
    --success-color: #0f9d58;
    --error-color: #d93025;
    --border-radius: 12px;
}

/* --- 2. BASE RESET & FONT --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: left; 
}

/* --- 3. MAIN CARD CONTAINER (The white box for the form) --- */
#verificationSection {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.4s ease-out; 
}

/* Make sure the #profileSection container itself is transparent, 
   so the ID card is the only thing shown */
#profileSection {
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.4s ease-out; 
}

/* --- 4. TYPOGRAPHY & FORMS --- */
h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

#statusMessage {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px; 
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table td {
    padding: 10px 0;
}

table td:first-child {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 14px;
    width: 40%;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

input[type="text"]:disabled {
    background-color: #f1f3f4;
    color: #9aa0a6;
    cursor: not-allowed;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button:disabled {
    background-color: #e8eaed;
    color: #9aa0a6;
    cursor: not-allowed;
    box-shadow: none;
}

#getOtpBtn {
    background-color: var(--text-main);
}

#getOtpBtn:hover:not(:disabled) {
    background-color: black;
}

/* --- 5. MODERN DIGITAL ID CARD STYLES --- */
.id-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden; /* Keeps the bottom corners neatly rounded */
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.id-header {
    background-color: var(--primary-color);
    color: white;
    /* Taller header to give the title breathing room */
    padding: 30px 20px 60px 20px; 
    text-align: center;
    position: relative;
}

.id-header h2 {
    color: white;
    margin: 0;
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 5px; 
}

.status-badge {
    position: absolute;
    /* Pushed safely inside the card bounds so it never gets cut off */
    top: 15px;   
    right: 15px; 
    background-color: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    z-index: 5;
}

.id-photo-container {
    display: flex;
    justify-content: center;
    /* Pulls it exactly to the bottom edge of the blue header */
    margin-top: -60px; 
    position: relative;
    z-index: 2; 
}

.id-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: white;
}

.id-details {
    text-align: center;
    padding: 20px;
}

.id-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 5px;
}

.id-team {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-email {
    font-size: 14px;
    color: var(--text-muted);
}

.id-footer {
    background-color: #f8f9fa;
    padding: 20px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
}

.signature-box {
    text-align: center;
}
/*
.id-signature {
    max-height: 50px;
    max-width: 150px;
    mix-blend-mode: multiply;
}
*/

.signature-box p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 6. ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}