       ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #2d3748;
        }
        ::-webkit-scrollbar-thumb {
            background: #4a5568;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #718096;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #1a202c;
            color: #e2e8f0;
        }
        .control-panel {
            background-color: #2d3748;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            transition: all 0.3s ease-in-out;
        }
        .control-panel h3 {
            color: #63b3ed;
            border-bottom: 1px solid #4a5568;
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        .btn {
            transition: all 0.2s ease-in-out;
            border-radius: 0.375rem;
            padding: 0.5rem 1rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .btn-primary {
            background-color: #4299e1;
            color: white;
        }
        .btn-primary:hover {
            background-color: #3182ce;
        }
        .btn-secondary {
            background-color: #4a5568;
            color: white;
        }
        .btn-secondary:hover {
            background-color: #2d3748;
        }
         .btn-apply {
            background-color: #38a169;
            color: white;
        }
        .btn-apply:hover {
            background-color: #2f855a;
        }
        .btn-danger {
            background-color: #f56565;
            color: white;
        }
        .btn-danger:hover {
            background-color: #e53e3e;
        }
        .input-field, .select-field {
            background-color: #4a5568;
            border: 1px solid #718096;
            color: #e2e8f0;
            border-radius: 0.375rem;
            padding: 0.5rem;
            width: 100%;
        }
        .input-field:focus, .select-field:focus {
            outline: none;
            border-color: #63b3ed;
            box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.5);
        }
        .slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            background: #4a5568;
            outline: none;
            border-radius: 4px;
        }
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: #63b3ed;
            cursor: pointer;
            border-radius: 50%;
        }
        .slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: #63b3ed;
            cursor: pointer;
            border-radius: 50%;
            border: none;
        }
        .tab {
            cursor: pointer;
            padding: 0.75rem 1.25rem;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        .tab.active {
            border-color: #63b3ed;
            color: #63b3ed;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .upload-area {
            border: 2px dashed #4a5568;
            border-radius: 0.5rem;
            padding: 2rem;
            text-align: center;
            transition: all 0.2s ease;
        }
        .upload-area.dragover {
            border-color: #63b3ed;
            background-color: #2d3748;
        }
        .image-preview-container {
            max-height: calc(100vh - 200px);
            overflow: auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #canvasWrapper {
            position: relative;
            display: inline-block;
            line-height: 0;
        }
        #imageCanvas, #cropCanvasOverlay {
             max-width: 100%;
             max-height: 100%;
             object-fit: contain;
             display: block;
        }
         #cropCanvasOverlay {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 10;
        }

        .loader {
            border: 4px solid #4a5568;
            border-top: 4px solid #63b3ed;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            display: none;
        }
        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }
        .message-box {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 1rem 1.5rem;
            border-radius: 0.375rem;
            color: white;
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.5s ease, transform 0.5s ease;
            transform-origin: top center;
        }
        .message-box.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .message-box.error { background-color: #e53e3e; }
        .message-box.success { background-color: #38a169; }
        .message-box.warning { background-color: #dd6b20; }
        
        .info-tooltip-container {
            position: relative;
            display: inline-block;
        }
        .info-tooltip-icon {
            cursor: help;
            margin-left: 6px;
            color: #90cdf4;
        }
        .info-tooltip-text {
            visibility: hidden;
            width: 220px;
            background-color: #4a5568;
            color: #e2e8f0;
            text-align: center;
            border-radius: 0.375rem;
            padding: 8px;
            position: absolute;
            z-index: 20;
            bottom: 125%;
            left: 50%;
            margin-left: -110px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.875rem;
            line-height: 1.25rem;
        }
        .info-tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #4a5568 transparent transparent transparent;
        }
        .info-tooltip-container:hover .info-tooltip-text,
        .info-tooltip-container:focus-within .info-tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        .cropping-active {
            cursor: crosshair;
        }
