/* Estilos generales */
body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8f4fc;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Estilos del encabezado */
header {
    background: linear-gradient(to right, #1a4a73, #2c7ab8);
    color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

header #branding h1 {
    margin: 0;
    font-size: 1.5em;
    white-space: nowrap;
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

header nav li {
    margin-left: 15px;
    position: relative;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

header .highlight {
    color: #ffa500;
    font-weight: bold;
}

header .current a, header a:hover {
    color: #64b5f6;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a4a73;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8em;
}

.dropdown-content a:hover {
    background-color: #2c7ab8;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Estilos para el nombre de usuario y botón de cerrar sesión */
.user-info {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
    margin-right: 15px;
}

.logout-btn {
    background-color: #ffa500;
    color: #1a4a73;
    padding: 8px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #ff8c00;
}

/* Estilos del contenido principal */
.main-content {
    padding: 40px 0;
}

h1, h2 {
    color: #1a4a73;
}

/* Estilos para la página de inicio */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.option {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(26, 74, 115, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(26, 74, 115, 0.15);
}

.option h2 {
    color: #1a4a73;
    margin-top: 0;
}

.option .button {
    display: inline-block;
    background: #3d85c6;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.option .button:hover {
    background: #2c7ab8;
}

/* Estilos de formularios */
form {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(26, 74, 115, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #1a4a73;
    font-weight: 500;
}

input[type="text"], 
input[type="number"], 
input[type="datetime-local"], 
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3d85c6;
}

button, .button {
    display: inline-block;
    background: #3d85c6;
    color: #fff;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background: #2c7ab8;
}

/* Estilos para tablas */
table, .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(26, 74, 115, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td, .table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th, .table th {
    background-color: #1a4a73;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

tr:nth-child(even), .table tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover, .table tr:hover {
    background-color: #e8f4fc;
}

/* Estilos para botones de acción en tablas */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn, .button.small {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-secondary, .button.secondary {
    background-color: #6c757d;
    color: white;
}

.btn-danger, .button.danger {
    background-color: #dc3545;
    color: white;
}

.btn-secondary:hover, .button.secondary:hover {
    background-color: #5a6268;
}

.btn-danger:hover, .button.danger:hover {
    background-color: #c82333;
}

/* Estilos de notificaciones */
.notifications {
    position: relative;
    display: inline-block;
}

#notificationBell i {
    font-size: 1.5rem;
    color: #ffffff;
}

#notificationCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 0.75rem;
}

#notificationsMenu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 200px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#notificationsMenu.hidden {
    display: none;
}

#notificationsMenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#notificationsMenu ul li,
.notification-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#notificationsMenu ul li:hover,
.notification-item:hover {
    background-color: #f0f0f0;
}

#notificationsMenu:not(.hidden) {
    display: block;
}

/* Estilos adicionales */
.page-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #1a4a73;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.bg-gradient-blue {
    background: linear-gradient(to right, #1a4a73, #14a4d6) !important;
}

/* Estilos del pie de página */
footer {
    background: linear-gradient(to right, #1a4a73, #2c7ab8);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Estilos para dispositivos móviles */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-top: 15px;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav li {
        margin: 10px 0;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .user-info {
        flex-direction: column;
        margin-top: 15px;
    }

    .user-name {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .notifications {
        margin-top: 15px;
    }

    .options {
        grid-template-columns: 1fr;
    }
}