/* 
 * Study Flow, Survey & Researcher Dashboard Styles
 */

.study-container {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}

.study-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.study-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
}

.study-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.study-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.study-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 24px 0 12px 0;
}

.info-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #bfdbfe;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-input, .form-select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
    border-color: #3b82f6;
}

/* Likert Scales */
.likert-question {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.likert-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.likert-options-grid {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    flex: 1;
}

.likert-option input[type="radio"] {
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Completion Certificate */
.completion-banner {
    text-align: center;
    padding: 24px;
}

.completion-code-box {
    background: #0f172a;
    border: 2px dashed #10b981;
    border-radius: 10px;
    padding: 16px 24px;
    display: inline-block;
    margin: 20px auto;
}

.completion-code-text {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #34d399;
}

/* Researcher Dashboard */
.researcher-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 18px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin-top: 6px;
}

.export-buttons-row {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #475569;
}

.data-table-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    overflow-x: auto;
    margin-top: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #cbd5e1;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
}

.data-table th {
    background: #1e293b;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
