/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar-menu li {
    display: inline-block;
}

.navbar-menu a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #007BFF;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-menu a {
        padding: 1rem;
    }
}

/* General Content Wrapper */
.content {
    width: 95%; /* Ocupa el 90% del ancho de la pantalla */
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Table Wrapper */
.table-wrapper {
    width: 100%; /* Ocupa todo el ancho del contenedor principal */
    overflow-x: auto;
    margin-top: 1rem;
}

/* Table Styles */
.table {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #333;
}

.table th, .table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f8f8;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.table tr:last-child td {
    border-bottom: none;
}

.table td {
    color: #555;
    vertical-align: middle;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 10%;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #007BFF;
}

/* Footer Styles */
.dashboard-footer {
    width: 90%; /* Mismo ancho que el contenedor principal */
    margin: 0 auto;
    padding: 1rem;
    background-color: #f8f8f8;
    color: #555;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #007BFF;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: #0056b3;
}

.dropdown-menu.show {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content, .dashboard-footer {
        width: 95%; /* Reduce el ancho en pantallas pequeñas */
    }

    .table th, .table td {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}


/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

form label {
    font-weight: bold;
    color: #333;
}

form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

form input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form button {
    background-color: #007BFF;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Success Message */
.success {
    color: green;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Estilo para mostrar colores en las tablas */
.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    margin-right: 0.5rem;
    vertical-align: middle;
    border-radius: 3px;
}

.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dashboard-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.dashboard-card p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}

.dashboard-card .button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.dashboard-card .button:hover {
    background-color: #0056b3;
}

.status-reservado {
    color: red;
    font-weight: bold;
}


.icon-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre iconos */
}

.icon-link {
    font-size: 18px; /* Tamaño más grande */
    color: black; /* Color normal */
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.icon-link:hover {
    transform: scale(1.2); /* Efecto de agrandamiento */
}

.delete {
    color: red !important; /* Evita color rojo en el icono de eliminar */
}


.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.danger {
    background: red;
    color: white;
}
.danger:hover {
    background: darkred;
    transform: scale(1.1);
}
.cancel {
    background: gray;
    color: white;
}
.cancel:hover {
    background: darkgray;
    transform: scale(1.1);
}

.button {
    display: inline-flex; /* Ajusta el tamaño al contenido */
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 50px; /* Más ovalado si es necesario */
    font-size: 16px; /* Ajuste del tamaño del texto */
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s ease;
    white-space: nowrap; /* Evita saltos de línea en el texto */
    max-width: 100%; /* Evita que se desborde */
    overflow: hidden; /* Previene que el contenido sobresalga */
    text-overflow: ellipsis; /* Muestra "..." si el texto es demasiado largo */
}


.add {
    background: green;
    color: white;
}

.add:hover {
    background: darkgreen;
    transform: scale(1.1);
}

/* Botón de añadir (+) flotante */
.add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: green;
    color: white;
    font-size: 32px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;

    /* Posicionamiento flotante */
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.add-button:hover {
    background: darkgreen;
    transform: scale(1.1);
}

/* Asegurar que el icono "+" esté bien centrado */
.add-button i {
    display: flex;
    align-items: center;
    justify-content: center;
}


.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-button {
    display: inline-block;
    padding: 10px 15px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cancel-button:hover {
    background: #a71d2a;
}

.dashboard-card:nth-child(odd) {
    background-color: #f0f8ff; /* Azul claro */
}

.dashboard-card:nth-child(even) {
    background-color: #fff3cd; /* Amarillo claro */
}

.icon-link-message {
    position: relative;
    font-size: 20px;
    color: white;
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
}
