* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles now in shared.css */

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - styles now in shared.css */

.dashboard-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 30px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Header styles now in shared.css */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dark mode toggle styles now in shared.css */

.back-button {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid #0066cc;
    font-size: 14px;
    display: inline-block;
    line-height: 1;
}

.back-button:hover {
    background: #0066cc;
    color: white;
}

body.dark-mode .back-button {
    color: #00A2E1;
    border-color: #00A2E1;
}

body.dark-mode .back-button:hover {
    background: #00A2E1;
    color: #2C2C2C;
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 80px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-container p {
    color: #666;
    font-size: 16px;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.error-container p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.back-button {
    display: inline-block;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Event Details */
.event-details {
    margin-bottom: 40px;
}

/* Event Banner Image */
.event-banner-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.event-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.event-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
}

.meta-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.meta-item .icon svg {
    width: 20px;
    height: 20px;
    color: #666;
}

/* Event Content */
.event-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 30px;
}

.event-info {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-section {
    margin-bottom: 30px;
    width: 100%;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section p,
.info-section #event-description,
.info-section .content-section-body {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.content-section-body p {
    margin-bottom: 0;
}

.content-section-body p:empty,
.content-section-body p:has(> br:only-child) {
    line-height: 0.5;
}

/* Inline images in rich-text content */
#event-description img,
.content-section-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.75rem 0;
}

/* Registration Form */
.registration-form {
    position: sticky;
    top: 90px;
    align-self: start;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Section Grouping */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.form-section-header {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-section .form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Checkbox specific styling - remove width and padding */
.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    transform: scale(1.5);
    margin-left: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Remove focus outline for checkbox */
.form-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    width: 100%;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.submit-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    color: #666;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.success-message h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.primary-button {
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Form Error */
.form-error {
    background: #fee;
    border-left: 4px solid #dc2626;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #991b1b;
    font-size: 14px;
}

/* Footer */
.dashboard-footer {
    margin-top: auto;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.dashboard-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #888;
    margin: 0;
}

body.dark-mode .dashboard-footer {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .copyright {
    color: #C8C9CA;
}

/* Responsive Design */
@media (max-width: 968px) {
    .event-content {
        grid-template-columns: 1fr;
    }

    .registration-form {
        position: static;
    }

    .event-header {
        padding: 30px 20px;
    }

    .event-header h1 {
        font-size: 28px;
    }

    .event-meta {
        gap: 15px;
    }

    .form-card {
        padding: 30px 20px;
    }
}

/* Dark Mode Styles */
body.dark-mode .event-header {
    background: linear-gradient(135deg, #001D34 0%, #000d1a 100%);
}

body.dark-mode .event-header h1 {
    color: white;
}

body.dark-mode .meta-item {
    color: rgba(230, 231, 232, 0.9);
}

body.dark-mode .meta-item .icon svg {
    color: #C8C9CA;
}

body.dark-mode .event-info {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .info-section h2 {
    color: #E6E7E8;
}

body.dark-mode .info-section p {
    color: #C8C9CA;
}

body.dark-mode .form-card {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-card h2 {
    color: #E6E7E8;
}

body.dark-mode .form-section {
    background: #2C2C2C;
    border-color: #5A5A5A;
}

body.dark-mode .form-section-header {
    color: #00A2E1;
    border-bottom-color: #00A2E1;
}

body.dark-mode .form-group label {
    color: #E6E7E8;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #5A5A5A;
    border-color: #6A6A6A;
    color: #E6E7E8;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    background: #6A6A6A;
    border-color: #00A2E1;
}

body.dark-mode .form-note {
    color: #C8C9CA;
}

body.dark-mode .success-message {
    background: #1e3a1e;
}

body.dark-mode .success-message h3 {
    color: #65C296;
}

body.dark-mode .success-message p {
    color: #8fd4b3;
}

body.dark-mode .error-container h2 {
    color: #E6E7E8;
}

body.dark-mode .error-container p {
    color: #C8C9CA;
}

@media (max-width: 768px) {
    .event-info {
        padding: 20px 15px;
    }

    .event-info h1 {
        font-size: 24px;
    }

    .event-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .meta-item {
        font-size: 14px;
    }

    .registration-form {
        padding: 20px 15px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .event-info {
        padding: 15px 10px;
    }

    .event-info h1 {
        font-size: 20px;
    }

    .meta-item {
        font-size: 13px;
    }

    .registration-form {
        padding: 15px 10px;
    }

    .form-header h2 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-input,
    .form-textarea {
        font-size: 13px;
        padding: 8px 10px;
    }

    .submit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   DOCUMENT UPLOAD SECTION
   ============================================ */

.upload-instructions {
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

body.dark-mode .upload-instructions {
    color: #999;
}

.document-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

body.dark-mode .document-upload-area {
    background: #2a2a2a;
    border-color: #555;
}

.document-upload-area.drag-over {
    border-color: #0066cc;
    background: #e8f4ff;
}

body.dark-mode .document-upload-area.drag-over {
    background: #1a3a5c;
    border-color: #4a9eff;
}

.file-input {
    display: none;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 20px;
    color: #666;
    transition: color 0.3s ease;
}

body.dark-mode .file-input-label {
    color: #999;
}

.file-input-label:hover {
    color: #0066cc;
}

body.dark-mode .file-input-label:hover {
    color: #4a9eff;
}

.file-input-label svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.file-input-label span {
    font-size: 14px;
    font-weight: 500;
}

.upload-help {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
}

body.dark-mode .upload-help {
    color: #777;
}

.file-preview-list {
    margin-top: 16px;
    text-align: left;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 8px;
}

body.dark-mode .file-preview-item {
    background: #333;
    border-color: #444;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-info svg {
    flex-shrink: 0;
    color: #0066cc;
}

body.dark-mode .file-info svg {
    color: #4a9eff;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

body.dark-mode .file-size {
    color: #777;
}

.remove-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #fee;
    color: #dc3545;
}

body.dark-mode .remove-file-btn:hover {
    background: #4a1a1a;
    color: #f5a5a5;
}

/* ===== Event Full Banner ===== */
.event-full-banner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--error-color, #d32f2f);
}

.event-full-icon {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.event-full-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--error-color, #d32f2f);
}

.event-full-banner p {
    color: var(--text-secondary, #555);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

body.dark-mode .event-full-banner p {
    color: var(--text-secondary, #aaa);
}
