body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

h1 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.intro-text {
    color: #444;
    margin-bottom: 30px;
    font-size: 16px;
}

.buttons {
    margin-bottom: 30px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 6px;
    background-color: #1e3a8a;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #374fc7;
}

.status {
    font-weight: bold;
    font-size: 20px;
    display: none;
    margin-bottom: 20px;
}

.talking {
    color: green;
}

.listening {
    color: #003180;
}

.wakingup {
    color: #b17ecd;
}

.saving {
    color: #bc8612;
}

.output-log {
    text-align: left;
    background: #f3f4f6;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
}

.toggle-label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #343a40;
}

.toggle-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.toggle-link:hover {
    color: #0056b3; /* Darker blue on hover */
}

#biography_topic_container {
    display: none;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Form styling */
.form-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    display: inline-block;
    background-color: #1e3a8a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #374fc7;
}

/* Calendar grid layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.day-label {
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
    color: #1e3a8a;
    font-size: 14px;
}

.calendar-cell {
    border: 1px solid #e5e7eb;
    min-height: 100px;
    padding: 6px;
    background-color: #ffffff;
    text-align: left;
    font-size: 13px;
    position: relative;
}

.calendar-cell.today {
    background-color: #fef9c3;
    border-color: #facc15;
}

.calendar-cell .day-ordinal {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.calendar-cell .day-ordinal a {
    color: #1e3a8a;
    text-decoration: none;
}

.calendar-cell .day-ordinal a:hover {
    text-decoration: underline;
}

.event-list {
    list-style: none;
    padding-left: 0;
    margin-top: 4px;
}

.event-list li {
    margin-bottom: 4px;
}

.event-list a {
    color: #111827;
    text-decoration: none;
}

.event-list a:hover {
    text-decoration: underline;
}

.event-times {
    font-weight: 500;
    margin-right: 4px;
    color: #4b5563;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.nav a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav a:hover {
    background-color: #e0e7ff;
}
