/* Estilos específicos para el compresor */

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #333333;
    --light-text-color: #666666;
    --background-color: #f5f7fa;
    --border-color: #cccccc;
    --hover-color: #e6e6e6;
}

.shadow-box {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.tool-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: var(--text-color);
}

.drop-area {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.drop-area.highlight {
    background-color: rgba(52, 152, 219, 0.1);
}

.drop-area p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}

.drop-area .button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.drop-area .button:hover {
    background-color: var(--secondary-color);
}

.file-types {
    font-size: 0.9em;
    color: var(--light-text-color);
}

/* Opciones de compresión */
#compression-options {
    margin-top: 20px;
}

/* Estilos modernos para las opciones avanzadas */
#advanced-options {
    margin-top: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.option-column {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-column:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-column label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

/* Estilos para los cuadros de diálogo y desplegables */
.option-column select,
.option-column input[type="text"],
.option-column input[type="number"] {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-top: 5px;
    font-size: 14px;
}

.option-column select:focus,
.option-column input[type="text"]:focus,
.option-column input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Estilos para el control deslizante de calidad */
.compression-level {
    margin-bottom: 15px;
}

#compression-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-top: 10px;
}

#compression-slider:hover {
    opacity: 1;
}

#compression-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#compression-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#compression-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#compression-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

#compression-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Estilos para las opciones de formato de salida */
.output-format {
    margin-bottom: 15px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Cambiado de 3 a 2 columnas */
    gap: 15px; /* Aumentado el espacio entre elementos */
    margin-top: 10px;
}

.format-grid label {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 10px; /* Aumentado el padding para mayor clickabilidad */
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.format-grid label:hover {
    background-color: var(--hover-color);
}

.format-grid input[type="radio"] {
    margin-right: 10px; /* Aumentado el margen para mejor separación */
}

/* Ajustes responsivos */
@media (max-width: 480px) {
    .format-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas muy pequeñas */
    }
}

/* Estilos para las opciones de redimensionamiento */
.resize-options {
    margin-bottom: 15px;
}

#resize-preset,
#custom-size,
#resize-method,
#maintain-aspect-ratio {
    margin-top: 10px;
}

#resize-preset,
#resize-width,
#resize-height {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-color);
    margin-top: 5px;
}

#resize-method label,
#maintain-aspect-ratio label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#resize-method input[type="radio"],
#maintain-aspect-ratio input[type="checkbox"] {
    margin-right: 8px;
}

/* ... (el resto de los estilos permanecen igual) ... */
/* Estilos para las opciones de renombrado y redimensionado */
.rename-files {
    margin-bottom: 15px;
}

#rename-option, #resize-option, #aspect-ratio {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-color);
    margin-top: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 20px auto;
    cursor: pointer;
}

#rename-option:focus, #resize-option:focus, #aspect-ratio:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#rename-text, #resize-width, #resize-height {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-color);
    margin-top: 10px;
}

#rename-text:focus, #resize-width:focus, #resize-height:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Estilos para la opción de guardar configuración */
.save-config {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.save-config label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
}

.save-config input[type="checkbox"] {
    margin-right: 8px;
}

/* Estilos específicos para la visualización de ahorro */
#download-summary {
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#total-savings {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 0px;
    padding: 0px;
}

#savings-details {
    font-size: 1em;
    color: var(--light-text-color);
}

#download-all {
    padding: 10px 20px;
    font-size: 1.4em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    margin-left: 10px;
}

#download-all:hover {
    background-color: #32CD32;
}

/* Estilos para los bloques individuales de archivos */
.image-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.image-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-container .thumbnail-column {
    width: 80px;
    margin-right: 10px;
    margin-left: 10px;
}

.image-container .info-column {
    flex: 1;
    min-width: 150px;
    margin-right: 10px;
}

.image-container .progress-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 10px 15px;
}

.image-container .progress-container {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.image-container .progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    position: relative;
}

.image-container .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.image-container .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.image-container .output-column {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-width: 120px;
}

.image-container .output-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 10px;
    min-width: 100px;
}

.image-container .output-format {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
    background-color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 12px;
}

.image-container .download-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

.image-container .download-button:hover {
    background-color: #32CD32;
}

.image-container .file-size {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin-bottom: 2px;
}

.image-container .savings {
    font-size: 0.8em;
    color: #4CAF50;
    font-weight: bold;
}

#savings-info {
    flex-grow: 1;
    margin-right: 20px;
}

#total-progress-container {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

#total-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    position: relative;
}

#total-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    overflow: hidden;
}

/* Estilos para el interruptor de opciones avanzadas */
.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Ajustes responsivos */
@media (max-width: 1200px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #download-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    #download-all {
        margin-top: 15px;
        width: 100%;
    }

    .image-container {
        flex-direction: column;
    }

    .image-container .thumbnail-column,
    .image-container .info-column,
    .image-container .progress-column,
    .image-container .output-column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Ajustes para la sección de información */
.info-section {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.info-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.info-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.info-item h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.info-item ul, .info-item ol {
    padding-left: 20px;
}

.info-item li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilos para el interruptor de opciones avanzadas */
.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

/* Nuevo estilo para el interruptor pequeño */
.switch.small {
    width: 30px;
    height: 17px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Ajustes para el slider pequeño */
.switch.small .slider:before {
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Ajuste para el slider pequeño cuando está activado */
.switch.small input:checked + .slider:before {
    transform: translateX(13px);
}