:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #d4a373;
    --bg-light: #f7f5f2;
    --text-dark: #2d2d2d;
    --text-light: #5a5a5a;
    --white: #ffffff;
    --border-color: #e8e4df;
    --bg: #f7f5f2;

    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;

    --radius: 14px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.nobg{
    background-color: var(--bg);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Login Page */
.login-body-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    flex: 1 0 auto;
}

.container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.container h2 { margin-top: 0; }

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

input, .form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, .form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

button#sub {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s;
}

button#sub:hover { background-color: var(--secondary-color); }

.suby {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s;
}

.suby:hover { background-color: var(--secondary-color); }
header {
    background-color: var(--bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.c{
    text-align: center;
}
header img {
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
}

.verse {
    font-style: italic;
    font-weight: bold;
    color: var(--text-light);
}

/* Generic Section (landing pages) */
section {
    background: var(--white);
    padding: 3rem 2rem;
    margin: 1rem auto;
    max-width: 900px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

section h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Login Button (landing page) */
button#login {
    display: block;
    margin: 2rem auto;
    padding: 1rem 3rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button#login:hover {
    background-color: #333;
    border-color: #333;
}

/* Dark Mode Dashboard (Homepage) */
.dashboard-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
}

.hamburger {
    font-size: 2rem;
    cursor: pointer;
    display: block;
    transition: 0.2s;
    margin-right: 1rem;
}

.hamburger:hover { color: var(--accent-color); }

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background-color: #0f0f0f;
    box-shadow: var(--shadow-dark);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    padding-top: 4rem;
    overflow-y: auto;
    border-right: 3px solid var(--accent-color);
}

.sidebar.active { left: 0; }

.sidebar nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
    transition: 0.3s;
}

.sidebar nav a:hover {
    background-color: var(--accent-color);
    border-left: 4px solid var(--white);
    padding-left: 2rem;
}

main.dashboard-content {
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    min-height: 100vh;
    background-color: #121212;
    color: #e0e0e0;
    flex: 1 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.card h3 {
    color: var(--accent-color);
    margin-top: 0;
}

.card p {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.action-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.action-btn:hover { background-color: var(--accent-color); }

.logout-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #b88888;
    border-color: #b88888;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
}

.overlay.active { display: block; }

/* Vote Page */
.vote-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vote-page .vote-container {
    flex: 1 0 auto;
}

.vote-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.vote-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
}

.vote-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vote-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.vote-option:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.vote-option input[type="radio"] {
    margin-right: 10px;
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
}

.vote-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.vote-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

button.vote-btn,
button.suggestion-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button.vote-btn:hover,
button.suggestion-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
button.change-vote-btn {
    background-color: var(--accent-color);
}

button.change-vote-btn:hover {
    background-color: #c29365;
}

.status {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

.status.success {
    background-color: #e4e8df;
    color: #5a6b5a;
}

.status.error {
    background-color: #e8d8d8;
    color: #8a5a5a;
}

.suggestion-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f5f2ee;
    border-radius: var(--radius);
}

.suggestion-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.user-info {
    background-color: #e4e8df;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info span {
    font-weight: bold;
    color: var(--primary-color);
}

#logout-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: #333;
}

/* Vote Card / Results */
.vote-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    word-break: break-word;
}

.vote-card h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.vote-option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f5f5f5;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.vote-option-row:hover {
    background-color: #e8e8e8;
}

