* {
    box-sizing: border-box;
}

body {
    background-color: #f4f6f8; /* Fondo claro y amable */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding: 2rem 1rem;
    color: #333;
}

/* Contenedor principal centrado */
.app-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-text {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    margin: 0 0 20px 0;
}

.header-link {
    color: #0078D4;
    text-decoration: none;
}

/* Instrucciones */
.instrucciones-container {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #bbdefb;
}

.instrucciones-summary {
    font-size: 1.1rem;
    color: #1565c0;
    cursor: pointer;
    font-weight: 600;
}

.instrucciones-content {
    font-size: 0.95rem;
    margin-top: 15px;
    color: #444;
}

/* Grupos visuales (Pasos) */
.step-group {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.1rem;
    color: #222;
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* Botones */
.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.btn-primary {
    background-color: #4CAF50;
    color: white;
    flex: 1;
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #43a047;
}

.btn-secondary {
    background-color: #607d8b;
    color: white;
}

.btn-secondary:hover {
    background-color: #546e7a;
}

.save {
    background-color: #0078D4;
    color: white;
    font-size: 1.2rem;
    padding: 15px;
    width: 100%;
    font-weight: bold;
}

.save:hover {
    background-color: #0060a8;
}

/* Inputs y Selects */
select, input[type="range"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
}

textarea.text {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-top: 15px;
}

#stat-area {
    background-color: #222;
    color: #4CAF50;
    font-family: monospace;
    font-size: 0.9rem;
    min-height: 120px;
}

/* Opciones Avanzadas */
#dop-settings-label {
    color: #666;
    text-align: center;
    display: block;
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    background-color: #eee;
    border-radius: 6px;
    margin-bottom: 15px;
}

#dop-settings-label:hover {
    background-color: #e0e0e0;
}

.stat-right {
    float: right;
    color: #0078D4;
    font-weight: bold;
}

/* Elementos ocultos */
input[type="file"] {
    display: none;
}