:root {
    --primary-color: #004794;
    --primary-dark: #004494;
    --secondary-color: #f0f8ff;
    --text-color: #333;
    --white: #ffffff;
    --input-bg: #cbe2ea;
    /* Slightly darker/blueish bg for input area */
    --border-radius: 12px;
    --spacing-unit: 20px;
    /* Increased spacing */
    --font-family: 'Inter', sans-serif;
}

/* Global Box Sizing */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #e5f2fa, #81afd0);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    font-size: 18px;
    /* Increased font size */
}

.container {
    width: 100%;
    max-width: 800px;
    /* Increased max-width */
    padding: var(--spacing-unit);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 1);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #25f0ff;
}

.app-icon {
    width: 300px;
    /* Bigger icon */
    height: 300px;
    border-radius: 50%;
    margin-bottom: var(--spacing-unit);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: #fff7;
    /* margin-top: -30px; */
}

h1,
h3,
h4 {
    margin: 0;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 18px;
    /* Bigger buttons */
    margin-bottom: var(--spacing-unit);
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s, box-shadow 0.1s;
    text-align: center;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cards & Content */
.card {
    background: var(--white);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-unit);
}

.input-card {
    background-color: var(--input-bg);
    border: 1px solid #bac6cd;
}

/* Forms */
textarea {
    width: 100%;
    min-height: 200px;
    /* Taller textarea */
    padding: var(--spacing-unit);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-unit);
    font-family: inherit;
    font-size: 1.1rem;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

/* Accordion */
.accordion-item {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Softer shadow instead of border */
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    background: #fff;
    width: 100%;
    text-align: left;
    padding: 20px;
    /* font-weight: 300; */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    /* Explicitly remove default button border */
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s;
    font-size: 1.1rem;
    outline: none;
    /* Remove focus outline if desired, or style it */
}

.accordion-header:hover {
    background-color: #dcf4ff;
}

.accordion-content {
    display: none;
    padding: 0 20px 20px 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    background: #fff;
    border-top: 1px solid #eee;
}

.accordion-item.active .accordion-content {
    display: block;
}

.timestamp {
    font-size: 0.9rem;
    color: #999;
    display: block;
    margin-top: 8px;
}

/* Nav */
.nav-footer {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
    /* Center items */
    margin-top: auto;
    gap: 12px;
}

.nav-btn {
    flex: 1 1 30%;
    /* Grow but roughly 1/3 width */
    min-width: 120px;
    padding: 14px;
    font-size: 1rem;
    background: rgba(0, 86, 179, 0.3);
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: calc(var(--spacing-unit) * 2);
}

.hidden {
    display: none;
}

/* Speech Input */
.input-wrapper {
    position: relative;
    width: 100%;
}

.mic-btn {
    position: absolute;
    bottom: 30px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5b5b5b;
    padding: 8px;
}

.mic-btn svg {
    width: 32px;
    height: 32px;
}

/* Bigger icon */

/* Listening State */
.mic-btn.listening {
    color: #006400;
    /* Dark Green */
    background-color: rgba(0, 100, 0, 0.1);
    box-shadow: 0 0 0 0 rgba(0, 100, 0, 0.7);
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 100, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0);
    }
}

/* Answered Question Style */
.accordion-item.answered {
    background-color: #f0f0f0;
    /* Greyed background */
}

.accordion-item.answered .accordion-header,
.accordion-item.answered .accordion-content {
    background-color: #f0f0f0;
    color: #666;
}

.answered-date {
    display: block;
    font-size: 0.85rem;
    color: #0056b3;
    margin-top: 8px;
    font-weight: 500;
}