/* Event Participant System - CSS Styles */
/* Import common styles */
@import url('common-styles.css');

/* Base Styles (from event-admin.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Message Styles */
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.error {
    background: #ffe6e6;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.message.success {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

/* Banner Section - For Login Pages */
.banner-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 5px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: visible;
    min-height: auto; /* Allow height to be determined by content */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Banner Section for Login Pages - Auto-fit to image height */
.banner-section:has(.banner-image) {
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Controls positioning in banner sections (when inside banner-header-row, overrides below) */
.banner-section .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 0;
    padding: 0;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.banner-image {
    width: 790px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.1);
    max-width: calc(100% - 10px);
    display: block;
}

.default-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 1;
    position: relative;
    padding: 20px;
}

.award-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Single row below banner: title + controls on one line, fully inside banner block */
.banner-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    gap: 15px;
    padding: 10px 15px 15px;
    position: relative;
    z-index: 5;
    min-width: 0;
}

.banner-header-row .page-header {
    flex: 0 1 auto;
    margin: 0;
    min-width: min-content;
    overflow: visible;
}

.banner-header-row .page-header-content {
    white-space: nowrap;
    justify-content: flex-start;
}

.banner-header-row .header-controls {
    flex: 0 0 auto;
    margin: 0;
    margin-left: auto;
    padding: 0;
    width: auto;
    flex-shrink: 0;
    min-width: 0;
}

.page-header {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin: 3px 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    padding: 0 5px;
    position: relative;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex: 1;
}

.page-header-content .page-subtitle {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.95;
}

.page-header-language {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: auto;
}

/* Language Switcher Styles - Using admin styles */
/* Note: Language switcher styles are already defined in event-admin.css */
/* and imported via common-styles.css */

/* Hide award title by default */
.award-title {
    display: none;
}

/* Show award title only when banner image is not available */
.banner-section:not(:has(.banner-image)) .award-title {
    display: block;
}

/* Hide award title when banner image is present */
.banner-section .banner-image + .award-title {
    display: none;
}

/* Header Controls for Banner Section */
.banner-section .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 0;
    padding: 0 5px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* Session Info for Banner Section */
.banner-section .session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-section .session-timer i {
    font-size: 0.8rem;
}

.banner-section #countdown {
    font-weight: 500;
}



/* Buttons for Banner Section */
.banner-section .btn-back,
.banner-section .btn-logout,
.banner-section .btn-upload-more,
.banner-section .btn-view,
.banner-section .btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0;
}

.banner-section .btn-back:hover,
.banner-section .btn-logout:hover,
.banner-section .btn-upload-more:hover,
.banner-section .btn-view:hover,
.banner-section .btn-upload:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.banner-section .btn-back {
    background: #6c757d;
}

.banner-section .btn-back:hover {
    background: #545b62;
}

.banner-section .btn-view {
    background: #17a2b8;
}

.banner-section .btn-view:hover {
    background: #138496;
}

.banner-section .btn-upload {
    background: #28a745;
}

.banner-section .btn-upload:hover {
    background: #1e7e34;
}

.banner-section .btn-logout {
    background: #dc3545;
}

.banner-section .btn-logout:hover {
    background: #c82333;
}

/* Header Section - For Dashboard and Other Pages */
.header {
    background: linear-gradient(135deg, #d4af37 0%, #ff6b35 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Header Controls */
.header .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.header .session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.header .session-timer i {
    font-size: 0.8rem;
}

.header #countdown {
    font-weight: 500;
}



.header .btn-back,
.header .btn-logout,
.header .btn-upload-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0;
}

