/* =========================================================
   🎨 LANCELOT FICHAJE - ESTILOS GENERALES
   ========================================================= */

/* === VARIABLES DE COLOR === */
:root {
    --color-primario: #ccc;
    --color-secundario: #007bff;
    --color-sidebar: #1e1f25;
    --color-sidebar-hover: #2e3038;
    --color-texto: #e0e0e0;
    --color-activo: #0d6efd;
}

/* === BASE === */
body {
    font-family: "Inter", Arial, sans-serif;
    background-color: #f5f6fa;
    overflow-x: hidden;
}

/* =========================================================
   🧭 CABECERA SUPERIOR
   ========================================================= */
.navbar {
    background: var(--color-primario);
    color: #222 !important;
}
.navbar-brand img {
    height: 36px;
    margin-right: 20px;
}
.titulo {
    font-weight: bold;
    color: #222;
}

/* =========================================================
   📋 MENÚ LATERAL
   ========================================================= */
.sidebar {
    min-height: 100vh;
    background-color: var(--color-sidebar);
    color: var(--color-texto);
    padding-top: 70px;
}

.sidebar .nav-link {
    color: var(--color-texto);
    font-size: 0.95rem;
    padding: 10px 18px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar .nav-link:hover {
    background-color: var(--color-sidebar-hover);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: var(--color-sidebar-hover);
    border-left: 4px solid var(--color-activo);
    color: #fff;
    font-weight: 600;
}

.sidebar hr {
    border-color: #444;
}

.sidebar .small {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 4px;
}

/* =========================================================
   🧱 CONTENIDO PRINCIPAL
   ========================================================= */
main {
    padding: 90px 30px 40px;
}

/* =========================================================
   🔘 BOTONES PERSONALIZADOS
   ========================================================= */
.btn-success, .btn-danger {
    font-size: 1rem;
    padding: 12px 26px;
    border-radius: 8px;
}

/* =========================================================
   🎚️ SCROLLBAR DISCRETA
   ========================================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
}


/* UBICACIÓN */
.ubicacion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    text-decoration: none !important;
}
.ubicacion-pin {
    width: 16px;
    height: 16px;
    filter: invert(33%) sepia(94%) saturate(2572%) hue-rotate(202deg) brightness(96%) contrast(95%);
}
.ubicacion-placeholder {
    display: inline-block;
    width: 22px;
    height: 22px;
}


/* =========================================================
   📱 MODO MÓVIL (APP PWA)
   ========================================================= */
@media (max-width: 768px) {

.sidebar {display: none;}

/* Contenedor general del menú */
  .menu-movil {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  /* Botones */
  .menu-movil .menu-btn {
    flex: 1;
    background: #0066cc;
    color: #fff;
    text-align: center;
    padding: 12px 5px;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .menu-movil .menu-btn span {
    font-size: 0.9rem;
    display: block;
  }

  .menu-movil .menu-btn:hover {
    background: #004c99;
  }
.navbar {
    padding: 8px 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-brand img {
    height: 28px;
    margin-right: 10px;
  }

  .titulo {
    font-size: 20px;
  }

  .logout-btn {
    border: none !important;
    background: transparent !important;
    color: #222 !important;
    font-size: 1.4rem;
    padding: 0 !important;
  }

  .logout-btn:hover {
    color: #0066cc !important;
  }

  /* Contenido más compacto */
  main {
    padding: 80px 15px 100px; /* espacio inferior para botones */
  }

  /* Botones fijos abajo */
  .fichaje-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 10px;
    z-index: 999;
  }

  .fichaje-buttons form {
    flex: 1;
  }

  .fichaje-buttons button {
    width: 100%;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    color: #fff;
    padding: 15px;
  }

  .btn-entrada {
    background-color: #28a745;
  }

  .btn-salida {
    background-color: #dc3545;
  }
}