.vote-option-text {
    flex: 1 0 auto;
    font-size: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.vote-option-count {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.voted-banner {
    text-align: center;
    background-color: #e4e8df;
    color: #5a6b5a;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-row {
    padding: 0.5rem;
}

.result-row--mine {
    background-color: #e4e8df;
    border-radius: var(--radius);
}

.result-row__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.result-row__label {
    font-weight: 600;
}

.result-row__numbers {
    color: var(--text-light);
    font-size: 0.9rem;
}

.result-row__bar-bg {
    background-color: #e0e0e0;
    border-radius: var(--radius);
    height: 1.2rem;
    overflow: hidden;
}

.result-row__bar-fill {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.5s ease;
}

.result-row--mine .result-row__bar-fill {
    background-color: #8a9e8a;
}

.total-votes {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

#vote-message {
    margin-top: 1rem;
}

/* Google Form Wrapper */
.google-form-wrapper iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 300px;
    aspect-ratio: 4 / 3;
    border: 0;
}

/* Topic Creation Form */
.topic-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f5f2ee;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.topic-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.option-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.option-input-group label {
    font-weight: 600;
    min-width: 70px;
    color: var(--text-dark);
}

.option-input-group input {
    flex: 1;
}

.topic-form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.add-option-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.add-option-btn:hover {
    background-color: #3a4a6b;
}

.add-option-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.remove-option-btn {
    background-color: #b88888;
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.remove-option-btn:hover {
    background-color: #9e6b6b;
}

.remove-topic-btn {
    background-color: #b88888;
    color: var(--white);
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    line-height: 1;
}

.remove-topic-btn:hover {
    background-color: #9e6b6b;
}

/* Empty State */
.empty-state {
    padding: 2rem;
    background-color: #f0f0f0;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
}

input[readonly] {
    background-color: #e9e9e9;
    color: var(--text-light);
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container { padding: 2rem 1.5rem; }
    .dashboard-content { padding: 3rem 1rem; }
    .dashboard-header {
        padding: 0.75rem 1rem;
    }
    .dashboard-header h1 {
        font-size: 1.2rem;
    }
    .hamburger {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    .logout-area {
        gap: 0.5rem;
    }
    .logout-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    .vote-actions {
        flex-direction: column;
        align-items: center;
    }
    .vote-option {
        padding: 0.8rem;
    }
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    .calendar-grid {
        gap: 4px;
    }
    .calendar-day {
        height: 80px;
        padding: 0.3rem;
    }
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    .calendar-title {
        font-size: 1.3rem;
    }
    .activity-item {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
    .vote-container,
    .resources-container,
    .suggestions-container,
    .activities-container {
        padding: 1rem;
    }
    .schedule-container {
        padding: 1rem;
        margin: 1rem auto;
    }
}

/* Landing page specific styles */
.landing-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.landing-header img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.landing-verse {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.landing-main {
    flex: 1 0 auto;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.landing-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.7s ease-out both;
}

.landing-section:nth-child(2) { animation-delay: 0.1s; }

.landing-section:nth-child(3) { animation-delay: 0.2s; }

.landing-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.landing-h2 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.landing-p {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.landing-a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.landing-a:hover {
    color: var(--accent-color);
}

.login-area {
    text-align: center;
    margin: 2rem 0 1rem;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.login-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.abc {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s;
    box-shadow: var(--shadow);
    max-width: 140px;
}

button#landing-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suggestions page styles */
.suggestions-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
}

.suggestion-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.suggestion-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    word-break: break-word;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

.suggestion-form {
    background-color: #f0f0f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.suggestion-form-group {
    margin-bottom: 1rem;
}

.suggestion-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.suggestion-textarea {
    min-height: 150px;
    resize: vertical;
}

.suggestion-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.suggestion-button:hover {
    background-color: #3a4a6b;
}

.suggestion-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.suggestion-success {
    background-color: #e4e8df;
    color: #5a6b5a;
}

.suggestion-error {
    background-color: #e8d8d8;
    color: #8a5a5a;
}

/* Resources page styles */
.resources-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
}

.resource-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.resource-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    word-break: break-word;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.resource-card p {
    margin-bottom: 0.5rem;
}

.resource-card a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.resource-card a:hover {
    text-decoration: underline;
}

.resource-form {
    background-color: #f0f0f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.resource-form-group {
    margin-bottom: 1rem;
}

.resource-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"], input[type="url"], .resource-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.resource-textarea {
    min-height: 100px;
    resize: vertical;
}

.resource-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.resource-button:hover {
    background-color: #3a4a6b;
}

.resource-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.resource-success {
    background-color: #e4e8df;
    color: #5a6b5a;
}

.resource-error {
    background-color: #e8d8d8;
    color: #8a5a5a;
}

/* Activities page */
.activities-heading {
    color: black;
    text-align: center;
}

.hidden {
    display: none;
}

.login-heading {
    text-align: center;
    color: var(--primary-color);
    margin: 2rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .landing-header { padding: 2rem 1rem 1.5rem; }
    .landing-header img { max-width: 130px; }
    .landing-main { padding: 1.5rem 1rem; }
    .landing-section { padding: 1.5rem 1.25rem; }
    .landing-h2 { font-size: 1.35rem; }
}

/* Interest voting on suggestions */
.teacher-name {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.suggestion-text {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.interest-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.interest-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.interest-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.15s;
}

.interest-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.interest-btn.interested {
    background-color: #8a9e8a;
}

.interest-btn.interested:hover {
    background-color: #7a8f7a;
}

.interest-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Activities Calendar */
.activities-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
}

.schedule-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.schedule-container h1 {
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.schedule-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.schedule-link:hover {
    background-color: var(--secondary-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.calendar-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.calendar-nav-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 110px;
    padding: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.calendar-day:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.calendar-day.other-month {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: default;
}

.calendar-day.other-month:hover {
    border-color: var(--border-color);
    box-shadow: none;
}

.calendar-day.today {
    border-color: var(--accent-color);
    border-width: 2px;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-count {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1;
}

.calendar-day.other-month .calendar-day-number {
    color: #bbb;
}

.calendar-day.today .calendar-day-number {
    color: var(--accent-color);
}

.activity-item {
    background-color: #f5f2ee;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.8rem;
    line-height: 1.3;
    border-left: 3px solid var(--accent-color);
    overflow: hidden;
}

.activity-item__time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.75rem;
}

.activity-item__title {
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-item__creator {
    color: var(--text-light);
    font-size: 0.7rem;
}

.calendar-add-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 1rem 0 2rem;
    font-style: italic;
}

/* Activity Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-dark);
    animation: fadeInUp 0.3s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
    font-family: var(--font-serif);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-dark);
}

.modal-form-group {
    margin-bottom: 1rem;
}

.modal-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-form-group input[readonly] {
    background-color: #f0f0f0;
    color: var(--text-light);
}

.activity-delete-btn {
    background-color: #b88888;
    color: var(--white);
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 4px;
    transition: background-color 0.2s;
}

.activity-delete-btn:hover {
    background-color: #9e6b6b;
}

.modal-day-activities {
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.modal-empty-state {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 1.5rem 0;
}

.modal-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-activity-card {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s;
}

.modal-activity-card:hover {
    border-color: var(--accent-color);
}

.modal-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.modal-activity-time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.modal-activity-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.modal-activity-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.modal-activity-creator {
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
}

.modal-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.modal-creator-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* RSVP / Attendance styles */
.activity-item__more {
    color: var(--text-light);
    font-size: 0.7rem;
    text-align: center;
    font-style: italic;
}

.modal-activity-attendee-count {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.modal-activity-attendees {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.activity-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.activity-btn {
    flex: 1;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

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

.activity-btn.unselected {
    background-color: transparent;
    color: var(--primary-color);
}

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

@media (max-width: 480px) {
    .dashboard-header {
        padding: 0.75rem 1rem;
    }
    .dashboard-header h1 {
        font-size: 1.1rem;
    }
    .vote-container,
    .resources-container,
    .suggestions-container,
    .activities-container,
    .landing-main {
        padding: 0.75rem;
    }
    .schedule-container {
        padding: 0.75rem;
        margin: 0.5rem auto;
    }
    .calendar-grid {
        gap: 2px;
    }
    .calendar-day {
        height: 60px;
        padding: 0.2rem;
        font-size: 0.75rem;
    }
    .calendar-day-header {
        font-size: 0.65rem;
        padding: 0.4rem 0;
    }
    .calendar-title {
        font-size: 1.1rem;
    }
    .activity-item {
        font-size: 0.65rem;
        padding: 1px 2px;
    }
    .activity-item__more {
        font-size: 0.6rem;
    }
    .modal-activity-attendee-count,
    .modal-activity-attendees {
        font-size: 0.75rem;
    }
    .activity-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    .landing-header {
        padding: 1.5rem 0.75rem 1rem;
    }
    .landing-header img {
        max-width: 110px;
    }
    .landing-section {
        padding: 1rem 0.75rem;
    }
    .landing-h2 {
        font-size: 1.2rem;
    }
    .vote-option {
        padding: 0.6rem;
    }
    .modal-content {
        padding: 1rem;
    }
}

/* Page loading screen */
@keyframes spin {
    to { transform: rotate(360deg); }
}

html::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--primary-color);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

html::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    z-index: 10000;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

html.page-ready::before,
html.page-ready::after {
    opacity: 0;
    pointer-events: none;
}