/* ==================== BUTTONS BAR ==================== */
.buttons-bar {
    background: linear-gradient(135deg, var(--ui-surface, #fff), var(--ui-surface-soft, #f7fafd));
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--ui-border, #d7e2ef);
    box-shadow: var(--ui-shadow-sm, 0px 4px 8px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
    max-width: 100%;
}

.buttons-bar .btn {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.buttons-bar .btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.88);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.buttons-bar .btn:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background-color: var(--ui-primary, #185adb);
    border-radius: 50%;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.buttons-bar .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15);
}

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

/* ==================== VERSION CONTAINER ==================== */
.version-container {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.22));
    color: var(--ui-heading, #122033);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-weight: bold;
    position: relative;
}

.version-container:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15);
}

/* ==================== SUCURSAL Y FECHA ==================== */
.sucursal-fecha {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.sucursal-container select {
    max-width: 200px;
}

.fecha-container {
    font-weight: bold;
    color: var(--ui-text, #333);
    margin-left: 15px;
}

.fecha-container span {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
}

/* ==================== KEYBOARD SHORTCUTS ==================== */
.keyboard-shortcut-icon i {
    color: var(--ui-primary, #007bff);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.keyboard-shortcut-icon i:hover {
    transform: translateY(-5px);
}

/* ==================== BUTTONS BAR RESPONSIVE ==================== */
@media (max-width: 768px) {
    .buttons-bar .btn:not(.btn-home):not(.btn-close-register):not(.btn-add-expense) {
        display: none;
    }

    .buttons-bar .btn {
        width: 100%;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .sucursal-fecha {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        margin-top: 10px;
    }

    .sucursal-container select {
        width: 100%;
    }

    .fecha-container {
        margin-left: 0;
        margin-top: 5px;
        font-size: 14px;
    }
}
