*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: solid black 1px 1px; */

}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #344f81;
    color: white;
    padding: 15px;
    text-align: center;
}

nav {
    background-color: #333;
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    justify-content: space-between; /* Espacia los elementos entre sí */
    padding: 0 20px; /* Añade espacio horizontal */
    height: 65px; /* Asegura una altura uniforme */
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center; /* Asegura que los elementos estén alineados verticalmente */
    flex: 1; /* Permite que los elementos ocupen el espacio disponible */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    height: 100%; /* Asegura que ocupe toda la altura del nav */
    display: flex;
    align-items: center; /* Centra verticalmente el texto */
}

nav ul li a:hover {
    background-color: #575757;
}

main {
    flex: 1; /* Ocupa todo el espacio disponible */
    padding: 20px;
}

.nav-user-container {
    display: flex;
    align-items: center; /* Alinea verticalmente el contenido */
    gap: 10px; /* Espacia los elementos dentro del contenedor */
    height: 100%; /* Asegura que ocupe toda la altura del nav */
}

.nav-user-container h3 {
    margin: 0; /* Elimina márgenes para evitar desbordes */
    color: white; /* Asegura que el texto sea visible */
    font-size: 16px; /* Ajusta el tamaño del texto */
    display: flex;
    align-items: center; /* Centra verticalmente el texto */
}

.nav-user-container .btn {
    padding: 5px 10px; /* Ajusta el tamaño del botón */
    font-size: 14px; /* Ajusta el tamaño del texto del botón */
    height: auto; /* Permite que el botón se ajuste automáticamente */
}

#container {
    display: flex;
    height: 75px;
}

h3 {
    height: 55px;
}

footer {
    background-color: #ddd;
    text-align: center;
    padding: 10px;
}


/* Estilos para el control de tiempo */
.time-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-display {
    font-size: 32px;
    font-weight: bold;
    color: #2563eb;
}

.time-controls {
    display: flex;
    gap: 20px;
}

.time-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.time-start-btn {
    background-color: #e6f0ff;
    border: 1px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2563eb;
    font-size: 18px;
}

/* Estilos para centrar y diseñar el formulario en home.php */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-container h3 {
    text-align: center;
    margin-bottom: 25px;
}
.form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
}
.form-container label {
    font-weight: bold;
    margin-bottom: 5px;
}
.form-container input[type="text"],
.form-container input[type="date"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #344f81;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.form-container button:hover {
    background-color: #2a3e68;
}

/* Ajustes para home.php */
.mb-3 {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-label {
    font-weight: 600;
    margin-bottom: 0;
}
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.form-group {
    margin-bottom: 1rem;
}
.btn-primary {
    background-color: #344f81;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}
.btn-primary:hover {
    background-color: #2a3e68;
}

/* ------------------------------------------------------------------
   Consulta UI styles  – added 2025‑05‑21
   Estas reglas son nuevas y no alteran las existentes
------------------------------------------------------------------ */
.layout{
    display:flex;
    gap:20px;
    flex:1;
}

/* === Sidebar de filtros === */
.sidebar-filters{
    width:260px;
    background-color:#f9f9f9;
    border:1px solid #e5e5e5;
    border-radius:6px;
    padding:20px;
}
.sidebar-filters h2{
    font-size:18px;
    margin-bottom:15px;
}
.filter-group{
    margin-bottom:15px;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.filter-group label{
    font-weight:600;
}
.filter-group select,
.filter-group input[type="checkbox"]{
    width:100%;
    padding:8px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
}

/* === Área principal === */
.main-content{
    flex:1;
}
.stats-summary{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    font-weight:700;
    font-size:20px;
    margin-bottom:20px;
}

/* === Lista de trabajos === */
.worklist{
    display:flex;
    flex-direction:column;
    gap:20px;
}
.work-item{
    display:flex;
    gap:15px;
    border:1px solid #e5e5e5;
    border-radius:6px;
    padding:15px;
}
.work-item .work-meta{
    width:230px;
}
.work-item .work-meta .tag{
    background-color:#d1fae5;
    color:#065f46;
    border-radius:4px;
    font-size:12px;
    padding:2px 6px;
    display:inline-block;
    margin-top:4px;
}
.work-item .work-description{
    flex:1;
    border-left:1px dashed #ccc;
    padding-left:15px;
}
.work-item .work-duration,
.work-item .work-billable,
.work-item .work-rate,
.work-item .work-reviewed,
.work-item .work-actions{
    width:110px;
    text-align:center;
    align-self:center;
}
.work-item .work-actions button{
    background:none;
    border:none;
    cursor:pointer;
    font-size:18px;
} */
/* ------------------------------------------------------------------ */
/* Dropdown menu in nav */
nav .dropdown {
    position: relative;
    display: inline-block;
}

nav .dropdown .dropbtn {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    height: 100%;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    flex-direction: column;
}

nav .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

nav .dropdown-content a:hover {
    background-color: #f1f1f1;
}

nav .dropdown:hover .dropdown-content {
    display: flex;
}

nav .dropdown:hover .dropbtn {
    background-color: #575757;
}

/* Estilos para el autocompletado */
.autocomplete-wrapper {
    position: relative;
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 2000;
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
}
.autocomplete-suggestion:hover {
    background: #f0f0f0;
}
textarea.form-control {
    resize: none;
}