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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: #e0e0ff;
        }

        .container {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            background: rgba(26, 26, 46, 0.9);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(189, 147, 249, 0.2);
        }

        .header {
            background: rgba(68, 71, 90, 0.4);
            color: #e0e0ff;
            padding: 30px;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 30px;
            border: 1px solid #50fa7b;
            transition: all 0.3s ease;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 30px;
        }

        .header:hover {
            border-color: #50fa7b;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(80, 250, 123, 0.2);
        }

        .header h1 {
            font-family: 'Orbitron', monospace;
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            font-weight: 900;
        }

        .header .geek {
            color: #50fa7b;
        }

        .header .code {
            color: #ff79c6;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .main-content {
            padding: 20px;
        }

        .upload-section {
            border: 3px dashed #50fa7b;
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            background: rgba(68, 71, 90, 0.3);
            margin-bottom: 30px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-section:hover {
            border-color: #ff79c6;
            background: rgba(68, 71, 90, 0.5);
            transform: translateY(-2px);
        }

        .upload-section.dragover {
            border-color: #bd93f9;
            background: rgba(189, 147, 249, 0.2);
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 3rem;
            color: #50fa7b;
            margin-bottom: 20px;
        }

        .upload-text {
            font-size: 1.2rem;
            color: #e0e0ff;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .upload-subtitle {
            color: #6272a4;
            font-size: 0.9rem;
        }

        #fileInput {
            display: none;
        }

        .controls-section {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .control-group {
            background: rgba(68, 71, 90, 0.4);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(189, 147, 249, 0.3);
            min-height: 200px;
            transition: all 0.3s ease;
        }

        .control-group:hover {
            border-color: #50fa7b;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(80, 250, 123, 0.2);
        }

        .control-group h3 {
            color: #f1fa8c;
            margin-bottom: 15px;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }

        .control-group label {
            display: block;
            margin-bottom: 8px;
            color: #e0e0ff;
            font-weight: 500;
        }

        .control-group input,
        .control-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #44475a;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(26, 26, 46, 0.8);
            color: #e0e0ff;
        }

        .control-group input:focus,
        .control-group select:focus {
            outline: none;
            border-color: #bd93f9;
            box-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
        }

        .quality-container {
            margin-top: 15px;
        }

        .quality-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #44475a;
            outline: none;
            -webkit-appearance: none;
        }

        .quality-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff79c6;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(255, 121, 198, 0.5);
        }

        .quality-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff79c6;
            cursor: pointer;
            border: none;
            box-shadow: 0 0 10px rgba(255, 121, 198, 0.5);
        }

        .quality-value {
            text-align: center;
            margin-top: 10px;
            font-weight: bold;
            color: #ff79c6;
        }

        .preview-section {
            margin-bottom: 30px;
        }

        .preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 8px;
            margin-top: 20px;
        }

        .preview-item {
            position: relative;
            background: rgba(68, 71, 90, 0.6);
            border-radius: 8px;
            padding: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            border: 1px solid rgba(189, 147, 249, 0.2);
        }

        .preview-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(80, 250, 123, 0.3);
            border-color: #50fa7b;
        }

        .preview-image {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 6px;
        }

        .preview-info {
            font-size: 0.7rem;
            color: #6272a4;
            text-align: center;
            line-height: 1.2;
        }

        .preview-name {
            font-weight: bold;
            color: #e0e0ff;
            margin-bottom: 1px;
            word-break: break-all;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .remove-btn {
            position: absolute;
            top: 2px;
            right: 2px;
            background: #ff4757;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            cursor: pointer;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            opacity: 0.9;
        }

        .remove-btn:hover {
            background: #ff3838;
            opacity: 1;
            transform: scale(1.1);
        }

        .process-section {
            text-align: center;
            margin-bottom: 20px;
        }

        .process-btn {
            background: #50fa7b;
            color: #1a1a2e;
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 10px;
            box-shadow: 0 4px 15px rgba(80, 250, 123, 0.4);
        }

        .process-btn:hover {
            background: #3dd85c;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(80, 250, 123, 0.6);
        }

        .process-btn:disabled {
            background: #44475a;
            color: #6272a4;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .download-btn {
            background: #bd93f9;
            color: #1a1a2e;
            box-shadow: 0 4px 15px rgba(189, 147, 249, 0.4);
        }

        .download-btn:hover {
            background: #a777e8;
            box-shadow: 0 6px 20px rgba(189, 147, 249, 0.6);
        }

        .progress-section {
            margin: 20px 0;
            display: none;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #44475a;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #50fa7b, #bd93f9);
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-text {
            text-align: center;
            color: #e0e0ff;
            font-size: 0.9rem;
        }

        .section-title {
            font-size: 1.3rem;
            color: #f1fa8c;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }

        .icon {
            font-size: 1.2rem;
        }

        .stats {
            display: flex;
            justify-content: space-around;
            background: rgba(68, 71, 90, 0.4);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid rgba(189, 147, 249, 0.3);
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: bold;
            color: #50fa7b;
        }

        .stat-label {
            color: #6272a4;
            font-size: 0.9rem;
        }

        .help-btn {
            background: #bd93f9;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            cursor: pointer;
            margin-left: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .help-btn:hover {
            background: #ff79c6;
            transform: scale(1.1);
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            margin: 5% auto;
            padding: 0;
            border-radius: 20px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
            animation: modalSlideIn 0.3s ease;
            border: 1px solid rgba(189, 147, 249, 0.3);
        }

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

        .modal-header {
            background: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
            color: white;
            padding: 20px 30px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-family: 'Orbitron', monospace;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

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

        .modal-body {
            padding: 30px;
            color: #e0e0ff;
        }

        .recommendations-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: rgba(68, 71, 90, 0.4);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .recommendations-table th {
            background: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: 600;
        }

        .recommendations-table td {
            padding: 12px 15px;
            border-bottom: 1px solid rgba(98, 114, 164, 0.3);
            color: #e0e0ff;
        }

        .recommendations-table tr:hover {
            background: rgba(189, 147, 249, 0.1);
        }

        .quality-level {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid;
        }

        .quality-low {
            background: rgba(255, 71, 87, 0.1);
            border-color: #ff4757;
        }

        .quality-medium {
            background: rgba(241, 250, 140, 0.1);
            border-color: #f1fa8c;
        }

        .quality-high {
            background: rgba(80, 250, 123, 0.1);
            border-color: #50fa7b;
        }

        .quality-level h4 {
            margin: 0 0 8px 0;
            color: #e0e0ff;
        }

        .quality-level ul {
            margin: 0;
            padding-left: 20px;
        }

        .quality-level li {
            margin: 4px 0;
            color: #6272a4;
        }

        .tip-box {
            background: rgba(189, 147, 249, 0.1);
            border-left: 4px solid #bd93f9;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .tip-box h4 {
            color: #bd93f9;
            margin: 0 0 10px 0;
        }

        .tip-box p {
            margin: 0;
            color: #e0e0ff;
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background: rgba(26, 26, 46, 0.9);
            color: #e0e0ff;
            text-align: center;
            padding: 20px;
            border-top: 1px solid rgba(189, 147, 249, 0.3);
            flex-shrink: 0;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #bd93f9;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

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

        .footer-links span {
            color: #6272a4;
        }

        /* Responsividade */
        @media (max-width: 600px) {
            .controls-section {
                grid-template-columns: 1fr;
            }
            
            .container {
                margin: 10px;
                padding: 15px;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 5px;
            }
        }

        @media (max-width: 400px) {
            .header h1 {
                font-size: 1.5rem;
            }
            
            .controls-section {
                gap: 10px;
            }
            
            .control-group {
                padding: 15px;
            }
        }