/* Reset básico */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}



body {
    background: #f4f4f4;
    display: block !important; /* Desactiva flexbox */
    height: 200vh;
    flex-direction: column;  /* Cambia row por column */
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra horizontalmente */
}

/* Sidebar (Menú de navegación) */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #AE2B31;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background: #ffffff;
    color: #333;
}


.content {
    margin-left: 260px;
    padding: 20px;
    padding-top: 150px; /* Aumenta este valor para bajar el contenido */
}

.container {
    margin-top: 50px !important; /* Forzar el margen superior */
}

.content-entregas {
    margin-left: 260px;
    padding: 20px;
    padding-top: 250px !important; /* Asegura que el contenido se baje */
    min-height: 100vh; /* Para que el contenido se expanda si es necesario */
}

.container-entregas {
    margin-top: 150px !important; /* Baja el formulario */
    display: block !important; /* Evita que flexbox lo afecte */
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
}


h2 {
    color: #AE2B31;
    margin-bottom: 15px;
}

form {
    display: flex;
    flex-direction: column;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

select {
    background: #f8f9fa;
}

button {
    background: #AE2B31;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

button:hover {
    background: rgb(160, 160, 160);
}

/* Responsividad */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .content {
        margin-left: 0;
    }
    .container {
        width: 90%;
        margin-top: 90px;
    }
}


.content-entregas {
    margin-left: 260px;
    padding: 20px;
    padding-top: 250px !important; /* Asegura que el contenido se baje */
    min-height: 100vh; /* Para que el contenido se expanda si es necesario */
}

.container-entregas {
    margin-top: 150px !important; /* Baja el formulario */
    display: block !important; /* Evita que flexbox lo afecte */
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
}


/* Estilos para la firma */
.firma-container {
    width: 100%;
    max-width: 400px;
    height: 200px;
    border: 2px solid #000;
    margin: 10px auto;
    background: white;
}

canvas {
    width: 100%;
    height: 100%;
}
/* Estilos específicos para el Login */
.login-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-container h2 {
    color: #AE2B31;
    margin-bottom: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.login-form button {
    background: #AE2B31;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 12px;
    border-radius: 5px;
}

.login-form button:hover {
    background: rgb(160, 160, 160);
}

/* Responsividad */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
    }
}

/* Contenido del Dashboard */
.content {
    margin-left: 260px;
    padding: 20px;
    width: 100%;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.card h3 {
    color: #AE2B31;
    margin-bottom: 10px;
}

.card p {
    font-size: 20px;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .content {
        margin-left: 0;
    }
    .dashboard-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
    }
}

/* Estilos para las tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background: #AE2B31;
    color: white;
    font-weight: bold;
}

/* Espaciado entre los contenedores */
.container {
    margin-top: 90px;
    padding: 20px;
}

/* Mejor organización del formulario */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: auto;
}

/* Botón de actualización */
button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #AE2B31;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background: rgb(160, 160, 160);
}

