/* Modern color scheme */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header styles */
.header {
    width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Navigation styles */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

.nav-link.logout {
    color: var(--danger-color);
}

.nav-link.logout:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Box container styles */
.box {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.box h1 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
    text-align: center;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Button styles */
.button {
    width: 100%;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Link styles */
.forgot-password {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 15px auto;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* Dashboard styles */
.dashboard-welcome {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.dashboard-welcome h2 {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.dashboard-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.dashboard-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-card p {
    color: var(--text-primary);
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    text-align: center;
}

th {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Flash messages */
.flash-messages {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.flash-error {
    background-color: #fef2f2;
    color: var(--danger-color);
    border: 1px solid #fee2e2;
}

.flash-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #dcfce7;
}

.dataset-list {
    margin-top: 20px;
}

.dataset-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.dataset-info {
    text-align: left;
}

.dataset-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.dataset-path {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.dataset-actions {
    margin-top: 15px;
}

.dataset-actions .button {
    display: inline-block;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    width: auto;
}

.dataset-actions .button:hover {
    background: #45a049;
}

/* Add or modify these styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 20px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    padding: 8px 20px;
    font-size: 1em;
}

/* Questionnaire styles */
.container {
    max-width: 800px;
    margin: 0 auto;
}

.form-label {
    font-weight: 500;
}

textarea.form-control {
    resize: vertical;
}

/* Add some spacing between form elements */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

select.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Landing page styles */
.landing-body {
    display: block;
}

.landing-header {
    width: 100%;
    padding: 16px 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
}

.landing-login {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.landing-login-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-login-form input[type="email"],
.landing-login-form input[type="password"] {
    width: 180px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
    border-radius: 8px;
}

.landing-login-form .button {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.landing-login-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-login-links .forgot-password {
    margin: 0;
    font-size: 12px;
    text-align: left;
}

.landing-flash {
    max-width: 600px;
    margin: 16px auto;
    padding: 0 20px;
}

.landing-flash .flash-success {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #dcfce7;
}

.landing-hero {
    text-align: center;
    padding: 24px 20px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-hero h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.landing-hero p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.landing-register-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 36px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.landing-register-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.landing-features {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.landing-card {
    background: var(--card-background);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.landing-card h3 {
    color: var(--secondary-color);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.landing-card p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* Landing nav */
.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.landing-nav-link:hover,
.landing-nav-link--active {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.08);
}

.landing-nav-btn {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    background-color: var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.landing-nav-btn:hover {
    background-color: #357abd;
    transform: translateY(-1px);
}

.landing-title-link {
    text-decoration: none;
    color: inherit;
}

/* Login page */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
}

/* FAQ page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.faq-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--card-background);
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

.faq-item p a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item p a:hover {
    text-decoration: underline;
}

/* Contact page */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--card-background);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: inline-block;
    width: 100%;
}

.contact-person h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.contact-affiliation {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.contact-email {
    font-size: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Landing page responsive */
@media (max-width: 768px) {
    .landing-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .landing-title {
        text-align: center;
    }

    .landing-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .landing-hero {
        padding: 40px 20px 30px;
    }

    .landing-hero h2 {
        font-size: 28px;
    }

    .landing-features {
        grid-template-columns: 1fr;
    }
}

