:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #dcdde1;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #F1F1F2;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.message-content {
    max-width: 80%;
    padding: 1rem;
    border-radius: 12px;
    background: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.message.system .message-content {
    background: var(--background-color);
    color: var(--text-color);
}

.message ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.input-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.button {
    padding: 0.5rem 1rem;
    background-color: #1995AD;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.button:hover {
    background-color: #0D4B5E;
}

.nav-links .button {
    height: auto;
    white-space: nowrap;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-section h2 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.status-dot.completed {
    background: var(--success-color);
}

.status-dot.active {
    background: var(--warning-color);
    animation: pulse 2s infinite;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px;
}

.timeline-content {
    color: var(--text-color);
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Section Styles */
.hero {
    --hero-height-min: 520px;
    --hero-height-max: 945px;
    --hero-height-fluid: 80vw;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 2rem;
    height: clamp(var(--hero-height-min), var(--hero-height-fluid), var(--hero-height-max));
    min-height: clamp(var(--hero-height-min), var(--hero-height-fluid), var(--hero-height-max));
    text-align: center;
    color: #1995AD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
}

.beta-page .hero {
    --hero-height-min: 585px;
    --hero-height-max: 585px;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: min(423px, calc(100% - 20px));
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 5rem;
    box-sizing: border-box;
    max-width: 1400px;
}

.beta-page .header {
    top: min(423px, calc(100% - 20px));
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #1995AD;
    display: flex;
    align-items: center;
    height: 40px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0D4B5E;
}

.nav-links .ask-button {
    padding: 0.5rem 1rem;
    background-color: white;
    color: #1995AD;
    border: 2px solid #1995AD;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.nav-links .ask-button:hover {
    background-color: #1995AD;
    color: white;
}

.nav-links .signup-button {
    padding: 0.5rem 1rem;
    background-color: #1995AD;
    color: white;
    border: 2px solid #1995AD;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.nav-links .signup-button:hover {
    background-color: #0D4B5E;
    color: white;
}

.nav-links .button {
    padding: 0.5rem 1rem;
    background-color: #1995AD;
    color: white;
    text-decoration: none;
    border-radius: 0;
    height: auto;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.nav-links .button:hover {
    background-color: #0D4B5E;
}

.hero-content {
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 10%;
    align-items: flex-start;
    justify-content: center;
    margin-top: 45vh;
    padding-bottom: 3rem;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1995AD;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 0.25rem;
    margin-bottom: 0.1rem;
    color: #1995AD;
    opacity: 0.9;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: -2rem;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: -2rem;
}

.hyper-link {
    color: #1995AD;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hyper-link:hover {
    color: #0D4B5E;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin: 0 auto;
    padding: 5rem;
    background-color: #A1D6E2;
    width: 100%;
    box-sizing: border-box;
    max-width: 1400px;
}

.assessment-card {
    background: white;
    padding: 2rem;
    width: 100%;
    border-radius: 1rem;
    box-sizing: border-box;
    color: #1995AD;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beta-page .assessment-grid {
    grid-template-columns: 1fr;
    max-width: 2800px;
}

.beta-page .assessment-card {
    max-width: 1200px;
    margin: 0 auto;
}

.assessment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.assessment-card h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.assessment-card .criteria-item {
    color: #1995AD;
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.criteria-item.positive::before {
    content: "+";
    color: #39B54A;
    font-weight: bold;
}

.criteria-item.negative::before {
    content: "-";
    color: #FF0000;
    font-weight: bold;
}

.sample-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3vh;
    padding-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.sample-content h2 {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    color: #1995AD;
    text-align: center;
}

.sample-content .button {
    padding: 0.5rem 1rem;
    background-color: #1995AD;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.sample-content .button:hover {
    background-color: #0D4B5E;
}

.sample-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: white;
    padding: 2rem 5rem;
    color: #1995AD;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: #1995AD;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0D4B5E;
}

.footer-link {
    color: #1995AD;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.footer-link:hover {
    color: #0D4B5E;
    opacity: 1;
}

.hero-content .footer-link {
    margin-top: 0.5rem;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2000;
}

.image-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    width: auto;
    height: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .hero {
        --hero-height-fluid: 50vh;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-left, .hero-right {
        align-items: center;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .assessment-grid {
        padding: 1rem;
        gap: 2rem;
    }
    
    .footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer a {
        margin: 0 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}

.question-container {
    max-width: 720px;
    width: 60%;
    margin: 2rem auto 0;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.question-container h2 {
    color: #1995AD;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding: 1.5rem 2rem 0;
}

.question-input {
    display: flex;
    gap: 0;
    width: 100%;
    position: relative;
}

.question-input input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--background-color);
    border-radius: 1rem;
    font-size: 1rem;
    background: white;
    color: #333;
    padding-right: 4.5rem;
}

.question-input input::placeholder {
    color: #AAAAAA;
    opacity: 1;
}

.question-input .ask-button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 1.5rem);
    padding: 0 1.5rem;
    background-color: white;
    color: #AAAAAA;
    border: 2px solid #AAAAAA;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.question-input input:focus {
    outline: none;
    border-color: #0D4B5E;
    box-shadow: 0 0 0 2px rgba(25, 149, 173, 0.1);
}

.question-input .ask-button:hover {
    background-color: #AAAAAA;
    color: white;
}

.beta-form {
    flex-direction: column;
    gap: 1rem;
}

.beta-textarea {
    width: 100%;
    min-height: 460px;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--background-color);
    border-radius: 1rem;
    font-size: 1rem;
    background: white;
    color: #333;
    resize: vertical;
}

.beta-textarea::placeholder {
    color: #1995AD;
}

.beta-textarea:focus {
    outline: none;
    border-color: #1995AD;
    box-shadow: 0 0 0 2px rgba(25, 149, 173, 0.1);
}

.beta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.beta-result {
    margin-top: 0.75rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #1995AD;
    white-space: pre-wrap;
    min-height: 3rem;
    position: relative;
}

.beta-result.is-loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 0.6rem;
    border-radius: 50%;
    border: 2px solid #1995AD;
    border-top-color: transparent;
    animation: beta-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes beta-spin {
    to {
        transform: rotate(360deg);
    }
}

.beta-output-text h2 {
    margin-bottom: 0;
    font-size: 1rem;
    color: #1995AD;
}

.beta-output-text p {
    color: #1995AD;
    font-size: 0.98rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.beta-output-grid {
    margin-top: 2rem;
    background: #ffffff;
    padding: 0;
    border-radius: 1rem;
}

.beta-output-card h2 {
    color: #1995AD;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.beta-rating {
    font-weight: 600;
    color: #1995AD;
    margin-bottom: 0.75rem;
}

.beta-rating span {
    color: #1995AD;
}

.beta-analysis {
    color: #1995AD;
    font-size: 0.98rem;
}

.beta-suggestion-title {
    font-weight: 600;
    color: #1995AD;
    margin-bottom: 0.5rem;
}

.beta-suggestion-desc {
    color: #1995AD;
    font-size: 0.98rem;
}

.beta-output-card {
    background: transparent;
    box-shadow: none;
}

.beta-actions-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.beta-actions-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beta-helper-text {
    color: #1995AD;
    font-size: 0.95rem;
}

.beta-form .ask-button {
    position: static;
    transform: none;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1995AD;
    color: #ffffff;
    border-color: #1995AD;
}

.beta-form .ask-button:focus,
.beta-form .ask-button:focus-visible,
.beta-form .ask-button:hover {
    border-color: #1995AD;
}


.word-count {
    color: #1995AD;
    font-size: 0.95rem;
    margin-left: auto;
}

.beta-actions .ask-button {
    width: 100%;
    max-width: 360px;
}

.beta-actions-row .ask-button {
    width: auto;
}

@media (max-width: 768px) {
    .question-input {
        flex-direction: column;
    }
    
    .question-input input {
        width: 100%;
    }
    
    .question-input .ask-button {
        width: 100%;
    }
}

.hero-left .ask-button {
    position: static;
    transform: none;
    height: auto;
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    background-color: white;
    color: #1995AD;
    border: 2px solid #1995AD;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.hero-left .ask-button:hover {
    background-color: #1995AD;
    color: white;
}

.hero-right .ask-button {
    position: static;
    transform: none;
    height: auto;
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    background-color: white;
    color: #1995AD;
    border: 2px solid #1995AD;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.hero-right .ask-button:hover {
    background-color: #1995AD;
    color: white;
}

@media (min-width: 1400px) {
    .assessment-grid {
        max-width: 100%;
        padding: 5rem;
        margin: 0 auto;
        gap: 5rem;
    }
    
    .assessment-card {
        padding: 2rem;
    }
} 
