/* General Styles */
/* Root Variables for Colors and Fonts */
:root {
    --primary-color: #269eb0;               /* Azul primario */
    --secondary-color: #6fbfd1;             /* Azul secundario */
    --background-color: #374244;            /* Fondo oscuro */
    --text-color: #303738;                  /* Texto oscuro */
    --accent-color: #b3d4df;                /* Azul claro */
    --white-color: #ffffff;                 /* Blanco */
    --font-family: 'Roboto', sans-serif;    /* Fuente de texto */  
}

body {
    font-family: var(--font-family);
    background-color: #4a525f;
    padding: 0;
    margin: 0;
    margin-bottom: 40px;
}

html {
  min-height: 100%;
  position: relative;
}

/* Header and Titles */
h3, h4 {
    color: var(--primary-color);
}

h1, h2 {
    margin-top:30px;
    margin-bottom:10px;
    font-size: 20px;
    font-weight:500;
    color: var(--primary-color);
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color:#4a525f;
}

h1, h2, h3 {
    font-weight: normal;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Footer */
header {
    background-color:#4a525f;
    color: white;
    padding-top: 20px;
    text-align: center;
}

header h1, header h2, header h3 {
    color: white;
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    color: #dcdcdc;
}

/* Footer */
footer {
    background-color: #374244;
    color: white;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    font-size:13px;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
}

footer p {
    margin: 0;
}


/* Button Styles */
button {
    background-color: #269eb0; /* Azul claro */
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 13px;
}

button:hover {
    background-color: #303738; /* Azul intermedio */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.total {
    font-weight: bold;
    background-color: #f9f9f9;
    color: #333;
}

/* Form Styles */
form {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

form input[type="text"],
form input[type="number"],
form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form input[type="submit"],
form button {
    width: 100%;
    padding: 10px;
    background-color: #269eb0; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form input[type="submit"]:hover,
form button:hover {
    background-color:  #303738;
}

/* Dashboard Button Styles */
.dashboard-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.dashboard-buttons button {
    width: 48%; /* Ocupa casi la mitad del espacio */
    padding: 15px;
    font-size: 16px;
    background-color: #5dade2; /* Azul claro */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dashboard-buttons button:hover {
    background-color: #3498db; /* Azul intermedio */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 90%;
    }

    table, form {
        width: 100%;
    }
}

/* General button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.logout-btn {
    background-color: #e74c3c;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.admin-buttons {
    margin-bottom: 20px;
}

form {
    margin-top: 20px;
}