/***********
  App General Styles
***********/

body {
    background: var(--color-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.app-container {
    max-width: 500px;
    margin: 2.5rem auto 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* importante para que la tabla no sobresalga */
}

.app-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.viewdata-container {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* importante para que la tabla no sobresalga */
}

.viewdata-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tabla-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 0; /* importante */
    padding: 0; /* importante */
  }

.app-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.app-form label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 0.2px;
}

.app-form input[type="file"] {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.7rem;
}

.app-form button {
    width: 100%;
    padding: 0.8rem 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    border-radius: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 var(--color-border);
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.app-form button:hover {
    background: var(--color-secondary);
    color: var(--color-black);
    box-shadow: 0 4px 16px 0 var(--color-border);
}

.custom-file-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-file-input label {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px 0 var(--color-border);
}

.custom-file-input label:hover {
    background: var(--color-secondary);
    color: var(--color-black);
}

.custom-file-input span {
    font-size: 0.98rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

@media (max-width: 600px) {
    .app-container {
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        border-radius: 1rem;
    }
    .app-container h2 {
        font-size: 1.1rem;
    }
    .app-form button {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
} 

/* Embellecedores para tablas */
table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 700px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    width: 100%;
}

thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

tbody tr:hover {
    background-color: #e0f7fa;
    transition: background 0.2s;
} 
