* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    font-size: 16px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-right: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1rem;
    background: linear-gradient(to bottom, #000 33%, #d00 33%, #d00 66%, #ffcc00 66%);
    opacity: 0.6;
    border-radius: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e9c46a;
    border-bottom: 2px solid #e9c46a;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e9f5f2, #f8fafc);
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    margin-left: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #264653;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    background: linear-gradient(135deg, #2a9d8f, #287271);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #287271, #2a9d8f);
}

.hero-image {
    flex: 1;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 80%;
    height: 80%;
    max-width: 400px;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    color: #264653;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2a9d8f;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

.dsgvo-compliance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #264653;
    font-weight: 500;
}

/* Designer Demo Section */
.designer-demo {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
}

.designer-demo h3 {
    color: #264653;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.designer-demo p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.demo-gif {
    width: 60%;
    max-width: 650px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.demo-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-description ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
}

.demo-description li {
    padding: 0.75rem 0;
    color: #555;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    padding-left: 1.8rem;
}

.demo-description li:before {
    content: "✓";
    color: #2a9d8f;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.demo-description .cta-button {
    align-self: flex-start;
}

/* Responsive design for the demo section */
@media (max-width: 900px) {
    .demo-container {
        flex-direction: column;
    }
    
    .demo-gif {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .demo-description {
        width: 100%;
    }
    
    .demo-description .cta-button {
        align-self: center;
    }
}

.dsgvo-icon {
    vertical-align: middle;
}

/* Pricing Section */
.pricing {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc, #e9f5f2);
}

.pricing h2 {
    color: #264653;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.pricing-card h3 {
    color: #2a9d8f;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #264653;
    margin-bottom: 1rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.disabled-button {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: #e9f5f2;
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e9c46a;
}

footer p {
    font-size: 0.9rem;
    color: #e9f5f2;
}

/* Login and Register Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e9f5f2, #f8fafc);
    padding: 2rem;
}

.login-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    font-size: 1.5rem;
    color: #264653;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.login-input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

.login-button {
    background: linear-gradient(135deg, #2a9d8f, #287271);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #287271, #2a9d8f);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.org-input {
    display: none;
}

/* Dashboard Page Styles */
.dashboard-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e9f5f2, #f8fafc);
    padding: 3rem 1rem;
}

.dashboard-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.dashboard-card h1 {
    font-size: 2rem;
    color: #264653;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.no-events {
    color: #666;
    font-size: 1rem;
    text-align: center;
}

.event-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card h2 {
    font-size: 1.2rem;
    color: #2a9d8f;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #4b5563;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.action-button:hover {
    background-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.button-icon {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.3rem;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Subtle action button variations based on function rather than bold colors */
.view-responses-button {
    color: #4338ca;
    border-color: #e0e7ff;
    background-color: #f5f3ff;
}
.view-responses-button:hover {
    background-color: #ede9fe;
    border-color: #d4d0fc;
}

.edit-button {
    color: #1e40af;
    border-color: #dbeafe;
    background-color: #eff6ff;
}
.edit-button:hover {
    background-color: #dbeafe;
    border-color: #bfdbfe;
}

.open-button {
    color: #065f46;
    border-color: #d1fae5;
    background-color: #ecfdf5;
}
.open-button:hover {
    background-color: #d1fae5;
    border-color: #a7f3d0;
}

.copy-button {
    color: #4b5563;
    border-color: #f3f4f6;
    background-color: #f9fafb;
}
.copy-button:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

.delete-button {
    color: white;
    border-color: #fee2e2;
    background-color: #ef4444;
}
.delete-button:hover {
    background-color: #dc2626;
    border-color: #fecaca;
}

.back-button {
    color: #1f2937;
    border-color: #f3f4f6;
    background-color: #f9fafb;
    margin-right: auto;
}
.back-button:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* Create button styling refinement - more professional */
.create-button {
    color: #065f46;
    border-color: #d1fae5;
    background-color: #ecfdf5;
    margin-bottom: 0; /* Remove bottom margin */
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

/* Subscription button styling */
.subscription-button {
    color: #1e40af;
    border-color: #dbeafe;
    background-color: #eff6ff;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

.subscription-button:hover {
    background-color: #dbeafe;
    border-color: #bfdbfe;
}

/* --- Designer Page Styles --- */
.designer-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#eventHeader {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

#eventHeader h2 {
    color: #264653;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
    width: calc(50% - 1rem);
    display: inline-block;
    vertical-align: top;
    margin-right: 1rem;
}

.input-group.full-width {
    width: 100%;
    margin-right: 0;
}

.time-group {
    width: calc(25% - 1rem);
}

.input-group label {
    display: block;
    color: #2a9d8f;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.input-group input:focus,
.input-group textarea:focus {
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.1);
    outline: none;
}

/* Question Types Panel */
.designer-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

#questionTypes {
    width: 250px;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#questionTypes h3 {
    color: #264653;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.question-type {
    background: white;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.question-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.question-type-badge {
    padding: 0.4rem 0.8rem;
    min-width: 120px;
    text-align: center;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(42,157,143,0.1);
}

/* Questionnaire Area */
#questionnaireArea {
    flex: 1;
    min-height: 400px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

#questionnaireArea:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-hint {
    color: #94a3b8;
    font-size: 1.1rem;
    text-align: center;
}

.question-item {
    background: white;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: move;
    position: relative;
}

.question-item:hover {
    border-color: #2a9d8f;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.1);
}

.question-item.drag-over {
    border: 2px dashed #2a9d8f;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.question-item.drag-over-top {
    border-top: 3px solid #2a9d8f;
    padding-top: 6px; /* Compensate for the thicker border */
}

.question-item.drag-over-bottom {
    border-bottom: 3px solid #2a9d8f;
    padding-bottom: 6px; /* Compensate for the thicker border */
}

#questionnaireArea.dragover-empty {
    border: 2px solid #2a9d8f;
    background-color: rgba(42, 157, 143, 0.05);
}

.question-content {
    width: 100%;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.question-type-badge {
    padding: 0.4rem 0.8rem;
    background: #2a9d8f;
    color: white;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.question-item .remove-btn {
    padding: 0.4rem 0.8rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.question-item .remove-btn:hover {
    background: #dc2626;
}

.question-text-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.question-text-container label {
    margin-right: 0.5rem;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.question-text-container .input-preview-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-text-input {
    flex: 1;
}

.preview-toggle-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.preview-toggle-btn:hover {
    background: #e2e8f0;
    color: #2a9d8f;
}

.preview-toggle-btn .icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.preview-expanded .preview-toggle-btn .icon {
    transform: rotate(180deg);
}

/* Options configuration panel */
.options-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.options-container h4 {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-item input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.option-item input:focus {
    border-color: #2a9d8f;
    outline: none;
}

.remove-option-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-option-btn:hover {
    background: #fecaca;
}

.add-option-btn {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}

.add-option-btn:hover {
    background: #d1fae5;
}

/* Hide the preview section by default */
.question-preview {
    padding: 0.8rem;
    margin-top: 0;
    display: none;
}

.preview-expanded .question-preview {
    display: block;
}

.question-preview .preview-box {
    max-height: unset;
    opacity: 1;
    padding: 0.8rem;
    margin-top: 0;
}

/* Fix save button styling */
.save-button {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.2);
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
    background: linear-gradient(135deg, #287271, #2a9d8f);
}

/* --- End Designer Page Styles --- */

/* Impressum Section */
.impressum {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    color: #264653;
}

.impressum-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2a9d8f;
}

.impressum-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #264653;
}

.impressum-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.impressum-content a {
    color: #2a9d8f;
    text-decoration: none;
}

.impressum-content a:hover {
    text-decoration: underline;
}

/* Form Page Styles */
.form-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e9f5f2, #f8fafc);
    padding: 3rem 1rem;
}

.form-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    width: 100%;
}

.form-card h1 {
    font-size: 2rem;
    color: #264653;
    font-weight: 600;
    margin-bottom: 1rem;
}

#event-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.6;
}

#event-details small {
    display: block;
    margin-top: 1rem;
    color: #718096;
    font-style: italic;
}

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

.question-group {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.question-group:hover {
    border-color: #2a9d8f;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.08);
}

.question-group label {
    display: block;
    color: #2a9d8f;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.1);
    outline: none;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #2a9d8f;
}

.dependency-group {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #2a9d8f;
}

.dependency-group label {
    display: block;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dependency-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dependency-input:focus {
    border-color: #2a9d8f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.1);
}

/* Dependency configuration styling */
.dependency-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.dependency-container h4 {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Dependency preview styling */
.dependency-preview {
    margin-top: 0.8rem;
    padding-left: 1.5rem;
    border-left: 2px dashed #2a9d8f;
    opacity: 0.7;
}

.dependency-label-preview {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.dependency-input-preview {
    width: 100%;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.preview-checkbox-container {
    margin-bottom: 0.5rem;
}

/* Confirmation Page Styles */
.confirmation-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in;
}

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

.confirmation-heading {
    color: #10b981;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.checkmark {
    background: #10b981;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.confirmation-message {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.summary-title {
    color: #2a9d8f;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.summary-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.6rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-question {
    font-weight: 500;
    color: #4b5563;
}

.summary-response {
    color: #000;
}

.event-details-summary {
    background: #2a9d8f;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.action-button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.calendar-button {
    background: #3b82f6;
    color: white;
}

.calendar-button:hover {
    background: #2563eb;
}

.print-button {
    background: #6b7280;
    color: white;
}

.print-button:hover {
    background: #4b5563;
}

.home-button {
    background: #2a9d8f;
    color: white;
}

.home-button:hover {
    background: #25867a;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Print styles */
@media print {
    body {
        padding: 2cm;
        background: white;
    }
    
    .form-card {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }
    
    .action-buttons {
        display: none;
    }
    
    .confirmation-container {
        color: black;
    }
    
    .event-details-summary {
        background: #f1f5f9;
        color: black;
        border: 1px solid #cbd5e1;
    }
    
    .checkmark {
        border: 2px solid #10b981;
        background: white;
        color: #10b981;
    }
}

/* Required checkbox styling */
.required-container {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 0.5rem;
}

.required-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: #2a9d8f;
}

.required-label {
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.required-label::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.3rem;
    font-size: 1rem;
    font-weight: bold;
}

/* Checkbox container styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    flex-direction: row; /* Explicitly set flex direction */
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
    order: 1; /* Ensure checkbox comes first */
}

.checkbox-container span {
    flex: 0 1 auto;
    display: block;
    order: 2; /* Ensure label comes second */
}

/* Fix submit button styling in form */
.submit-button {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.2);
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
    background: linear-gradient(135deg, #287271, #2a9d8f);
}

/* Fix option container alignment */
.option-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

/* Item Donation Styles */
.items-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.items-container h4 {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-name-input {
    flex: 2;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.item-required-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    max-width: 80px;
}

.item-name-input:focus,
.item-required-input:focus {
    border-color: #2a9d8f;
    outline: none;
}

.remove-item-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: #fecaca;
}

.add-item-btn {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}

.add-item-btn:hover {
    background: #d1fae5;
}

/* Item Donation Table */
.item-donation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.item-donation-table th,
.item-donation-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.item-donation-table th {
    font-weight: 500;
    color: #4b5563;
    background-color: #f1f5f9;
}

.item-donation-table tr:last-child td {
    border-bottom: none;
}

/* Helper Shifts Table */
.helper-shifts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.helper-shifts-table th,
.helper-shifts-table td {
    padding: 0.5rem 1rem;  /* Added more horizontal padding */
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.helper-shifts-table th {
    font-weight: 500;
    color: #4b5563;
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;  /* Extra padding for headers */
}

.helper-shifts-table tr:last-child td {
    border-bottom: none;
}

.shift-checkbox-input {
    transform: scale(1.2);  /* Make checkbox slightly larger */
    margin: 0 auto;
    display: block;  /* Center the checkbox */
    cursor: pointer;
}

.item-quantity-input {
    width: 60px;
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

/* For the form view */
.item-donation-container:not(.preview) .item-quantity-input {
    border-color: #2a9d8f;
    background-color: #ecfdf5;
}

.item-progress,
.shift-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #2a9d8f;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.75rem;
    color: #64748b;
}

.item-remaining,
.shift-remaining {
    color: #ef4444;
    font-weight: 500;
}

.item-fulfilled,
.shift-fulfilled {
    color: #10b981;
    font-weight: 500;
}

/* Loading Indicator Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2a9d8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-button {
    position: relative;
    pointer-events: none;
}

.loading-button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    right: 15px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-button span {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Specific spinner for forms */
.form-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* End Loading Indicator Styles */

/* Item donation list in summary */
.items-donation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.items-donation-list li {
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
}

.items-donation-list li:last-child {
    border-bottom: none;
}

/* Email styling for donation items */
.donation-items {
    padding-left: 20px;
    margin: 5px 0;
}

/* Event stats styling */
.event-stats {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #475569;
}

.response-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #e9f5f2;
    color: #2a9d8f;
    padding: 0.35rem 0.5rem;
    border-radius: 16px;
    font-weight: 500;
}

.stats-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.15rem;
}

/* Responses Modal Styles */
.responses-modal {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
}

.responses-modal .modal-body {
    padding: 0;
    overflow-x: auto;
}

.responses-container {
    padding: 1.5rem;
}

.responses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    margin: 0;
}

.responses-table th,
.responses-table td {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.responses-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
}

.responses-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.responses-table tr:hover {
    background-color: #e9f5f2;
}

.responses-table .totals-row {
    background-color: #f1f5f9 !important;
    font-weight: 600;
    border-top: 2px solid #cbd5e1;
}

.responses-table .totals-row td {
    color: #1e293b;
}

/* Export buttons styling */
.export-button {
    background-color: #2a9d8f;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    margin-right: 0.5rem;
}

.export-button:hover {
    background-color: #1f7168;
}

.export-button:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

/* Delete button styling */
.delete-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.delete-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Delete confirmation modal styling */
.delete-confirmation-modal {
    max-width: 500px;
}

.delete-header {
    background-color: #fee2e2;
    color: #b91c1c;
}

.delete-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #b91c1c;
}

.warning-icon {
    stroke: #b91c1c;
    margin-bottom: 0.5rem;
}

.delete-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.6;
}

