/* Estilos básicos del cuerpo */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Estilos del menú */
.navbar {
    background-color: #333;
    padding: 10px 0;
    position: relative;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.menu li {
    position: relative;
}

.menu>li {
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    display: block;
}

.menu a:hover {
    background-color: #555;
    transition: background-color 0.3s;
}

/* Estilos del submenú (oculto por defecto) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu li {
    width: 200px;
}

.submenu a {
    padding: 10px;
}

/* Mostrar el submenú al pasar el ratón */
.menu li:hover .submenu {
    display: block;
}


.form-container {
    width: 50%;
    /* O cualquier ancho deseado */
    margin: 0 auto;
    /* Centrar horizontalmente */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Opcional: para agregar sombra */
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.panel {
    width: 100%;
    margin: 0 0 25px 0;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: white;
    border-radius: 12px;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.admin-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

form {
    display: flex;
    flex-direction: column;
}

.form-container input,
.form-container button {
    margin-bottom: 10px;
}

.reloj {
    text-align: center;
    /* O cualquier ancho deseado */
    margin: 0 auto;
    /* Centrar horizontalmente */
    padding: 20px;
}



.filaForm {
    margin: 0 auto;
}

#mensajeLogin {
    text-align: center;
}

/* Estilos mejorados para la tabla de jornadas */
#ListaJornadas {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
}

#ListaJornadas thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#ListaJornadas th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: white;
}

#ListaJornadas tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

#ListaJornadas tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#ListaJornadas tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#ListaJornadas tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

#ListaJornadas td {
    padding: 15px;
    border: none;
    color: #555;
    font-size: 14px;
}

#ListaJornadas tbody tr:last-child td {
    border-bottom: none;
}

.no-resultados {
    text-align: center;
    font-style: italic;
    color: #888;
}

#loginForm>div:nth-child(1)>label {
    font-size: 25px;
}

#clave {
    width: 100%;
    height: 35px;
    font-size: 25px;
}

#loginForm>div:nth-child(2)>button {
    font-size: 22px;
    padding: 13px;
    margin-top: 14px;
}

#loginForm>div:nth-child(1) {
    text-align: center;
}

body>div.reloj {
    font-size: 50px;
}

#nombreUsuario {
    font-size: 25px;
}

#listaMotivos {
    font-size: 30px;
}

#btnEnviarMotivo,
#btnIncidencia {
    font-size: 30px;
}

#fechaInicio,
#fechaFin,
#btnEnviarInfo {
    font-size: 20px;
}
#IdTrabajador{
    font-size: 20px;
}
#btnEnviarInfo{
    margin-top: 5px;
}
#listaMotivos > option{
    font-size: 35px;
}

/* Estilos para el menú lateral */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar h2 {
    padding: 25px 20px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    background: rgba(0,0,0,0.1);
    text-align: center;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 5px 10px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: rgba(255,255,255,0.15);
    border-left-color: #4CAF50;
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(76,175,80,0.3) 0%, rgba(76,175,80,0.1) 100%);
    border-left-color: #4CAF50;
    color: white;
    font-weight: 600;
}

.sidebar-menu a.active::before {
    content: "▶";
    margin-right: 10px;
    font-size: 10px;
}

/* Contenedor principal con margen para el sidebar */
.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Mejoras para el contenedor principal */
.main-content h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-content > .container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Estilos mejorados para paneles */
.panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.panel h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

/* Mejoras para formularios */
.panel form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

.panel input[type="text"],
.panel input[type="number"],
.panel input[type="date"],
.panel input[type="time"],
.panel select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.panel input:focus,
.panel select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

.panel button[type="submit"],
.panel button[type="button"] {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.panel button[type="submit"] {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.panel button[type="submit"]:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.panel button[type="button"] {
    background: #f44336;
    color: white;
}

.panel button[type="button"]:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mejoras para tablas */
.panel table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.panel table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.panel table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.panel table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.panel table td {
    padding: 15px;
    border: none;
    color: #555;
    font-size: 14px;
}

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

/* Botones en tablas */
.panel table button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel table button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.panel table button:first-of-type {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.panel table button:last-of-type {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

/* Estilos para Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: white;
}

.btn-primary {
    padding: 12px 25px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    padding: 12px 25px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive: ocultar sidebar en pantallas pequeñas */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        width: 250px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .main-content h1 {
        font-size: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}