.header .btn-back:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.header .btn-logout {
    background: rgba(220, 53, 69, 0.8);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.header .btn-logout:hover {
    background: rgba(220, 53, 69, 0.9);
}

.header .btn-upload-more:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

/* Login Page Styles */

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* MFA Form Styles */
.mfa-form {
    text-align: center;
}

.mfa-form .form-group input {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.mfa-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Email Display for MFA */
.email-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.email-display i {
    color: #d4af37;
    margin-right: 8px;
}

.email-label {
    color: #666;
    font-size: 0.9rem;
}

.email-address {
    color: #333;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

/* MFA Secondary Actions */
.mfa-secondary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: nowrap;
}

.mfa-secondary-actions .forgot-link {
    margin-top: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Responsive adjustments for MFA */
@media (max-width: 480px) {
    .mfa-secondary-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .mfa-secondary-actions .forgot-link {
        width: 100%;
        text-align: center;
        white-space: normal;
        font-size: 0.85rem;
    }
}



/* Dashboard Styles */
.participant-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.participant-info h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5rem;
}

.participant-info .participant-info-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.participant-info .info-grid-campaign {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: inline;
    margin-right: 20px;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.project-title-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.submission-types {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.submission-types h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5rem;
}

.submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.submission-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.submission-card.uploaded {
    border-color: #4caf50;
    background: #f8fff8;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.submission-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.type-number {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.type-name {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
    word-wrap: break-word;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.submission-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #fff3e0;
    border: 1px solid #2196f3;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #e65100;
    font-weight: 500;
    flex-shrink: 0;
}

.submission-mode-indicator i {
    font-size: 0.8rem;
}

.mode-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 1.2rem;
}

.status-icon.uploaded {
    color: #4caf50;
}

.status-icon.not-uploaded {
    color: #ff9800;
}

.file-count {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.submission-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.file-requirements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.file-requirements .file-types,
.file-requirements .file-size-limit,
.file-requirements .file-count-limit {
    margin-bottom: 5px;
}

.file-requirements .file-types:last-child,
.file-requirements .file-size-limit:last-child,
.file-requirements .file-count-limit:last-child {
    margin-bottom: 0;
}

.file-requirements strong {
    color: #495057;
    font-weight: 600;
}

.submission-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-upload {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-view {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover {
    background: #e65100;
    transform: translateY(-1px);
}

.uploaded-files {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: #666;
}

.file-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-size {
    color: #666;
    font-size: 0.8rem;
}

.file-actions {
    display: flex;
    gap: 5px;
}

.btn-delete-file {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-file:hover {
    background: #c82333;
}

/* Upload Page Styles */
.upload-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.upload-header {
    margin-bottom: 25px;
}

.upload-header h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5rem;
}

.upload-header .submission-type-info {
    margin-bottom: 15px;
}

.upload-header .type-number {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.upload-header .type-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-header .submission-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.files-header {
    margin-bottom: 25px;
}

.files-header h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5rem;
}

.files-header .submission-type-info {
    margin-bottom: 15px;
}

.files-header .type-number {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.files-header .type-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.files-header .submission-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submission-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

.upload-form {
    margin-bottom: 30px;
}

.file-input-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.file-input-container:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.file-input-container.dragover {
    border-color: #007bff;
    background: #fff3e0;
}

.file-input {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
}

.file-list {
    margin-top: 20px;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-file:hover {
    background: #c82333;
}

.btn-upload-files {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-files:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-upload-files:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.existing-files {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.existing-files h3 {
    margin: 0 0 15px 0;
    color: #333;
}

/* Recently Uploaded Files Styles */
.uploaded-files-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8fff8;
    border: 1px solid #4caf50;
    border-radius: 8px;
}

.uploaded-files-info h3 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 1.1rem;
}

.uploaded-file {
    background: white !important;
    border: 1px solid #c8e6c9 !important;
}

.uploaded-file .file-icon {
    color: #4caf50 !important;
}

/* View Files Page Styles */
.view-files-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.files-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.files-header {
    margin-bottom: 25px;
}

.files-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.files-list {
    margin-top: 20px;
}

.file-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.file-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.btn-download {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Additional View Files Styles */
.no-files {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-files i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.no-files p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.files-header {
    margin-bottom: 25px;
}

.files-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.files-header p {
    margin: 5px 0;
    color: #666;
}

.submission-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.navigation-section {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Navigation Section Buttons */
.navigation-section .btn-back,
.navigation-section .btn-view,
.navigation-section .btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.navigation-section .btn-back:hover,
.navigation-section .btn-view:hover,
.navigation-section .btn-upload:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.navigation-section .btn-back {
    background: #6c757d;
}

.navigation-section .btn-back:hover {
    background: #545b62;
}

.navigation-section .btn-view {
    background: #17a2b8;
}

.navigation-section .btn-view:hover {
    background: #138496;
}

.navigation-section .btn-upload {
    background: #28a745;
}

.navigation-section .btn-upload:hover {
    background: #1e7e34;
}

/* Drag and Drop Upload Styles */
.drag-drop-area {
    border: 3px dashed #007bff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.drag-drop-area:hover {
    border-color: #0056b3;
    background: #e9ecef;
}

.drag-drop-area.drag-over {
    border-color: #28a745;
    background: #d4edda;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.drag-drop-area h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.2rem;
}

.drag-drop-area p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 1rem;
}

.drag-drop-area .form-help {
    color: #6c757d;
    font-size: 0.85rem;
}

/* File Preview Styles */
.file-preview {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-file .file-icon {
    font-size: 2rem;
    color: #007bff;
}

.selected-file .file-info {
    flex: 1;
}

.selected-file .file-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.selected-file .file-size {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Upload Button Styles */
.btn-upload:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-upload:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .header-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .header .session-info {
        justify-content: center;
    }
    
    .submission-grid {
        grid-template-columns: 1fr;
    }
    
    .participant-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-grid {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .file-count {
        font-size: 0.75rem;
        padding: 1px 6px;
        min-width: auto;
    }
} 

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .header .header-controls {
        padding: 0 10px;
    }
    
    .header .session-info,
    .header .btn-back,
    .header .btn-logout,
    .header .btn-upload-more {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .file-count {
        font-size: 0.7rem;
        padding: 1px 4px;
        border-radius: 10px;
    }
}

/* Language switcher in header controls - ensure clickable above overlay */
.header-controls .language-switcher {
    display: inline-flex;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    cursor: pointer;
}

.header-controls .language-switcher .language-current {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #333;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

.header-controls .language-switcher .language-current:hover {
    background: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-controls .language-switcher .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.header-controls .language-switcher .language-dropdown.show {
    display: block;
}

.header-controls .language-switcher .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-controls .language-switcher .language-option:hover {
    background-color: #f8f9fa;
}

.header-controls .language-switcher .language-option.active {
    background-color: #e9ecef;
    font-weight: 600;
}

/* Responsive adjustments for language switcher */
@media (max-width: 768px) {
    .header-controls .language-switcher {
        margin: 5px 0;
    }
    
    .header-controls .language-switcher .language-dropdown {
        right: auto;
        left: 0;
    }
} 