/*
 * MENA THRC — shared stylesheet.
 *
 * Ported from the legacy app's per-page <style> blocks (dashboard.php,
 * therapist_dashboard.php) and per-tool stylesheets (RegistrationForm/styles.css
 * and its copies), which repeated the same rules in a dozen files. Same visual
 * language, defined once. Served as a plain static file on purpose: this app
 * deliberately ships with no Node build step, so there is nothing to compile.
 */

:root {
    /* Dashboard shell — legacy dashboard.php's .user-specific gradient. */
    --thrc-dash-from: #667eea;
    --thrc-dash-to: #764ba2;

    /* Record-entry screens — legacy RegistrationForm/styles.css. */
    --thrc-form-from: #4361ee;
    --thrc-form-to: #3a0ca3;
    --thrc-form-bg: #f0f8ff;
    --thrc-ink: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--thrc-ink);
}

/* ---------------------------------------------------------------- dashboard */

.dashboard-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--thrc-dash-from) 0%, var(--thrc-dash-to) 100%);
}

.welcome-banner,
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
}

.welcome-banner {
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-card {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list a:hover {
    color: #fff !important;
}

/* ------------------------------------------------------------ record screens */

body.form-page {
    background-color: var(--thrc-form-bg);
    padding: 20px;
}

.form-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 960px;
    border: 1px solid #e0e7ff;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--thrc-form-from), var(--thrc-form-to));
    color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.form-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.question-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--thrc-form-from);
}

.question-text {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--thrc-form-from), var(--thrc-form-to));
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.form-note {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

/* ------------------------------------------------------------------- shared */

.alert {
    border-radius: 8px;
    font-weight: 500;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
}
