/* ==== BOOTSTRAP v3.3.5 (solo una vez) ==== */
/* Contenido de bootstrap.css (ya incluido en tu archivo original) */
/* Aquí iría todo el contenido de bootstrap.css (no lo repito por extensión, pero se usa una sola vez) */

/* ==== BOOTSTRAP THEME ==== */
/* Contenido de bootstrap-theme.css (una sola vez) */
/* (igual, no lo repito aquí, pero se incluye solo una vez) */

/* ==== DATEPICKER ==== */
/* Contenido de bootstrap-datepicker.css */
.datepicker {
  padding: 4px;
  border-radius: 4px;
  direction: ltr;
}
/* ... resto del datepicker (tal como lo tienes) ... */

/* ==== ESTILOS PERSONALIZADOS PRINCIPALES ==== */

/* --- Estilos generales de body y fondo --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('https://ipet411.ddns.net/fat.ipet.net/fat24/piersanti/fechas1/importantes1/inicio/imagenes/imageen.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
}

/* --- Navbar personalizada (roja) --- */
.navbar-default {
  background-color: #E00B17;
  border-color: #E00B17;
}
.navbar-default .navbar-brand,
.navbar-default .navbar-text,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-link {
  color: #ecf0f1;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ecf0f1;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .open > a {
  color: #ecf0f1;
  background-color: #E00B17;
}
.navbar-default .navbar-toggle {
  border-color: #E00B17;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #E00B17;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #ecf0f1;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ecf0f1;
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #ecf0f1;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a {
    color: #ecf0f1;
    background-color: #E00B17;
  }
}

/* --- Página de administración --- */
.container {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}
h1 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.2em;
    font-weight: 600;
}
.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.btn {
    display: block;
    padding: 20px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.logout {
    margin-top: 20px;
    text-align: center;
}
.btn-cerrar {
    display: inline-block;
    padding: 12px 24px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-cerrar:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Formularios (agregar / registrar) --- */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.btn-submit {
    background: #27ae60;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 15px;
}
.btn-submit:hover {
    background: #229954;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}
.btn-back {
    display: inline-block;
    background: #95a5a6;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 25px;
    transition: all 0.3s ease;
}
.btn-back:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}
.success {
    background: #d5f5e3;
    color: #27ae60;
    padding: 18px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
    font-weight: bold;
    border: 1px solid #27ae60;
}
.error {
    background: #fadbd8;
    color: #e74c3c;
    padding: 18px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
    font-weight: bold;
    border: 1px solid #e74c3c;
}

/* --- Estilos para CRUD moderno --- */
.fechas-modernas h1,
.fechas-modernas h2,
.fechas-modernas h3,
.fechas-modernas h4 {
    font-weight: 600;
    color: #224c7d;
}
.fechas-modernas .table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}
.fechas-modernas .table thead th {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 12px 15px;
}
.fechas-modernas .table tbody tr:hover {
    background-color: #f8fafc;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 25px;
        margin: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    .btn-submit {
        font-size: 16px;
        padding: 14px;
    }
    .btn-back {
        font-size: 14px;
        padding: 10px 20px;
    }
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
}

/* Estilos generales para los inputs */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    margin: 8px -16px;
    border: 1px solid #d1d5db; /* Gris claro */
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151; /* Gris oscuro */
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Efecto al pasar el mouse */
input[type="email"]:hover,
input[type="password"]:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Efecto cuando está enfocado */
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6; /* Azul corporativo */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Placeholder (texto de ayuda) */
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Ajuste de altura y alineación en el contenedor */
form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacio entre campos y botones */
    align-items: stretch;
}



/* === ESTILOS EMPRESARIALES PARA "MIS FECHAS IMPORTANTES" === */
/* Clase segura: mis-fechas-empresarial */

.mis-fechas-empresarial h1 {
    color: #224c7d;
    font-weight: 600;
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.mis-fechas-empresarial table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 25px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mis-fechas-empresarial thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.mis-fechas-empresarial tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.mis-fechas-empresarial tbody tr:hover {
    background-color: #f1f5f9;
}

.mis-fechas-empresarial td {
    padding: 16px;
    vertical-align: top;
    font-size: 16px;
    color: #1e293b;
    line-height: 1.5;
}

/* Columna MOTIVO */
.mis-fechas-empresarial td:first-child {
    font-weight: 600;
    color: #1e40af;
}

/* Columna FECHA */
.mis-fechas-empresarial td:nth-child(2) {
    font-family: monospace;
    color: #1e293b;
    font-weight: 500;
}

/* Columna DESCRIPCIÓN */
.mis-fechas-empresarial td:nth-child(3) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
}

/* Columna ACCIONES */
.mis-fechas-empresarial td:last-child {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 16px;
}

/* Botones dentro de la tabla */
.mis-fechas-empresarial .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.mis-fechas-empresarial .btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Botón de eliminar (segundo botón) */
.mis-fechas-empresarial .btn:last-child {
    background: #e74c3c;
}

.mis-fechas-empresarial .btn:last-child:hover {
    background: #c0392b;
}

/* Mensaje cuando no hay fechas */
.mis-fechas-empresarial .no-fechas {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 18px;
    font-style: italic;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin: 30px 0;
    font-weight: 500;
}

/* Botones principales (Volver / Agregar Fecha) */
.mis-fechas-empresarial .buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

/* Asegurar que los botones fuera de la tabla usen el estilo original */
.mis-fechas-empresarial > .buttons-grid .btn {
    display: block;
    padding: 16px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mis-fechas-empresarial > .buttons-grid .btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* ===== BOTONES PERSONALIZADOS EN TABLAS (MOTIVOS) ===== */
.btn-editar-motivo,
.btn-eliminar-motivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 2px;
}

.btn-editar-motivo {
    background-color: #28a745;
    color: white;
}
.btn-editar-motivo:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-eliminar-motivo {
    background-color: #dc0c19;
    color: white;
}
.btn-eliminar-motivo:hover {
    background-color: #b00a15;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}