:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --gif-color: #e83e8c;
            --convert-color: #6f42c1;
            --processing-color: #fd7e14;
            --frame-color: #20c997;
        }
   .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        .upload-area {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 3rem 2rem;
            text-align: center;
            background-color: var(--light-gray);
            transition: all 0.3s;
            cursor: pointer;
            margin-bottom: 1.5rem;
        }
        .upload-area:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        .upload-area.dragover {
            border-color: var(--success-color);
            background-color: rgba(40, 167, 69, 0.05);
        }
        .upload-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        .file-input-hidden {
            display: none;
        }
        .file-list-container {
            display: none;
            margin-top: 1.5rem;
        }
        .file-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        .file-list-count {
            font-weight: 600;
            color: var(--primary-color);
        }
        .file-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        .file-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
            background-color: white;
        }
        .file-item:last-child {
            border-bottom: none;
        }
        .file-item:hover {
            background-color: var(--light-gray);
        }
        .file-icon {
            font-size: 1.5rem;
            color: var(--gif-color);
            margin-right: 1rem;
        }
        .file-info {
            flex: 1;
        }
        .file-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
            word-break: break-all;
        }
        .file-details {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .file-status {
            margin-left: 1rem;
            font-size: 0.85rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        .status-queued {
            background-color: rgba(108, 117, 125, 0.1);
            color: var(--text-muted);
        }
        .status-processing {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        .status-completed {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--success-color);
        }
        .status-error {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        .file-actions {
            margin-left: 1rem;
        }
        .remove-file-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 4px;
        }
        .remove-file-btn:hover {
            color: #dc3545;
            background-color: rgba(220, 53, 69, 0.1);
        }
        .batch-progress-container {
            display: none;
            margin-top: 1.5rem;
        }
        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        .progress-bar {
            height: 8px;
            background-color: var(--light-gray);
            border-radius: 4px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background-color: var(--primary-color);
            width: 0%;
            transition: width 0.3s ease;
        }
        .options-card {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .option-row {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        .option-label {
            flex: 0 0 200px;
            font-weight: 600;
        }
        .option-control {
            flex: 1;
        }
        .slider-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .slider-value {
            min-width: 40px;
            text-align: center;
            font-weight: 600;
        }
        .frame-options {
            background-color: rgba(32, 201, 151, 0.05);
            border-left: 3px solid var(--frame-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
        .frame-selection {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }
        .frame-option {
            display: flex;
            align-items: center;
            margin-right: 1rem;
        }
        .batch-results-container {
            display: none;
            margin-top: 1.5rem;
        }
        .results-summary {
            display: flex;
            justify-content: space-between;
            background-color: rgba(44, 125, 160, 0.05);
            padding: 1rem;
            border-radius: 6px;
            margin-bottom: 1.5rem;
        }
        .summary-item {
            text-align: center;
            flex: 1;
        }
        .results-list {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        .result-item {
            display: flex;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        .result-item:last-child {
            border-bottom: none;
        }
        .result-status-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
        }
        .status-success {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--success-color);
        }
        .status-fail {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        .result-info {
            flex: 1;
        }
        .result-file-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .result-details {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .result-actions {
            margin-left: 1rem;
        }
        .download-options {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 2rem;
        }
        .format-box {
            background-color: rgba(111, 66, 193, 0.05);
            border-left: 3px solid var(--convert-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            .option-row {
                flex-direction: column;
                align-items: flex-start;
            }
            .option-label {
                margin-bottom: 0.5rem;
            }
            .download-options {
                flex-direction: column;
            }
        }
        .batch-info {
            background-color: rgba(253, 126, 20, 0.05);
            border-left: 3px solid #fd7e14;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .format-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-right: 0.5rem;
        }
        .gif-badge {
            background-color: rgba(232, 62, 140, 0.1);
            color: #e83e8c;
        }
        .jpg-badge {
            background-color: rgba(111, 66, 193, 0.1);
            color: #6f42c1;
        }
        .frame-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 1rem;
            max-height: 200px;
            overflow-y: auto;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: var(--light-gray);
        }
        .frame-item {
            width: 80px;
            height: 80px;
            border: 2px solid transparent;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }
        .frame-item.selected {
            border-color: var(--primary-color);
        }
        .frame-number {
            position: absolute;
            bottom: 0;
            right: 0;
            background-color: rgba(0,0,0,0.7);
            color: white;
            font-size: 0.7rem;
            padding: 2px 5px;
            border-radius: 4px 0 0 0;
        }
        .frame-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        .preview-modal.active {
            opacity: 1;
            visibility: visible;
        }
        .preview-content {
            background-color: white;
            border-radius: 8px;
            max-width: 90%;
            max-height: 90%;
            overflow: auto;
            position: relative;
            padding: 20px;
        }
        .preview-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-muted);
        }
        .preview-image {
            max-width: 100%;
            max-height: 70vh;
        }