/* style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: #f4f7f9;
}

h1 {
    font-size: 1.4rem;
    color: #007bff;
    text-align: center;
    margin: 15px 0;
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

input[type="text"],
textarea,
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

textarea {
    height: 120px;
}

.btn {
    display: block;
    width: 100%;
    background: #007bff;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background: #0056b3;
}

/* Table Styles - Mobile Optimized */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px 20px -10px; /* Bleed out on mobile */
    padding: 0 10px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

th, td {
    padding: 10px 5px;
    border: 1px solid #eee;
    text-align: center;
    min-width: 50px;
}

th {
    background-color: #f8f9fa;
    white-space: nowrap;
}

/* Sticky Column for Candidates */
.sticky-col {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 2;
    min-width: 100px;
    text-align: left;
    font-weight: bold;
    border-right: 2px solid #ddd;
}

td.sticky-col {
    background: #fff;
}

/* Response status colors */
.status-2 { color: #28a745; font-weight: bold; font-size: 1.2rem; }
.status-1 { color: #ffc107; font-weight: bold; font-size: 1.2rem; }
.status-0 { color: #dc3545; font-weight: bold; font-size: 1.2rem; }

/* Clickable Name Link */
.user-name-link {
    display: block;
    color: #007bff;
    text-decoration: underline;
    word-break: break-all;
    font-size: 0.8rem;
}

/* Radio label styles - TOUCH FRIENDLY */
.radio-group {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    background: #fff;
    font-size: 1.2rem;
    margin: 0;
}

input[type="radio"]:checked + .label-ok { background-color: #d4edda; border-color: #28a745; color: #155724; }
input[type="radio"]:checked + .label-maybe { background-color: #fff3cd; border-color: #ffc107; color: #856404; }
input[type="radio"]:checked + .label-ng { background-color: #f8d7da; border-color: #dc3545; color: #721c24; }

input[type="radio"] {
    display: none;
}

.summary-row {
    background-color: #f1f3f5;
    font-weight: bold;
}

.best-choice {
    background-color: #e8f5e9;
}

.best-choice td.sticky-col {
    background-color: #e8f5e9;
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

@media (min-width: 600px) {
    body { padding: 20px; }
    h1 { font-size: 1.8rem; }
    .btn { width: auto; min-width: 200px; margin: 0 auto; }
}
