/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 51Talk Brand Colors */
    --primary-color: #0066CC;        /* 51Talk Blue */
    --primary-dark: #004C99;         /* Darker Blue */
    --primary-light: #3399FF;        /* Lighter Blue */
    --secondary-color: #FFD700;      /* 51Talk Yellow/Gold */
    --secondary-dark: #FFC700;       /* Darker Yellow */
    --secondary-light: #FFE44D;      /* Lighter Yellow */
    --success-color: #10B981;
    --warning-color: #FFD700;        /* Yellow for warnings */
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0066CC 0%, #3399FF 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #dc2626;
}

.my-submissions-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.my-submissions-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.submission-count {
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.submissions-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 450px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

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

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dropdown-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-dropdown {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-dropdown:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.dropdown-content {
    max-height: 520px;
    overflow-y: auto;
    padding: 16px;
}

.dropdown-submission-card {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--gray-400);
    transition: all 0.3s;
    cursor: pointer;
}

.dropdown-submission-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.dropdown-submission-card.status-pending {
    border-left-color: var(--warning-color);
    background: #fffbeb;
}

.dropdown-submission-card.status-approved {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.dropdown-submission-card.status-rejected {
    border-left-color: var(--danger-color);
    background: #fef2f2;
}

.dropdown-submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dropdown-submission-filename {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-submission-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.dropdown-submission-status.pending {
    background: var(--warning-color);
    color: white;
}

.dropdown-submission-status.approved {
    background: var(--success-color);
    color: white;
}

.dropdown-submission-status.rejected {
    background: var(--danger-color);
    color: white;
}

.dropdown-submission-date {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.dropdown-submission-notes {
    font-size: 13px;
    color: var(--gray-700);
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    font-style: italic;
}

.dropdown-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.dropdown-empty-state p {
    font-size: 14px;
    margin-bottom: 8px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-link {
    padding: 8px 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--primary-dark);
}

.auth-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    margin-bottom: 24px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 48px;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.welcome-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .upload-section {
        grid-template-columns: 1fr;
    }
}

.upload-card {
    background: var(--white);
}

.upload-header {
    margin-bottom: 24px;
}

.upload-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.upload-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    background: var(--gray-100);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 16px 0 8px;
}

.upload-placeholder p {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.browse-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.video-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-preview video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    background: #000;
}

.video-info {
    text-align: left;
}

.video-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.video-size {
    font-size: 14px;
    color: var(--gray-500);
}

.change-video-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-video-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Guidelines Card */
.guidelines-card {
    background: linear-gradient(135deg, #F9FAFB 0%, #EEF2FF 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--primary-light);
}

.guidelines-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.guidelines-intro {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guideline-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.guideline-number {
    background: var(--primary-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.guideline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.guideline-content p {
    font-size: 13px;
    color: var(--gray-600);
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 64px 32px;
}

.loading-card {
    max-width: 500px;
    margin: 0 auto;
}

.loading-animation {
    margin-bottom: 32px;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 6px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.loading-text {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.progress-text {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Results Section */
.results-section {
    padding: 32px 0;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.score-display {
    display: inline-block;
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number span:first-child {
    display: block;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.status-badge-large {
    display: inline-block;
    padding: 24px 64px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.status-badge-large.passed {
    background: var(--success-color);
    color: white;
}

.status-badge-large.failed {
    background: var(--danger-color);
    color: white;
}

/* Old status badge for compatibility */
.status-badge {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
}

.status-badge.passed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.results-content {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.result-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}

.result-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.summary-card {
    border-left: 4px solid var(--primary-color);
}

.summary-card h3 {
    color: var(--primary-color);
}

.summary-card p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
}

.success-card {
    border-left: 4px solid var(--success-color);
}

.success-card h3 {
    color: var(--success-color);
}

.warning-card {
    border-left: 4px solid var(--warning-color);
}

.warning-card h3 {
    color: var(--warning-color);
}

.info-card {
    border-left: 4px solid var(--primary-light);
}

.info-card h3 {
    color: var(--primary-color);
}

.guideline-list-item {
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
}

.guideline-list-item:last-child {
    margin-bottom: 0;
}

.guideline-list-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.guideline-list-item p {
    color: var(--gray-600);
    font-size: 14px;
}

.recommendation-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

.recommendation-bullet {
    background: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.recommendation-item p {
    color: var(--gray-700);
    font-size: 14px;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.secondary-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--white);
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* CapCut Section Styles */
.capcut-section {
    margin-top: 32px;
}

.capcut-card {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.capcut-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.capcut-logo {
    flex-shrink: 0;
}

.capcut-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.capcut-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.capcut-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

.step-item p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.capcut-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.capcut-download-btn,
.capcut-reupload-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.capcut-download-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.capcut-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.capcut-reupload-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.capcut-reupload-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.reupload-container {
    flex: 1;
    min-width: 200px;
}

/* Success Toast Notification */
.success-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    border-left: 4px solid var(--success-color);
}

.success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.success-toast span {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .main-content {
        padding: 24px;
    }

    .header {
        padding: 16px;
    }

    .logo-title {
        font-size: 20px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions button {
        width: 100%;
        justify-content: center;
    }

    .capcut-card {
        padding: 20px;
    }

    .capcut-steps {
        grid-template-columns: 1fr;
    }

    .capcut-actions {
        flex-direction: column;
    }

    .capcut-download-btn,
    .capcut-reupload-btn,
    .reupload-container {
        width: 100%;
        min-width: unset;
    }

    .success-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: unset;
    }
}

/* =================================================================
   VIDEO EDITOR MODAL
   ================================================================= */

/* Edit Video Button */
.edit-video-section {
    margin-top: 32px;
    text-align: center;
}

.edit-video-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.edit-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.edit-video-btn svg {
    stroke: #fff;
}

/* Editor Modal */
.editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.editor-container {
    background: #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-width: 1400px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Editor Header */
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-title h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-editor-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-editor-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-editor-btn svg {
    stroke: #fff;
}

/* Editor Content */
.editor-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    padding: 32px;
}

/* Video Preview */
.editor-preview {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoCanvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn svg {
    fill: #fff;
}

.time-display {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.timeline-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
}

.timeline-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: none;
}

/* Editor Tools */
.editor-tools {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.tools-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.tool-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tool-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tool-tab.active {
    background: linear-gradient(135deg, #0066CC 0%, #FFD700 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-tab svg {
    stroke: currentColor;
}

/* Tool Panels */
.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-panel h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.control-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.control-group label span {
    color: #0066CC;
    font-weight: 700;
}

.control-group input[type="number"],
.control-group input[type="text"],
.control-group input[type="color"],
.control-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: none;
}

.apply-btn,
.reset-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.apply-btn {
    background: linear-gradient(135deg, #0066CC 0%, #FFD700 100%);
    color: #fff;
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.speed-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.preset-btn.active {
    background: #0066CC;
    color: #fff;
}

/* Editor Actions */
.editor-actions {
    display: flex;
    gap: 16px;
    padding: 20px 32px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn,
.export-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.export-btn {
    background: linear-gradient(135deg, #0066CC 0%, #FFD700 100%);
    color: #fff;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.export-btn svg {
    stroke: #fff;
}

/* Processing Overlay */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.processing-content {
    text-align: center;
}

.processing-content h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.processing-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

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

    .editor-tools {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .editor-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .editor-content {
        padding: 20px;
    }

    .tools-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .editor-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .export-btn {
        width: 100%;
    }
}

/* Submit Confirmation Section */
.submit-confirmation-section {
    margin-bottom: 32px;
}

.confirmation-card {
    background: linear-gradient(135deg, #0066CC 0%, #3399FF 100%);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    color: white;
}

.confirmation-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.confirmation-header p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cancel-submit-btn,
.confirm-submit-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
    min-width: 200px;
}

.cancel-submit-btn {
    background: transparent;
    color: white;
}

.cancel-submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.confirm-submit-btn {
    background: white;
    color: var(--primary-color);
}

.confirm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* My Submissions Section */
.submissions-history-section {
    margin-bottom: 32px;
}

.submissions-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.submissions-header {
    margin-bottom: 24px;
}

.submissions-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.submissions-header p {
    color: var(--gray-600);
    font-size: 16px;
}

.submissions-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 12px;
}

.filter-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.filter-tab:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.filter-tab.active {
    color: var(--primary-color);
    background: var(--gray-100);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.submissions-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.submissions-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.submissions-list {
    display: grid;
    gap: 16px;
}

.submission-item {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
}

.submission-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.submission-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.submission-details {
    flex: 1;
}

.submission-filename {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.submission-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.submission-meta-item {
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.submission-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.submission-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.submission-badge.ai-approved {
    background: #D1FAE5;
    color: #065F46;
}

.submission-badge.ai-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.submission-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.submission-badge.status-approved {
    background: #D1FAE5;
    color: #065F46;
}

.submission-badge.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.submission-actions {
    display: flex;
    gap: 8px;
}

.submission-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.submission-btn.primary:hover {
    background: var(--primary-dark);
}

.submissions-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.submissions-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.submissions-empty p {
    font-size: 16px;
    color: var(--gray-600);
}

/* Submission Detail Modal */
.submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.submission-modal.show {
    display: flex;
}

.submission-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.submission-modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submission-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
}

.submission-modal-close {
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

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

.submission-modal-body {
    padding: 32px;
}

.submission-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.submission-detail-label {
    font-weight: 600;
    color: var(--gray-700);
}

.submission-detail-value {
    color: var(--dark-color);
}

.admin-notes-box {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 8px;
}

.admin-notes-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.admin-notes-box p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .submission-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .submission-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .submission-actions {
        width: 100%;
    }

    .submission-btn {
        flex: 1;
        justify-content: center;
    }

    .submission-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .filter-tab {
        font-size: 13px;
        padding: 6px 12px;
    }
}
