/* ------------------------------
   RESET & BASE STYLES
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* ------------------------------
   MAIN CONTAINER
------------------------------ */
.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
}

/* ------------------------------
   HEADER
------------------------------ */
.header {
    width: 100%;
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
}

/* ------------------------------
   DASHBOARD CONTENT
------------------------------ */
.dashboard {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-message {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}

/* ------------------------------
   TOP BUTTONS (tres colores distintos)
------------------------------ */
.row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn-top {
    display: block;
    width: 240px;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn-top:hover {
    transform: translateY(-2px);
}

/* Botón 1: verde */
.btn-calculo {
    background-color: #28a745;
    color: #fff;
}
.btn-calculo:hover {
    background-color: #218838;
}

/* Botón 2: azul claro */
.btn-pendientes {
    background-color: #17a2b8;
    color: #fff;
}
.btn-pendientes:hover {
    background-color: #117a8b;
}

/* Botón 3: amarillo */
.btn-brick {
    background-color: #ffc107;
    color: #212529;
}
.btn-brick:hover {
    background-color: #e0a800;
}

/* ------------------------------
   BOXES (BOTONES de la segunda fila)
------------------------------ */
.box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 100px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.small {
    font-size: 0.9em;
}

/* ------------------------------
   ARROWS
------------------------------ */
.arrow-right {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 30px solid #333;
    margin: 0 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.arrow-right:hover {
    opacity: 1;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
    width: 100%;
    background-color: #f4f4f9;
    color: #555;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 14px;
    margin: 0;
}

/* ------------------------------
   OPTIONAL: logout, modals, mensajes...
------------------------------ */
.logout-button {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.logout-button:hover {
    color: #0056b3;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal .login-button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.modal .login-button:hover {
    background-color: #0056b3;
}

.messages {
    margin-top: 10px;
}

.messages p {
    font-size: 14px;
    color: red;
}
