:root {
    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    min-height: 100vh;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="file"], input[type="color"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #1d4ed8;
}

.qr-output {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.qr-output img {
    max-width: 100%;
    height: auto;
}

/* Verification Page Styles */
.verification-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-card {
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    background: white;
    transition: all 0.3s ease;
}

.result-card.valid {
    border: 5px solid var(--success);
    background: #f0fff4;
}

.result-card.invalid {
    border: 5px solid var(--danger);
    background: #fff0f0;
}

.result-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
}

.valid .status-badge {
    background: var(--success);
    color: white;
}

.invalid .status-badge {
    background: var(--danger);
    color: white;
}

.info-row {
    margin: 5px 0;
    font-size: 18px;
}

.table-no {
    font-size: 36px;
    font-weight: 800;
    color: #333;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-link {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: none;
    color: #777;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: bold;
}

:root {
    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); margin: 0; min-height: 100vh; display: flex; justify-content: center; }
.container { width: 100%; max-width: 600px; background: var(--card-bg); min-height: 100vh; padding: 20px; box-sizing: border-box; position: relative; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.header h2 { margin: 0; }
.logout-btn { text-decoration: none; color: #666; font-size: 14px; border: 1px solid #ddd; padding: 5px 10px; border-radius: 4px; }

.tabs { display: flex; gap: 5px; margin-bottom: 20px; background: #f8f9fa; padding: 5px; border-radius: 8px; }
.tab-link { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; border-radius: 6px; font-weight: 600; color: #666; }
.tab-link.active { background: white; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; }
input, select { width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; box-sizing: border-box; font-size: 16px; }

.customization-box { background: #f8fafc; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.row { display: flex; gap: 15px; }
.col { flex: 1; }

button[type="submit"] { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
button[type="submit"]:hover { background: #1d4ed8; }

/* Participant List Cards */
.participant-list { display: flex; flex-direction: column; gap: 15px; }
.participant-card { display: flex; align-items: center; background: white; border: 1px solid #eee; border-radius: 10px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.participant-card .avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.participant-card .info { flex: 1; display: flex; flex-direction: column; }
.participant-card .actions { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.participant-card .qr-thumb { width: 60px; height: 60px; border-radius: 4px; }
.btn-sm { background: var(--primary); color: white; text-decoration: none; padding: 4px 8px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; }
.share-btn { background: #6b7280; }

/* Verification Result */
.result-card { padding: 30px; border-radius: 15px; text-align: center; margin-top: 20px; }
.result-card.valid { border: 5px solid var(--success); background: #f0fff4; }
.result-card.invalid { border: 5px solid var(--danger); background: #fff0f0; }
.badge { display: inline-block; padding: 5px 15px; border-radius: 20px; color: white; font-weight: bold; margin-bottom: 15px; }
.valid .badge { background: var(--success); }
.invalid .badge { background: var(--danger); }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.success { background: #d1fae5; color: #065f46; }
.error { background: #fee2e2; color: #991b1b; }

#reader { width: 100%; margin-top: 20px; }

/* Event Title on Verify Page */
.event-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}