/* GLOBAL STYLES */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    direction: rtl; /* Default for Arabic */
}

/* CONTAINER (Used by Index) */
.container {
    background: white;
    padding: 30px;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* SCANNER PAGE SPECIFIC (Used by Scan.html) */
body.scan-mode {
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.scan-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
}

/* FORM ELEMENTS */
input {
    padding: 12px;
    font-size: 16px;
    width: 80%;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

button {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover { background: #0056b3; }

.reset-btn { background-color: #6c757d; margin-top: 15px; }
.scan-next-btn { 
    display: block; width: 100%; padding: 15px 0; 
    background: #34495e; color: white; 
    text-decoration: none; border-radius: 8px; 
    font-size: 18px; font-weight: bold; margin-top: 15px;
}

/* TYPOGRAPHY & BADGES */
h1 { margin: 0; font-size: 28px; font-weight: 800; }
h2 { color: #2c3e50; margin: 10px 0; }
.hint { color: #666; font-size: 0.9em; margin-bottom: 20px; }

.highlight-name {
    color: #d35400;
    font-weight: bold;
    font-size: 1.4em;
    margin: 15px 0;
}

.rank-badge {
    background: linear-gradient(45deg, #ffd700, #ffec8b);
    color: #8a6d3b;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* INVITATION TEXT */
.invitation-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* STATUS ICONS */
.icon { font-size: 80px; margin-bottom: 10px; }
.status-valid { color: #27ae60; }
.status-invalid { color: #c0392b; }

/* UTILITY */
.hidden { display: none; }
.stats-row { display: flex; justify-content: center; gap: 15px; font-weight: bold; color: #555; }