/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografía global */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #222222;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-text {
    text-align: center;
}

.github-link svg {
    transition: transform 0.3s, color 0.3s;
    color: #1a73e8;
}

.github-link:hover svg {
    transform: scale(1.2);
    color: #1a73e8;
}

header h1 {
    font-size: 2.5em;
    color: #1a73e8;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    color: #555555;
}

/* Secciones */
section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

section h2 {
    font-size: 1.8em;
    color: #1a73e8;
    margin-bottom: 15px;
}

section p, section li {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

/* ========================= */
/* WEB APP (Dotplot UI) */
/* ========================= */

/* Contenedor principal (layout tipo PyQt) */
#main-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Paneles */
#left-panel,
#right-panel {
    background-color: #fafafa;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Proporción similar a tu PyQt */
#left-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#right-panel {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Textareas */
textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 10px;
    font-family: monospace;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Inputs */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* File inputs */
input[type="file"] {
    font-size: 0.9em;
}

/* Labels */
label {
    font-weight: 500;
}

/* Axes + params layout */
.axes-container,
.params-container {
    display: flex;
    gap: 15px;
}

.axes-container > div,
.params-container > div {
    flex: 1;
}

/* Botones */
.buttons-container {
    display: flex;
    gap: 10px;
}

.buttons-container button {
    flex: 1;
    padding: 10px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buttons-container button:hover {
    background-color: #1666c1;
}

/* Plot */
#plot {
    width: 100%;
    height: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
}

/* ========================= */
/* RESPONSIVE (WEB APP) */
/* ========================= */

@media (max-width: 900px) {
    #main-container {
        flex-direction: column;
    }
}

/* ========================= */
/* DOWNLOAD BUTTON */
/* ========================= */

.download-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1a73e8;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.download-button:hover {
    background-color: #1666c1;
}

/* ========================= */
/* DESKTOP APP PREVIEW */
/* ========================= */
#desktop-preview {
    text-align: left; /* mantiene el texto a la izquierda */
    margin-top: 40px;
}

#desktop-preview img {
    display: block;       /* convierte la imagen en un bloque */
    margin: 20px auto;    /* auto en los lados centra el bloque horizontalmente */
    max-width: 80%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: #777777;
    border-top: 1px solid #e0e0e0;
}

/* ========================= */
/* RESPONSIVE GENERAL */
/* ========================= */

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.5em;
    }

    #desktop-preview img {
        max-width: 100%;
    }
}
