/* KFS 2026 Application - Styles */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #fce4ec;
    --bg: #f5f5f5;
    --card-bg: #fff;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: var(--primary);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; text-decoration: none; font-size: 1.3em; font-weight: 700; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9em; }
.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}
.btn:hover { background: #f0f0f0; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 12px; font-size: 0.8em; }
.btn-lg { padding: 14px 32px; font-size: 1.1em; width: 100%; margin-top: 20px; }

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

h1 { font-size: 1.5em; margin-bottom: 8px; }
.subtitle { color: var(--text-light); margin-bottom: 24px; }

/* Forms */
fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
legend {
    font-weight: 600;
    color: var(--primary);
    padding: 0 8px;
}
.form-group {
    margin-bottom: 16px;
    flex: 1;
}
.form-row {
    display: flex;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 4px;
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95em;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}
.hint { font-size: 0.8em; color: var(--text-light); }

/* Participant card */
.participant-card {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}
.participant-card h3 { font-size: 1em; margin-bottom: 12px; color: var(--primary-dark); }
.participant-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.2em;
}

/* Progress */
.progress-bar {
    background: #e0e0e0;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
    margin: 16px 0;
}
.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}
.status-card {
    text-align: center;
    padding: 32px;
}
.status-card.success { color: var(--success); }
.status-card.success h2 { color: var(--success); }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    width: 400px;
    max-width: 90%;
}
.modal-content h2 { margin-bottom: 16px; }

/* Admin table */
.admin-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-input { flex: 1; min-width: 200px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.admin-table th, .admin-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--primary-dark);
}
.admin-table tr:hover { background: #fafafa; }

/* Status badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}
.badge-processing { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }
.badge-error { background: #ffebee; color: #c62828; }
.badge-pending { background: #e3f2fd; color: #1565c0; }

.error-message { color: var(--error); font-size: 0.9em; margin: 8px 0; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pagination button { padding: 6px 12px; }