.delete-warning-text {
    color: #b91c1c;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.delete-details {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.delete-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.delete-list li {
    margin: 0.3rem 0;
    color: #4b5563;
}

.delete-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #f1f5f9;
}

.cancel-button {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background-color: #e5e7eb;
}

.confirm-button {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-button:hover {
    background-color: #e5e7eb;
}

.confirm-delete-button {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-delete-button:hover {
    background-color: #dc2626;
}

.confirm-delete-button:disabled {
    background-color: #f87171;
    cursor: not-allowed;
}

.delete-error {
    color: #b91c1c;
    background-color: #fee2e2;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.success-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    z-index: 100;
}

.success-message.fadeout {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Preview form button */
.preview-form-button {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.preview-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Preview modal styling */
.preview-form-modal {
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
}

.preview-form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.event-details-preview {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Make save and preview buttons display inline */
.designer-container .save-button,
.designer-container .preview-form-button {
    display: inline-flex;
}

/* Container for buttons at the bottom of designer */
.designer-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* Mobile responsive for designer buttons */
@media (max-width: 768px) {
    .designer-buttons-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .designer-buttons-container .save-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Login message styling */
#loginMessage {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

#loginMessage.success-message {
    background-color: #d1fae5;
    color: #065f46;
}

#loginMessage.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Empty state - make the message invisible when empty */
#loginMessage:empty {
    display: none;
}

/* Plan duration styling */
.plan-duration {
    background-color: #f8fafc;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}

.duration-label {
    font-weight: 500;
    color: #475569;
}

#subscription-period {
    color: #2a9d8f;
    font-weight: 600;
}

/* Plan change info styling */
.plan-change-info {
    margin-top: 1rem;
}

.plan-change-alert {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cancel-scheduled-button {
    background-color: #ffffff;
    border: 1px solid #9a3412;
    color: #9a3412;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-scheduled-button:hover {
    background-color: #9a3412;
    color: white;
}

/* Legal confirmation styling */
.legal-confirmation {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
}

.legal-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-text p {
    margin-bottom: 0.8rem;
}

.legal-text ul {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-text a {
    color: #2a9d8f;
    text-decoration: underline;
}

.legal-text a:hover {
    color: #264653;
}

/* Auto-renewal information styling */
.auto-renewal-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    color: #1e40af;
}

.auto-renewal-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.auto-renewal-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auto-renewal-info p:last-child {
    margin-bottom: 0;
}

/* Auto-renewal notice styling */
.auto-renewal-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0.8rem;
    background-color: #f0fdfa;
    border-radius: 6px;
    border-left: 3px solid #2a9d8f;
    font-size: 0.85rem;
    color: #134e4a;
}

.renewal-icon {
    font-size: 1rem;
}

/* Subscription history styling */
.subscription-history-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.subscription-history-container h3 {
    color: #2a9d8f;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.subscription-events-list {
    list-style: none;
    padding: 0;
}

.subscription-event {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.8rem;
}

.subscription-event:last-child {
    border-bottom: none;
}

.event-icon {
    font-size: 1.2rem;
    padding: 0.3rem;
}

.event-details {
    flex: 1;
}

.event-description {
    font-size: 0.95rem;
    color: #334155;
}

.event-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Subscription page specific styles */
.subscription-section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subscription-section h2 {
    color: #264653;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.current-plan {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.current-plan h3 {
    color: #2a9d8f;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.current-plan #plan-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #264653;
    margin-bottom: 0.5rem;
}

.current-plan #plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.current-plan ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.current-plan li {
    margin-bottom: 0.5rem;
}

.usage-container {
    margin-top: 1.5rem;
}

.usage-meter {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.usage-title {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.usage-bar {
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background-color: #2a9d8f;
    border-radius: 5px;
}

.usage-meter.usage-warning .usage-progress {
    background-color: #f59e0b;
}

.usage-meter.usage-critical .usage-progress {
    background-color: #ef4444;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    font-size: 0.9rem;
}

.available-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.loading-plans {
    text-align: center;
    color: #4b5563;
    grid-column: 1 / -1;
    padding: 2rem;
}

.plan-select-btn {
    width: 100%;
    margin-top: 1rem;
}

.plan-change-details {
    background-color: #f8fafc;
    padding: 2rem 3rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.plan-change-details h3 {
    color: #2a9d8f;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.plan-change-details p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #264653;
    margin-bottom: 0.75rem;
}

.price-difference {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

/* Legal confirmation styling enhancement */
.legal-confirmation {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #264653;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #475569;
}

/* Logout button styling */
.logout-button {
    color: #ef4444;
    border-color: #fee2e2;
    background-color: #fff1f1;
    flex-shrink: 0; /* Prevent button from shrinking */
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

.logout-button:hover {
    background-color: #fecaca;
    border-color: #ef4444;
}

/* Make dashboard top bar flex with space between */
.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

/* PDF Upload and Display Styles */
.pdf-upload-container {
    margin-top: 0.5rem;
}

.pdf-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.pdf-upload-area:hover {
    border-color: #2a9d8f;
    background-color: #f0fdf4;
}

.pdf-file-input {
    display: none;
}

.pdf-upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
    color: #6b7280;
}

.upload-text {
    font-weight: 500;
    color: #374151;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

.upload-progress {
    font-weight: 500;
    color: #2a9d8f;
    font-size: 1.1rem;
}

.existing-pdf {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdf-icon {
    font-size: 1.5rem;
    color: #dc2626;
}

.pdf-name {
    font-weight: 500;
    color: #374151;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-download-btn,
.pdf-delete-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-download-btn {
    background-color: #2a9d8f;
    color: white;
}

.pdf-download-btn:hover {
    background-color: #238a7b;
}

.pdf-delete-btn {
    background-color: #ef4444;
    color: white;
    margin-left: 0.5rem;
}

.pdf-delete-btn:hover {
    background-color: #dc2626;
}

/* Form PDF Display Styles */
.pdf-display-container {
    margin-top: 0.5rem;
}

/* New PDF Viewer Styles */
.pdf-viewer {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-header .pdf-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pdf-header .pdf-icon {
    font-size: 1.25rem;
}

.pdf-header .pdf-name {
    font-weight: 500;
    color: #374151;
}

.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.pdf-download-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.pdf-content {
    padding: 0;
    position: relative;
}

.pdf-content iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
    background-color: #ffffff;
}

/* Hide PDF viewer sidebar/thumbnails for cleaner view */
.pdf-content iframe[src*=".pdf"] {
    /* Force PDF to display without sidebar */
    overflow: hidden;
}

/* Target PDF.js viewer elements to hide sidebar */
.pdf-content iframe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

/* Legacy PDF View Styles (for backwards compatibility) */
.pdf-view {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.pdf-view .pdf-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdf-view-btn {
    background-color: #2a9d8f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.pdf-view-btn:hover {
    background-color: #238a7b;
}

.pdf-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #6b7280;
    font-style: italic;
    background-color: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
}

/* PDF Fullscreen Modal Styles */
.pdf-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-fullscreen-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.pdf-fullscreen-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: none;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pdf-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.pdf-fullscreen-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.pdf-fullscreen-title .pdf-icon {
    font-size: 1.5rem;
}

.pdf-fullscreen-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.pdf-fullscreen-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.pdf-fullscreen-content {
    flex: 1;
    position: relative;
    min-height: 0;
}

.pdf-fullscreen-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Updated header layout for multiple buttons */
.pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-header .pdf-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pdf-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #2a9d8f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-fullscreen-btn:hover {
    background-color: #238a7b;
}

/* Mobile responsiveness for fullscreen modal */
@media (max-width: 768px) {
    .pdf-fullscreen-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .pdf-fullscreen-header {
        padding: 0.75rem;
    }
    
    .pdf-fullscreen-title {
        font-size: 0.9rem;
    }
    
    .pdf-fullscreen-close {
        width: 36px;
        height: 36px;
    }
}