/* Base Styles */
:root {
    --primary-blue: #3498db;
    --primary-blue-hover: #2980b9;
    --light-gray: #f5f7fa;
    --medium-gray: #e4e7ed;
    --dark-gray: #6c757d;
    --text-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.image-format-converter-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.image-format-converter-container body {
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* Layout */
.image-format-converter-container .container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-format-converter-container header {
    text-align: center;
    margin-bottom: 30px;
}

.image-format-converter-container h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.image-format-converter-container .subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.image-format-converter-container .app-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .image-format-converter-container .app-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.image-format-converter-container .card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}

.image-format-converter-container .card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.image-format-converter-container .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-format-converter-container .card-title svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
}

/* Upload Area */
.image-format-converter-container .upload-area {
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.image-format-converter-container .upload-area:hover, 
.image-format-converter-container .upload-area.dragover {
    border-color: var(--primary-blue);
    background-color: rgba(52, 152, 219, 0.05);
}

.image-format-converter-container .upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    fill: var(--dark-gray);
}

.image-format-converter-container .upload-area.dragover .upload-icon {
    fill: var(--primary-blue);
}

.image-format-converter-container .upload-text {
    margin-bottom: 15px;
}

.image-format-converter-container .upload-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-format-converter-container .upload-text p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.image-format-converter-container .file-input {
    display: none;
}

.image-format-converter-container .btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.image-format-converter-container .btn:hover {
    background-color: var(--primary-blue-hover);
}

.image-format-converter-container .btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.image-format-converter-container .btn-secondary {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

.image-format-converter-container .btn-secondary:hover {
    background-color: #d1d5db;
}

/* Preview Section */
.image-format-converter-container .preview-container {
    display: none;
    margin-bottom: 20px;
}

.image-format-converter-container .preview-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-format-converter-container .preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.image-format-converter-container .image-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
}

.image-format-converter-container .info-item {
    display: flex;
    flex-direction: column;
}

.image-format-converter-container .info-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.image-format-converter-container .info-value {
    font-weight: 500;
}

/* Conversion Options */
.image-format-converter-container .options-container {
    margin-top: 20px;
}

.image-format-converter-container .option-group {
    margin-bottom: 20px;
}

.image-format-converter-container .option-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.image-format-converter-container .select-wrapper, 
.image-format-converter-container .range-wrapper {
    position: relative;
}

.image-format-converter-container select, 
.image-format-converter-container input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 0.95rem;
}

.image-format-converter-container .range-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.image-format-converter-container .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-format-converter-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.image-format-converter-container .dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.image-format-converter-container .dimension-inputs input {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

/* Batch Files */
.image-format-converter-container .batch-container {
    display: none;
    margin-top: 20px;
}

.image-format-converter-container .batch-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.image-format-converter-container .batch-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--medium-gray);
    cursor: grab;
}

.image-format-converter-container .batch-item:last-child {
    border-bottom: none;
}

.image-format-converter-container .batch-item:hover {
    background-color: var(--light-gray);
}

.image-format-converter-container .batch-item-icon {
    margin-right: 10px;
    fill: var(--dark-gray);
}

.image-format-converter-container .batch-item-info {
    flex: 1;
}

.image-format-converter-container .batch-item-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.image-format-converter-container .batch-item-details {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.image-format-converter-container .batch-item-actions {
    display: flex;
    gap: 5px;
}

.image-format-converter-container .batch-item-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.image-format-converter-container .batch-item-actions svg {
    width: 16px;
    height: 16px;
    fill: var(--dark-gray);
}

.image-format-converter-container .batch-item-actions button:hover svg {
    fill: var(--text-color);
}

/* Progress and Results */
.image-format-converter-container .progress-container {
    display: none;
    margin: 20px 0;
}

.image-format-converter-container .progress-bar {
    height: 8px;
    background-color: var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.image-format-converter-container .progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    width: 0%;
    transition: width 0.3s ease;
}

.image-format-converter-container .progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.image-format-converter-container .results-container {
    display: none;
    margin-top: 20px;
}

.image-format-converter-container .result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.image-format-converter-container .result-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-format-converter-container .result-icon {
    width: 40px;
    height: 40px;
    fill: var(--primary-blue);
}

.image-format-converter-container .result-details h4 {
    margin-bottom: 5px;
}

.image-format-converter-container .result-details p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.image-format-converter-container .size-comparison {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.image-format-converter-container .size-before {
    color: var(--dark-gray);
    text-decoration: line-through;
}

.image-format-converter-container .size-after {
    color: #27ae60;
    font-weight: 500;
}

/* Footer */
.image-format-converter-container footer {
    text-align: center;
    margin-top: 40px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .image-format-converter-container .card {
        padding: 20px;
    }
    
    .image-format-converter-container h1 {
        font-size: 1.8rem;
    }
    
    .image-format-converter-container .upload-area {
        padding: 30px 15px;
    }
    
    .image-format-converter-container .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}