:root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --accent-color: #4895ef;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --success-color: #4cc9f0;
            --warning-color: #f8961e;
            --danger-color: #f72585;
            --gray-color: #adb5bd;
            --border-radius: 8px;
            --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f7ff;
            color: var(--dark-color);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px 0;
        }

        header h1 {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        header p {
            color: var(--gray-color);
            font-size: 1.1rem;
        }

        .converter-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 40px;
        }

        .converter-section {
            flex: 1;
            min-width: 300px;
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 20px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .section-header h2 {
            font-size: 1.3rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            border-radius: var(--border-radius);
            background-color: var(--primary-color);
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
        }

        .btn.primary {
            background-color: var(--primary-color);
        }

        .btn.secondary {
            background-color: var(--gray-color);
        }

        .btn.success {
            background-color: var(--success-color);
        }

        .btn.danger {
            background-color: var(--danger-color);
        }

        .btn.warning {
            background-color: var(--warning-color);
        }

        .btn:disabled {
            background-color: var(--gray-color);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .drop-area {
            border: 2px dashed var(--gray-color);
            border-radius: var(--border-radius);
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 20px;
        }

        .drop-area:hover {
            border-color: var(--primary-color);
        }

        .drop-area i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .drop-area h3 {
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .drop-area p {
            color: var(--gray-color);
            margin: 10px 0;
        }

        .formats {
            font-size: 0.9rem;
            color: var(--gray-color);
        }

        .file-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border: 1px solid #eee;
            border-radius: var(--border-radius);
            margin-top: 20px;
        }

        .file-details {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .file-details i {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .file-details h4 {
            margin-bottom: 5px;
        }

        .file-details p {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        .btn-icon {
            background: none;
            border: none;
            color: var(--dark-color);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .btn-icon:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .preview-container {
            width: 100%;
            height: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            overflow: hidden;
            margin-bottom: 20px;
            border: 1px solid #eee;
            position: relative;
        }

        .preview-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .no-preview {
            text-align: center;
            color: var(--gray-color);
        }

        .no-preview i {
            font-size: 4rem;
            margin-bottom: 20px;
            color: var(--gray-color);
        }

        .controls-container {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #eee;
            border-radius: var(--border-radius);
            background-color: #f8f9fa;
        }

        .control-group {
            margin-bottom: 15px;
        }

        .control-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .control-group input[type="range"],
        .control-group select {
            width: 100%;
            padding: 8px;
            border-radius: var(--border-radius);
            border: 1px solid #ddd;
        }

        .dimension-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .dimension-controls input {
            width: 80px;
            padding: 8px;
            border-radius: var(--border-radius);
            border: 1px solid #ddd;
            text-align: center;
        }

        .dimension-controls span {
            color: var(--gray-color);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-group input {
            width: auto;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .info-section {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 40px;
        }

        .info-card {
            flex: 1;
            min-width: 250px;
            background-color: white;
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--box-shadow);
            text-align: center;
            transition: var(--transition);
        }

        .info-card:hover {
            transform: translateY(-5px);
        }

        .info-card i {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .info-card h3 {
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .info-card p {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        footer {
            text-align: center;
            padding: 20px;
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        /* Cropping overlay */
        .crop-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            cursor: move;
            background-color: rgba(0, 0, 0, 0.4);
            display: none;
        }

        .crop-box {
            position: absolute;
            border: 2px dashed white;
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
            cursor: move;
        }

        .crop-handle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: white;
            border: 1px solid #777;
        }

        .handle-n { top: -6px; left: 50%; margin-left: -6px; cursor: n-resize; }
        .handle-e { top: 50%; right: -6px; margin-top: -6px; cursor: e-resize; }
        .handle-s { bottom: -6px; left: 50%; margin-left: -6px; cursor: s-resize; }
        .handle-w { top: 50%; left: -6px; margin-top: -6px; cursor: w-resize; }
        .handle-ne { top: -6px; right: -6px; cursor: ne-resize; }
        .handle-nw { top: -6px; left: -6px; cursor: nw-resize; }
        .handle-se { bottom: -6px; right: -6px; cursor: se-resize; }
        .handle-sw { bottom: -6px; left: -6px; cursor: sw-resize; }

        @media (max-width: 768px) {
            .converter-container {
                flex-direction: column;
            }
            
            header h1 {
                font-size: 2rem;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }

            .dimension-controls {
                flex-direction: column;
                align-items: flex-start;
            }
        }