        /* ===== TOOL HEADER ===== */
        .tool-header {
            text-align: center;
            padding: 3rem 2rem 1rem;
            background: var(--accent);
            background-size: cover;
        }

        .tool-title {
            font-size: 2.5rem;
            color: var(--secondary);
            margin-bottom: 1rem;
        }

        .tool-subtitle {
            font-size: 1.1rem;
            color: var(--secondary-light);
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        /* ===== TOOL CONTAINER ===== */
        .tool-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem;
        }

        .tool-wrapper {
            background: var(--light);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            margin-bottom: 3rem;
        }

        /* ===== UPLOAD AREA ===== */
        .upload-area {
            border: 3px dashed rgba(51, 51, 51, 0.2);
            border-radius: 12px;
            padding: 3rem 2rem;
            text-align: center;
            transition: all 0.3s;
            background: var(--accent);
            cursor: pointer;
            margin: 2rem;
            position: relative;
        }

        .upload-area.highlight {
            border-color: var(--primary);
            background-color: rgba(217, 79, 79, 0.05);
        }

        .upload-icon {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        .upload-text h3 {
            font-size: 1.5rem;
            color: var(--secondary);
            margin-bottom: 0.5rem;
        }

        .upload-text p {
            color: var(--secondary-light);
            margin-bottom: 1.5rem;
        }

        .upload-btn {
            display: inline-block;
            background: var(--primary);
            color: var(--light);
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(217, 79, 79, 0.3);
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .upload-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(217, 79, 79, 0.4);
        }

        .file-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }

        /* ===== IMAGE LIST ===== */
        .images-container {
            padding: 0 2rem 1rem;
            display: none;
        }

        .images-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid rgba(51, 51, 51, 0.1);
        }

        .images-title {
            font-size: 1.3rem;
            color: var(--secondary);
        }

        .action-btn {
            background: transparent;
            border: none;
            color: var(--secondary-light);
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.3s;
        }

        .action-btn:hover {
            color: var(--primary);
        }

        .image-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
            list-style: none;
        }

        .image-item {
            position: relative;
            border: 1px solid rgba(51, 51, 51, 0.1);
            border-radius: 8px;
            overflow: hidden;
            background: var(--accent);
            transition: all 0.3s;
        }

        .image-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .image-preview {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
        }

        .image-info {
            padding: 0.8rem;
            font-size: 0.85rem;
        }

        .image-name {
            font-weight: 500;
            color: var(--secondary);
            margin-bottom: 0.2rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .image-size {
            color: var(--secondary-light);
        }

        .image-actions {
            position: absolute;
            top: 5px;
            right: 5px;
            display: flex;
            gap: 0.5rem;
        }

        .image-action-btn {
            background: rgba(244, 244, 244, 0.8);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .image-action-btn:hover {
            background: var(--primary);
            color: var(--light);
        }

        /* ===== OPTIONS ===== */
        .options-container {
            padding: 0 2rem 2rem;
            display: none;
        }

        .options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .option-group {
            margin-bottom: 1.5rem;
        }

        .option-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--secondary);
        }

        .option-select {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid rgba(51, 51, 51, 0.2);
            border-radius: 8px;
            background: var(--light);
            font-size: 1rem;
        }

        /* ===== CONVERT ACTION ===== */
        .convert-actions {
            display: flex;
            justify-content: center;
            padding: 0 2rem 2rem;
        }

        .convert-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
        }

        .convert-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
        }

        .convert-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ===== PROGRESS INDICATOR ===== */
        .progress-container {
            width: 100%;
            padding: 1.5rem 2rem;
            display: none;
        }

        .progress-bar {
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .progress-fill {
            height: 100%;
            background-color: var(--primary);
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-text {
            text-align: center;
            font-size: 0.9rem;
            color: var(--secondary);
            font-weight: 500;
        }

        /* ===== ERROR MESSAGES ===== */
        .error-message {
            background-color: #ffebee;
            color: #c1121f;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 2rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            animation: fadeIn 0.3s ease;
            border: 1px solid rgba(225, 29, 72, 0.2);
            display: none;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

@media (max-width: 600px) {
  .upload-area {
    margin: 1rem auto;
    padding: 2rem 0.5rem;
    max-width: 95vw;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .file-info-container {
    margin: 1rem auto;
    width: 100%;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .file-info-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1rem auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .file-info {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .upload-area, .file-info-container, .file-info-card {
    max-width: 99vw;
    padding: 1rem 0.2rem;
  }
}
