/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f1faee;
    box-sizing: border-box;
    color: #333;
}

/* --- NEW: Logout Button Styling --- */
.logout-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #6c757d; /* A subtle gray */
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}
.logout-button:hover {
    background-color: #5a6268;
}


h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* === SHARED CONTAINER STYLES === */
.content-container,
.feedback-container,
.login-container,
.register-container,
.instructions-container,
.full-analysis-container,
.dashboard-container { /* Added for consistency */
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 20px auto;
}

#question-container,
.login-container,
.register-container,
.dashboard-container {
    max-width: 550px;
}


/* === SHARED BUTTON STYLES === */
.btn {
    display: inline-block;
    width: auto;
    padding: 12px 25px;
    margin: 5px;
    font-size: 1.1em;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary { background-color: #84d1d2; }
.btn-primary:hover:not(:disabled) { background-color: #6fb6b7; transform: scale(1.02); }
.btn-secondary { background-color: #5a9a9b; }
.btn-secondary:hover:not(:disabled) { background-color: #4a8081; }
.btn:disabled { background-color: #cccccc; cursor: not-allowed; transform: none; }

.button-container {
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
    text-align: center;
}

/* === INDEX & GENERAL PAGES === */
.main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.descriptionOfTest {
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
    color: #333;
    max-width: 600px;
    line-height: 1.5;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
}
.mainScreenButton {
    background-color: #007BFF;
}
.mainScreenButton:hover {
    background-color: #033c7a;
    transform: scale(1.05);
}

/* === LOGIN & REGISTER PAGES === */
.accountRegisterH1, .loginH1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}
.registerInput, .loginInput {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.registerInput:focus, .loginInput:focus {
    border-color: #4A90E2;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
    outline: none;
}
#registerForm button, #loginForm button {
    background-color: #4A90E2;
    width: 100%;
}
#registerForm button:hover, #loginForm button:hover {
    background-color: #357ABD;
    transform: scale(1.02);
}

/* === USER INFO & DASHBOARD PAGES === */
.userInfoTitle { font-size: 2.5rem; }
.userInfoInput { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.userInfoNote { font-size: 0.9rem; margin-top: 20px; text-align: center; color: #666; font-style: italic; }
.dashboard-options {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center buttons horizontally */
    gap: 15px;
    width: 100%;
}
/* --- MODIFIED: Removed width: 100% from dashboard buttons --- */
.dashboard-options .btn {
    padding: 15px 25px;
    font-size: 1.2em;
    width: 100%; /* Keep full width within the container */
    max-width: 300px; /* But limit the max width for a better look */
}


/* === FEEDBACK & REPORT STYLES === */
.feedback-section { line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.feedback-subtitle { font-weight: bold; text-align: center; margin-top: 25px; margin-bottom: 15px; font-size: 1.4em; color: #333; }
#feedbackContent p, #full-analysis-content p { margin-bottom: 1em; }
.premium-reports-container { width: 100%; max-width: 900px; margin: 40px auto; }
.report-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.report-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.report-card h3 { margin-top: 0; color: #333; }
.report-card p { color: #666; flex-grow: 1; margin-bottom: 20px; }
.report-card .feedback-display { text-align: left; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out; }
.report-card .feedback-display.visible { max-height: 1000px; margin-top: 15px; }
.price-tag { font-size: 1.5em; font-weight: bold; color: #84d1d2; margin-bottom: 15px; }
.btn-close { background-color: #777; }
.btn-close:hover { background-color: #666; }
.delete-button { background-color: #d9534f; }
.delete-button:hover { background-color: #c9302c; }
.btn-download { background-color: #4CAF50; }
.btn-download:hover:not(:disabled) { background-color: #45a049; }

/* === PAYMENT MODAL STYLES === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-content { background: #fff; padding: 30px; border-radius: 10px; width: 90%; max-width: 450px; position: relative; }
.close-button { position: absolute; top: 10px; right: 15px; font-size: 28px; background: none; border: none; cursor: pointer; color: #aaa; }
#card-element { border: 1px solid #ccc; padding: 12px; border-radius: 6px; margin-bottom: 20px; }
#submit-payment { width: 100%; }
.message { text-align: center; margin-top: 15px; font-weight: bold; }
.message.error { color: #d9534f; }

/* === TEST PAGE (start.html) STYLES === */
#progress-indicator, #behavior-phrase, .tooltip-tip { width: 100%; max-width: 550px; text-align: center; margin: 0 auto; }
#progress-indicator { font-size: 1.1em; color: #555; margin-bottom: 5px; font-weight: bold; }
#behavior-phrase { font-size: 1.8em; font-weight: bold; color: #333; margin-bottom: 5px; }
.tooltip-tip { font-size: 0.9em; color: #777; margin-bottom: 15px; font-style: italic; }
.answer-form { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.labels-row { display: flex; justify-content: space-between; padding: 0 10px; font-weight: bold; font-size: 1.1em; color: #555; }
.hidden-radio { display: none; }
.option-container { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; position: relative; background-color: #f8f9fa; }
.option-container::before, .option-container::after { content: ''; position: absolute; top: 0; width: 50%; height: 100%; z-index: 0; background-color: #84d1d2; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.option-container::before { left: 0; transform: translateX(-100%); }
.option-container::after { right: 0; transform: translateX(100%); }
.option-container.most-selected::before,
.option-container.least-selected::after { transform: translateX(0); }
.selection-area { padding: 15px 0; flex-grow: 1; cursor: pointer; background: transparent; position: relative; z-index: 1; transition: background-color 0.2s ease-in-out; }
.option-word { padding: 15px 10px; text-align: center; font-weight: 500; background-color: #fff; border-left: 1px solid #ddd; border-right: 1px solid #ddd; flex-shrink: 0; width: 50%; color: #333; position: relative; z-index: 1; }
.option-container.most-selected .selection-area:last-of-type,
.option-container.least-selected .selection-area:first-of-type { background-color: #e9ecef; }
.option-container.most-selected .option-word,
.option-container.least-selected .option-word { font-weight: bold; }
#next-button.btn { width: 100%; padding: 18px 30px; font-size: 1.3em; border-radius: 12px; background: linear-gradient(145deg, #6fb6b7, #84d1d2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
#next-button.btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(100, 100, 100, 0.15); }
.tooltip { position: absolute; background: #333; color: white; padding: 8px 12px; border-radius: 6px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out; max-width: 250px; font-size: 0.9em; line-height: 1.4; text-align: center; }

/* --- Logo Styling --- */
.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; /* Adds space between the logo and the title below it */
    max-width: 150px;    /* You can change this value to make your logo bigger or smaller */
    height: auto;        /* This keeps the logo's proportions correct */
}