body {
    background: linear-gradient(135deg, #1a2a44 0%, #263e60 50%, #1e5f74 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Card con glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

#btnBuscar {
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#btnBuscar:hover:not(:disabled) {
    background: linear-gradient(135deg, #198754, #146c43);
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.5);
    transform: translateY(-1px);
}

#btnBuscar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Barra de usuario */
.user-bar {
    position: fixed;
    top: 12px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.8rem;
    backdrop-filter: blur(6px);
    z-index: 1050;
}
.user-bar .logout-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}
.user-bar .logout-link:hover { color: #ff3838; }

/* Indicador de conexión */
.conn-indicator {
    position: fixed;
    top: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    z-index: 1050;
}

.conn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    transition: background 0.3s;
}

.conn-dot.online {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
    animation: pulse 2s infinite;
}

.conn-dot.offline {
    background: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.8);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* Historial de búsquedas */
.history-wrap {
    margin-top: 1rem;
    min-height: 28px;
}

.history-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 3px 10px;
    margin: 3px 4px 3px 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.history-chip:hover {
    background: rgba(13, 110, 253, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.history-chip .chip-remove {
    opacity: 0.6;
    font-size: 0.7rem;
    padding: 0 2px;
}

.history-chip .chip-remove:hover {
    opacity: 1;
    color: #ff6b6b;
}

/* Spinner en el botón */
.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: -2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.task-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    padding: 0;
    max-width: 400px;
    margin: 20px auto;
    margin-top: 20px;
}

.task-item {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f8ff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

.task-item .cheque {
    color: #28a745;
    font-size: 18px;
    margin-right: 8px;
}

.remove-button {
    background-color: #ff4d4d;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.remove-button:hover {
    background-color: #e60000;
}

.remove-button {
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: end;
}


/* .filter-option {
    color: #000;
} */