/* Global Layout Fixes */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.dashboard-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

/* Upload Loader */
.upload-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.upload-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 400px;
}

.loader-animation {
    margin-bottom: 2rem;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    animation: uploadFloat 2s ease-in-out infinite;
}

@keyframes uploadFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.loader-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.loader-text p {
    color: var(--gray-500);
    font-size: 1rem;
}

.loader-progress {
    width: 100%;
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress .progress-bar {
    height: 100%;
    background: var(--primary-black);
    animation: loadProgress 2s ease-in-out;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle:hover {
    background: var(--gray-800);
    transform: scale(1.1);
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-backdrop.active {
    display: block;
}

/* Sidebar Enhancements */
.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

.upload-stats-widget {
    margin: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Upload Header */
.upload-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.header-left {
    flex: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.page-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Compact progress indicator */
.upload-progress-indicator {
    background: transparent;
    padding: 0.75rem 0 1.5rem;
    margin: 0;
}

.progress-container {
    max-width: 500px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.step-circle .step-number {
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.step-circle i {
    font-size: 0.8rem;
    color: #64748b;
    display: none;
}

.step.active .step-circle {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.step.active .step-circle .step-number {
    color: white;
    display: block;
}

.step.active .step-circle i {
    display: none;
}

.step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
}

.step.completed .step-circle .step-number {
    display: none;
}

.step.completed .step-circle i {
    display: block;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.step.completed .step-label {
    color: #10b981;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    margin: 0 2.5rem;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 1px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .upload-header {
        padding: 0.75rem 1rem 0.5rem;
    }
    
    .page-title-section {
        margin-bottom: 0.75rem;
    }
    
    .title-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    .upload-progress-indicator {
        padding: 0.5rem 0 1rem;
    }
    
    .progress-container {
        max-width: 400px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 0.4rem;
    }
    
    .step-circle .step-number {
        font-size: 0.75rem;
    }
    
    .step-circle i {
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .progress-line {
        top: 17.5px;
        margin: 0 2rem;
    }
}

@media (max-width: 480px) {
    .upload-header {
        padding: 0.5rem 0.75rem 0.25rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .page-title-section {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .upload-progress-indicator {
        padding: 0.25rem 0 0.75rem;
    }
    
    .progress-container {
        max-width: 300px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
    }
    
    .step-label {
        display: none;
    }
    
    .progress-line {
        top: 15px;
        margin: 0 1.5rem;
    }
}

/* Upload Container */
.upload-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Modern Card Design */
.upload-form-container {
    background: var(--primary-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
}

/* Wizard Steps */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-content {
    min-height: 400px;
}

/* Enhanced Step Headers */
.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: 16px;
    border-left: 6px solid var(--accent-blue);
}

.step-header .step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-black), var(--gray-800));
    color: var(--primary-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.step-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.step-title p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Form Section */
.form-section {
    margin-bottom: 2rem;
}

/* Enhanced Form Grid with Better Spacing */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.9rem;
}

/* Improved Input Field Design */
.input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.input-wrapper input,
.select-wrapper select,
.textarea-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-wrapper input:focus,
.select-wrapper select:focus,
.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus+.input-icon {
    color: var(--primary-black);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.input-wrapper input:focus~.input-border {
    width: 100%;
}

/* Select Styles */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
    padding: 1rem;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper select:focus+.select-icon {
    color: var(--primary-black);
}

/* Textarea Styles */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    padding: 1rem;
}

.textarea-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.textarea-wrapper textarea:focus~.textarea-border {
    width: 100%;
}

/* Tags Input */
.tags-input-wrapper {
    position: relative;
}

.tags-input-wrapper input {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: tagSlideIn 0.3s ease;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-remove {
    background: none;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Field Help */
.field-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.field-help i {
    color: var(--accent-blue);
}

/* Enhanced Upload Area */
.upload-zone {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--primary-black);
    background: var(--primary-white);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-area.drag-over {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-area .upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.upload-area:hover .upload-icon {
    color: var(--primary-black);
    transform: scale(1.1);
}

.upload-area h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--gray-500);
    font-size: 1rem;
}

.upload-link {
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-link:hover {
    color: var(--primary-black);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-specs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.spec i {
    color: var(--accent-blue);
    font-size: 1rem;
}

/* Upload Progress */
.upload-progress-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.upload-progress-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
}

.progress-stats {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.progress-bar-container {
    width: 100%;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Uploaded Files */
.uploaded-files {
    margin-top: 1.5rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uploaded-file:hover {
    border-color: var(--primary-black);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.file-preview {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.file-preview i {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.file-action.preview {
    background: var(--accent-blue);
    color: var(--primary-white);
}

.file-action.remove {
    background: var(--accent-red);
    color: var(--primary-white);
}

.file-action:hover {
    transform: scale(1.1);
}

/* Upload Guidelines */
.upload-guidelines {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-blue);
}

.upload-guidelines h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

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

.guideline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.guideline-item i {
    color: var(--accent-green);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* OCR Section Styles */
.ocr-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    display: none;
    /* Hidden by default */
}

.ocr-header {
    margin-bottom: 1.5rem;
}

.ocr-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.ocr-header p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.ocr-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 0;
}

.ocr-progress {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-header span:first-child {
    color: var(--gray-700);
}

.progress-header span:last-child {
    font-weight: 600;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

.ocr-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.ocr-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.ocr-output-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#ocrOutput {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: var(--primary-white);
    resize: vertical;
    min-height: 200px;
    transition: var(--transition);
}

#ocrOutput:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#ocrOutput:not(:placeholder-shown) {
    border-color: var(--accent-green);
}

.ocr-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    font-size: 0.8rem;
}

.ocr-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
}

.ocr-stats .stat i {
    color: var(--accent-blue);
}

.ocr-stats .stat span:last-child {
    font-weight: 600;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

/* AI Review */
.ai-validation {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.ai-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.ai-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.ai-checks {
    display: grid;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.check-item.checking {
    background: var(--accent-blue);
    color: var(--primary-white);
    border-color: var(--accent-blue);
}

.check-item.completed {
    background: var(--accent-green);
    color: var(--primary-white);
    border-color: var(--accent-green);
}

.check-item.failed {
    background: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

.check-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.check-item.checking .check-icon {
    background: var(--primary-white);
    color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

.check-item.completed .check-icon,
.check-item.failed .check-icon {
    background: var(--primary-white);
    color: inherit;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.check-content {
    flex: 1;
}

.check-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.check-content p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.check-status {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.check-status.pending {
    color: var(--gray-400);
}

.check-status.checking {
    color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

.check-status.completed {
    color: var(--accent-green);
}

.check-status.failed {
    color: var(--accent-red);
}

/* Review Summary */
.review-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.review-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-label {
    font-weight: 500;
    color: var(--gray-700);
}

.summary-value {
    color: var(--primary-black);
    font-weight: 600;
}

/* Success Page */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

/* Enhanced Success Screen Styles */
.success-celebration {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    animation: successBounce 0.8s ease;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.confetti-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.success-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    min-width: 150px;
}

.success-stat .stat-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.success-stat .stat-info {
    text-align: left;
}

.success-stat .stat-value {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.9rem;
}

.success-stat .stat-label {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.next-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.next-steps h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.next-step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.next-step-item i {
    color: var(--accent-blue);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.ocr-badge {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Share Section Styles */
.share-section {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.share-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
}

.permalink-container {
    margin-bottom: 2rem;
}

.url-display {
    display: flex;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.url-display input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: var(--primary-white);
    color: var(--gray-700);
}

.copy-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.copy-btn:hover {
    background: var(--gray-800);
    transform: scale(1.05);
}

.url-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.facebook {
    background: #4267B2;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.linkedin {
    background: #0077B5;
}

/* Paper Analytics */
.paper-analytics {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.action-left {
    display: flex;
    gap: 1rem;
}

.action-right {
    display: flex;
    gap: 1rem;
}

.action-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    outline: none;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.btn-primary:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--primary-black);
    border-color: var(--gray-300);
}

.btn-ghost {
    background: none;
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--primary-black);
    border-color: var(--gray-300);
}

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

.btn-accent:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Upload Sidebar */
.upload-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* AI Assistant Card */
.ai-assistant-card {
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.assistant-info {
    flex: 1;
}

.assistant-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.assistant-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.chat-toggle {
    width: 32px;
    height: 32px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-toggle:hover {
    background: var(--gray-800);
    transform: scale(1.1);
}

/* Chat Interface */
.ai-chat-container {
    display: none;
    margin-top: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ai-chat-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: var(--primary-black);
    color: var(--primary-white);
}

.user-message .message-avatar {
    background: var(--accent-blue);
    color: var(--primary-white);
}

.message-content {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message .message-content {
    background: var(--primary-white);
    color: var(--primary-black);
    border: 1px solid var(--gray-200);
}

.user-message .message-content {
    background: var(--accent-blue);
    color: var(--primary-white);
    margin-left: auto;
    max-width: 80%;
}

.user-message {
    flex-direction: row-reverse;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--primary-white);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-question {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-question:hover {
    background: var(--gray-200);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-wrapper input:focus {
    border-color: var(--primary-black);
}

.send-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.send-btn:hover:not(:disabled) {
    background: var(--gray-800);
    transform: scale(1.1);
}

.send-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.typing-indicator {
    display: flex;
    gap: 2px;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDot {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Assistant Tips */
.assistant-tips {
    margin-top: 1rem;
}

.tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--gray-600);
    animation: tipSlideIn 0.3s ease;
}

@keyframes tipSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tip.active {
    background: var(--accent-blue);
    color: var(--primary-white);
}

.tip i {
    color: var(--accent-yellow);
    flex-shrink: 0;
}

.tip.active i {
    color: var(--primary-white);
}

/* Guidelines Card */
.guidelines-card,
.rewards-card {
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.guidelines-card h3,
.rewards-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.guidelines-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guideline-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.guideline-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guideline-category li {
    font-size: 0.8rem;
    color: var(--gray-600);
    padding-left: 1rem;
    position: relative;
}

.guideline-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Rewards Card */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.reward-item:hover {
    background: var(--gray-100);
}

.reward-item.featured {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--primary-white);
}

.reward-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-white);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.reward-item.featured .reward-icon {
    background: var(--primary-white);
    color: var(--accent-blue);
}

.reward-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reward-info p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.warning {
    border-left: 4px solid var(--accent-yellow);
}

.toast.info {
    border-left: 4px solid var(--accent-blue);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: var(--accent-red);
}

.toast.warning .toast-icon {
    color: var(--accent-yellow);
}

.toast.info .toast-icon {
    color: var(--accent-blue);
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--primary-black);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Comprehensive Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .main-content {
        padding: 2.5rem;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .upload-container {
        gap: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
    .main-content {
        padding: 2rem;
    }
    
    .upload-container {
        gap: 2rem;
    }
}

/* Tablet Landscape (968px - 1199px) */
@media (max-width: 1199px) {
    .upload-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .upload-sidebar {
        order: -1;
    }
    
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Portrait (768px - 967px) */
@media (max-width: 967px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%) !important;
        z-index: 2000 !important;
        width: 100% !important;
        max-width: 320px !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .sidebar-close {
        display: flex;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.25rem;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .page-title-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .page-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .header-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .progress-steps {
        gap: 0.75rem;
        justify-content: center;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .action-left,
    .action-right {
        width: 100%;
        justify-content: center;
    }

    .success-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .upload-specs {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .ai-checks {
        gap: 0.75rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .url-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-share {
        gap: 0.75rem;
        justify-content: center;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .ocr-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .ocr-stats .stat {
        justify-content: space-between;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 8px;
    }
    
    /* Upload area responsive */
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    /* Form elements */
    .form-input, .form-select, .form-textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* File display */
    .uploaded-files {
        gap: 1rem;
    }
    
    .file-item {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .upload-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .upload-form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .step-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .step-header .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-title h2 {
        font-size: 1.25rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-area h3 {
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .input-wrapper input,
    .select-wrapper select,
    .textarea-wrapper textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .ai-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .success-content h2 {
        font-size: 1.5rem;
    }

    .chat-messages {
        max-height: 200px;
    }

    .message-content {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .upload-sidebar {
        gap: 1rem;
    }

    .ai-assistant-card,
    .guidelines-card,
    .rewards-card {
        padding: 1rem;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .upload-stats-widget {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    .progress-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 1rem;
    }

    .step {
        flex-shrink: 0;
        min-width: 60px;
    }

    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .upload-area {
        padding: 1.5rem 0.75rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .field-help {
        font-size: 0.75rem;
    }

    .tags-container {
        gap: 0.25rem;
    }

    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .uploaded-file {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .file-preview {
        width: 50px;
        height: 50px;
    }

    .file-name {
        font-size: 0.85rem;
    }

    .file-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .file-action {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

/* Mobile Portrait (320px - 480px) - Comprehensive */
@media (max-width: 480px) {
    .main-content {
        margin-left: 0 !important;
        padding: 0.75rem;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .upload-header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .page-title {
        font-size: 1.3rem;
        line-height: 1.1;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0.15rem;
        flex-wrap: wrap;
    }
    
    .header-stats {
        gap: 0.25rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .progress-steps {
        padding: 0 0.25rem;
        gap: 0.25rem;
        overflow-x: auto;
    }
    
    .step-item {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .step-connector {
        height: 2px;
        width: 20px;
        flex-shrink: 0;
    }
    
    .step-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .upload-container {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .upload-form {
        padding: 0.75rem;
    }
    
    .form-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .form-grid {
        gap: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .upload-area {
        padding: 1.25rem 0.75rem;
    }
    
    .upload-icon {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    
    .upload-text h3 {
        font-size: 0.9rem;
    }
    
    .upload-text p {
        font-size: 0.75rem;
        margin: 0.4rem 0;
    }
    
    .uploaded-files {
        gap: 0.6rem;
    }
    
    .file-item {
        padding: 0.6rem;
    }
    
    .file-info h4 {
        font-size: 0.8rem;
    }
    
    .file-meta {
        font-size: 0.7rem;
    }
    
    .file-actions {
        gap: 0.15rem;
    }
    
    .file-action {
        padding: 0.35rem;
        font-size: 0.7rem;
    }
    
    .step-actions {
        padding: 0.75rem;
        gap: 0.6rem;
        flex-direction: column;
    }
    
    .btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .sidebar {
        max-width: 100vw;
        width: 100vw;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .sidebar-menu {
        padding: 0.25rem;
    }
    
    .menu-link {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .menu-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .ai-assistant-card,
    .guidelines-card,
    .rewards-card {
        padding: 0.75rem;
    }
    
    .ai-assistant-card h3,
    .guidelines-card h3,
    .rewards-card h3 {
        font-size: 0.9rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .completion-summary {
        padding: 0.75rem;
    }
    
    .summary-item h4 {
        font-size: 0.85rem;
    }
    
    .summary-item p {
        font-size: 0.75rem;
    }
    
    .share-url-container {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .share-url-input {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .social-share {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* AI Chat mobile */
    .ai-chat-container {
        max-height: 50vh;
    }
    
    .chat-messages {
        padding: 0.6rem;
    }
    
    .chat-message {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .chat-input-container {
        padding: 0.6rem;
    }
    
    .chat-input {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Modal mobile */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        margin: 0;
        border-radius: 8px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    /* Toast mobile */
    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        top: 10px;
    }
    
    .toast {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

/* Small Mobile (320px - 375px) */
@media (max-width: 375px) {
    .main-content {
        margin-left: 0 !important;
        padding: 0.5rem;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .upload-header {
        padding: 0.5rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .upload-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .upload-form {
        padding: 0.6rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .upload-area {
        padding: 1rem 0.5rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .step-actions {
        padding: 0.6rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .sidebar {
        max-width: 95vw;
    }
    
    .modal-content {
        border-radius: 6px;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .upload-header {
        padding: 0.5rem 1rem;
    }
    
    .progress-steps {
        gap: 0.25rem;
    }
    
    .step-label {
        display: none;
    }
    
    .upload-area {
        padding: 1rem;
    }
    
    .ai-chat-container {
        max-height: 40vh;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .file-action,
    .chat-toggle,
    .send-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .input-wrapper input,
    .select-wrapper select,
    .textarea-wrapper textarea {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .menu-link {
        padding: 1rem 1.5rem;
    }

    .upload-area {
        padding: 3rem 2rem;
    }

    .step-circle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Enhanced Wizard Transitions */
.wizard-step.entering {
    animation: slideInRight 0.4s ease;
}

.wizard-step.exiting {
    animation: slideOutLeft 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Enhanced File Preview */
.file-preview.pdf {
    background: #dc2626;
    color: white;
}

.file-preview.image {
    background: #059669;
    color: white;
}

/* File Status Indicators */
.file-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.file-status.ready {
    background: var(--accent-green);
    color: var(--primary-white);
}

.file-status.processing {
    background: var(--accent-yellow);
    color: var(--primary-white);
}

.file-status.error {
    background: var(--accent-red);
    color: var(--primary-white);
}

/* Enhanced Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.success-message {
    color: var(--accent-green);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Drag and Drop */
.upload-area.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: inherit;
    z-index: 1;
}

/* Custom Scrollbars */
.chat-messages::-webkit-scrollbar,
.uploaded-files::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.uploaded-files::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.uploaded-files::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.uploaded-files::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Focus Visible Support */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.chat-toggle:focus-visible,
.send-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .sidebar,
    .mobile-menu-toggle,
    .mobile-backdrop,
    .upload-sidebar,
    .step-actions,
    .toast-container {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .upload-header,
    .upload-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .wizard-step {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }

    .upload-progress-indicator {
        display: none;
    }

    .ai-validation,
    .upload-zone {
        display: none;
    }

    .review-summary {
        display: block !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .upload-icon,
    .title-icon,
    .step-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .upload-icon,
    .ai-avatar,
    .success-icon {
        animation: none !important;
    }

    .typing-indicator span {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .upload-loader {
        background: var(--gray-900);
    }

    .upload-area {
        background: var(--gray-50);
        border-color: var(--gray-300);
    }

    .upload-area:hover {
        background: var(--gray-100);
        border-color: var(--primary-black);
    }

    .wizard-step {
        color: var(--primary-black);
    }

    .toast {
        background: var(--gray-800);
        border-color: var(--gray-600);
        color: var(--primary-black);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.select-none {
    user-select: none !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

.block {
    display: block !important;
}

.inline-block {
    display: inline-block !important;
}

.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.fixed {
    position: fixed !important;
}

/* Performance Optimizations */
.upload-form-container,
.upload-sidebar,
.wizard-step {
    will-change: transform;
}

.progress-fill,
.step-circle,
.upload-icon {
    will-change: transform, width;
}

/* GPU Acceleration */
.btn,
.upload-area,
.chat-message,
.uploaded-file {
    transform: translateZ(0);
}

/* Enhanced visual improvements while maintaining theme */

/* Improved card shadows and depth */
.upload-form-container,
.ai-assistant-card,
.guidelines-card,
.rewards-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-form-container:hover,
.ai-assistant-card:hover,
.guidelines-card:hover,
.rewards-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Enhanced button styles */
.btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Improved form field styling */
.input-wrapper,
.select-wrapper,
.textarea-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:hover,
.select-wrapper:hover,
.textarea-wrapper:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus,
.select-wrapper select:focus,
.textarea-wrapper textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced upload zone */
.upload-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.upload-area:hover::before {
    transform: translateX(100%);
}

.upload-area:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

/* Improved file preview cards */
.uploaded-file {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.uploaded-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Enhanced step indicator */
.step-circle {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Improved AI chat interface */
.ai-chat-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chat-message {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.03) 100%);
}

.user-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.03) 100%);
}

/* Enhanced success animations */
.success-icon-large {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.success-stat {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Better stat cards */
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Improved tags styling */
.tag {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced AI validation checks */
.check-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-item.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.03) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.check-item.failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Improved progress bars */
.progress-bar {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Enhanced toast notifications */
.toast {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Improved modal styling */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Better mobile responsiveness improvements */
@media (max-width: 768px) {
    .upload-form-container,
    .ai-assistant-card,
    .guidelines-card,
    .rewards-card {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    }
    
    .btn {
        min-height: 48px;
        font-size: 16px;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}

/* Smooth focus transitions */
*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* Enhanced loading states */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Premium AI Content Review Modal Styles */
.ai-review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.ai-review-modal {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-review-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.ai-review-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) translate(-20%, -20%); }
    50% { transform: rotate(180deg) translate(-20%, -20%); }
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-badge i {
    color: #ffd700;
    animation: pulse 2s ease-in-out infinite;
}

.ai-review-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-review-header h2 i {
    color: #ffd700;
    animation: rotate 3s linear infinite;
}

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

.ai-review-header p {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ai-review-body {
    padding: 2rem;
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.step-item.active {
    background: linear-gradient(135deg, #ebf8ff, #e6fffa);
    border-left-color: #3b82f6;
    opacity: 1;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.step-item.completed {
    background: linear-gradient(135deg, #f0fff4, #ecfdf5);
    border-left-color: #10b981;
    opacity: 1;
    transform: translateX(0);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-item.completed .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.step-info {
    flex: 1;
}

.step-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.step-info p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.step-status {
    color: #3b82f6;
    font-size: 1.2rem;
}

.step-item.completed .step-status {
    color: #10b981;
}

.ai-insights {
    animation: slideUp 0.5s ease;
}

.ai-insights h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-insights h3 i {
    color: #fbbf24;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.insight-header i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.insight-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.insight-value {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.insight-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-tag {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.improvement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.improvement-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.improvement-list li i {
    color: #10b981;
    font-size: 0.9rem;
}

.ai-review-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9rem;
}

.premium-badge i {
    color: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive design for AI modal */
@media (max-width: 768px) {
    .ai-review-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .ai-review-header,
    .ai-review-body,
    .ai-review-footer {
        padding: 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-steps {
        gap: 1rem;
    }
    
    .step-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .step-item.active {
        transform: none;
    }
    
    .ai-review-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Enhanced AI Status Completion Styles */
.status-message.success {
    background: linear-gradient(135deg, #f0fff4, #ecfdf5);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.status-message.success .status-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.status-message.success .status-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.status-message.success .status-content p {
    color: #047857;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.check-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    font-weight: 500;
    color: #065f46;
    transition: all 0.3s ease;
}

.check-summary:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.check-summary i {
    color: #10b981;
    font-size: 1.1rem;
}

.status-message.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.status-message.error .status-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.status-message.error .status-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.status-message.error .status-content p {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Mobile responsive for completion summary */
@media (max-width: 768px) {
    .completion-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .check-summary {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .status-message.success,
    .status-message.error {
        padding: 1.5rem;
    }
    
    .status-message.success .status-icon,
    .status-message.error .status-icon {
        font-size: 2.5rem;
    }
    
    .status-message.success .status-content h3,
    .status-message.error .status-content h3 {
        font-size: 1.3rem;
    }
}

/* AI Rejection Details Styles */
.score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.score-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.score-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.score-total {
    font-size: 0.9rem;
    opacity: 0.8;
}

.score-label {
    font-weight: 600;
    color: #991b1b;
}

.rejection-details {
    margin: 1.5rem 0;
}

.rejection-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rejection-item:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.rejection-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.rejection-header i {
    color: #ef4444;
    font-size: 1.2rem;
}

.rejection-header h4 {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
    font-size: 1rem;
}

.rejection-content {
    padding: 1rem;
}

.rejection-reason,
.rejection-solution {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rejection-reason {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

.rejection-solution {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid #10b981;
    color: #065f46;
}

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

/* Form Issue Highlighting */
.form-group.ai-issue {
    position: relative;
    animation: issueHighlight 2s ease-in-out;
}

.form-group.ai-issue::before {
    content: '⚠️ AI Issue Detected';
    position: absolute;
    top: -10px;
    right: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.form-group.ai-issue input,
.form-group.ai-issue select,
.form-group.ai-issue textarea {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: rgba(251, 191, 36, 0.05);
}

@keyframes issueHighlight {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Analysis Modal Styles */
.analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.analysis-modal .modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analysis-modal .modal-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.analysis-modal .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.analysis-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.analysis-modal .modal-header i {
    color: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

.analysis-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.analysis-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.analysis-modal .modal-body {
    padding: 2rem;
}

.analysis-modal .modal-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.analysis-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.analysis-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.assessment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.assessment-item .label {
    font-weight: 500;
    color: #374151;
}

.assessment-item .value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #1f2937;
}

.assessment-item .value.good {
    color: #059669;
}

.assessment-item .value.poor {
    color: #dc2626;
}

.checks-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-result {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.check-result.passed {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.check-result.failed {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.check-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-result.passed .check-name {
    color: #059669;
}

.check-result.failed .check-name {
    color: #dc2626;
}

.check-reason {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.check-solution {
    color: #065f46;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.content-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.content-stats p {
    margin: 0.5rem 0;
    color: #374151;
}

.content-sample h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.text-preview {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #374151;
    max-height: 150px;
    overflow-y: auto;
}

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

.recommendation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border-left: 3px solid #10b981;
    color: #065f46;
    font-size: 0.9rem;
}

.recommendation i {
    color: #fbbf24;
    flex-shrink: 0;
}

/* Mobile Responsive for Analysis Modal */
@media (max-width: 768px) {
    .analysis-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .analysis-modal .modal-header,
    .analysis-modal .modal-body,
    .analysis-modal .modal-footer {
        padding: 1.5rem;
    }
    
    .assessment-grid {
        grid-template-columns: 1fr;
    }
    
    .content-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-modal .modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .rejection-actions {
        flex-direction: column;
    }
    
    .score-display {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .score-circle {
        width: 70px;
        height: 70px;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
}

/* Mobile Responsive for Rejection Details */
@media (max-width: 480px) {
    .rejection-header {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .rejection-content {
        padding: 0.75rem;
    }
    
    .rejection-reason,
    .rejection-solution {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .form-group.ai-issue::before {
        position: static;
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .analysis-section {
        padding: 1rem;
    }
    
         .text-preview {
         font-size: 0.75rem;
         padding: 0.75rem;
     }
 }

/* API Setup Modal Styles */
.api-providers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.provider-option {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.provider-option:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.provider-option h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-option p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.provider-option p a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.provider-option p a:hover {
    text-decoration: underline;
}

.api-key-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.api-key-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.api-key-input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.btn.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    min-width: auto;
}

.setup-note {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.setup-note i {
    color: #10b981;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.setup-note p {
    margin: 0;
    color: #065f46;
    font-size: 0.9rem;
    line-height: 1.4;
}

.setup-info {
    color: #374151;
    line-height: 1.6;
}

.setup-info > p {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Mobile responsive for API setup */
@media (max-width: 768px) {
    .provider-option {
        padding: 1rem;
    }
    
    .provider-option h4 {
        font-size: 1rem;
    }
    
    .api-providers {
        gap: 1rem;
    }
    
    .setup-note {
        padding: 0.75rem;
    }
    
    .api-key-input {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .provider-option {
        padding: 0.75rem;
    }
    
    .provider-option h4 {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .setup-note {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .setup-note i {
        margin-top: 0;
    }
}