.cc-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cc-header { text-align: center; margin-bottom: 40px; }
.cc-header h1 { font-size: 42px; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.cc-header p { color: #666; font-size: 18px; }

.cc-nav-tabs { display: flex; gap: 5px; margin-bottom: 30px; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; flex-wrap: wrap; }
.cc-nav-btn { padding: 10px 20px; background: none; border: none; cursor: pointer; font-size: 16px; color: #666; border-radius: 8px; transition: all 0.3s; }
.cc-nav-btn:hover { background: #f0f0f0; }
.cc-nav-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }

.cc-tab-pane { display: none; }
.cc-tab-pane.active { display: block; }

.cc-upload-area { border: 2px dashed #ddd; border-radius: 12px; padding: 40px; text-align: center; background: #f9f9f9; cursor: pointer; transition: all 0.3s; margin-bottom: 20px; }
.cc-upload-area:hover { border-color: #667eea; background: #f0f0ff; }
.cc-upload-icon { font-size: 48px; margin-bottom: 15px; }
.cc-browse-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 10px 25px; border-radius: 6px; cursor: pointer; margin-top: 15px; }

.cc-file-info { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 15px; border-radius: 8px; margin: 20px 0; }

.cc-formats-section h2 { text-align: center; margin-bottom: 20px; }
.cc-formats-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.cc-format-category { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 15px; min-width: 200px; }
.cc-format-category h3 { margin-bottom: 10px; text-align: center; }
.cc-format-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cc-format-btn { padding: 8px 15px; background: #f0f0f0; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.cc-format-btn:hover { background: #667eea; color: white; }
.cc-format-btn.selected { background: #667eea; color: white; }

.cc-action-btn { width: 100%; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 15px; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; margin-top: 20px; }
.cc-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* GIF Preview */
.cc-gif-preview { margin: 20px 0; padding: 20px; background: #f9f9f9; border-radius: 12px; }
.cc-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cc-close-preview { background: #ff4444; color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.cc-preview-container { text-align: center; max-height: 400px; overflow: auto; }
#editor-gif-image, #effects-gif-image { max-width: 100%; height: auto; }

/* Editor Tools */
.cc-editor-submenu { display: flex; gap: 10px; margin: 20px 0; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.cc-editor-submenu-btn { padding: 8px 16px; background: none; border: none; cursor: pointer; color: #666; }
.cc-editor-submenu-btn.active { color: #667eea; border-bottom: 2px solid #667eea; }
.cc-submenu-pane { display: none; }
.cc-submenu-pane.active { display: block; }

.cc-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.cc-tool-card { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; }
.cc-tool-icon { font-size: 32px; text-align: center; margin-bottom: 10px; }
.cc-tool-card h4 { text-align: center; margin-bottom: 15px; }
.cc-tool-controls { display: flex; flex-direction: column; gap: 10px; }
.cc-tool-controls label { display: flex; justify-content: space-between; align-items: center; }
.cc-tool-controls input { padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; width: 120px; }
.cc-apply-tool, .cc-crop-btn, .cc-rotate-preset { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; }

/* Effects Grid */
.cc-effects-grid { margin-top: 30px; }
.cc-effects-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cc-effect-card { background: white; border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.cc-effect-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.cc-effect-icon { font-size: 40px; margin-bottom: 10px; }
.cc-effect-card h4 { margin-bottom: 8px; }
.cc-effect-card p { font-size: 12px; color: #666; margin-bottom: 10px; }
.cc-effect-params { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e0e0e0; }
.cc-effect-params label { display: block; margin: 8px 0; }
.cc-apply-effect { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 8px 20px; border-radius: 5px; cursor: pointer; }

/* Optimizer */
.cc-optimizer-submenu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; padding: 15px; background: #f8f9fa; border-radius: 12px; }
.cc-opt-btn { padding: 8px 16px; background: white; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.cc-opt-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-color: transparent; }
.cc-opt-pane { display: none; }
.cc-opt-pane.active { display: block; }
.cc-opt-controls { background: white; border-radius: 10px; padding: 20px; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.cc-opt-controls label { display: block; margin-bottom: 10px; }
.cc-opt-controls input[type="range"] { width: 100%; max-width: 300px; }
.cc-opt-controls select { padding: 8px; border-radius: 4px; border: 1px solid #ddd; }

/* Results */
.cc-result { margin-top: 20px; }
.cc-processing { text-align: center; padding: 30px; background: #f5f5f5; border-radius: 10px; }
.cc-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cc-success { background: #d4edda; border: 1px solid #c3e6cb; padding: 20px; border-radius: 10px; text-align: center; }
.cc-success h3 { color: #155724; margin-bottom: 15px; }
.cc-error { background: #f8d7da; border: 1px solid #f5c6cb; padding: 20px; border-radius: 10px; text-align: center; }
.cc-error h3 { color: #721c24; }
.cc-download-btn { display: inline-block; background: #28a745; color: white; padding: 10px 25px; border-radius: 5px; text-decoration: none; margin: 10px; }
.cc-download-small { display: inline-block; background: #28a745; color: white; padding: 5px 15px; border-radius: 3px; text-decoration: none; font-size: 12px; }
.cc-new-btn { background: #007bff; color: white; border: none; padding: 10px 25px; border-radius: 5px; cursor: pointer; margin: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .cc-nav-tabs, .cc-optimizer-submenu { flex-direction: column; }
    .cc-nav-btn, .cc-opt-btn { width: 100%; text-align: center; }
    .cc-tools-grid { grid-template-columns: 1fr; }
    .cc-effects-container { grid-template-columns: 1fr; }
}

.file-details { font-size: 14px; }
.file-details strong { font-size: 16px; }
.crop-coords { margin-top: 10px; padding: 10px; background: #f5f5f5; border-radius: 5px; }
.crop-coords label { display: inline-block; margin-right: 10px; }
.crop-coords input { width: 60px; }