/* ============================================================
   SHARED TOOLBAR STYLES
   Used across all app pages (habits, calendar, challenges, etc.)
   ============================================================ */

/* Toolbar Container */
.habits-toolbar {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.toolbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Toolbar Button - Base Style */
.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Active State - Only active button has visible border */
.toolbar-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

/* BRF Button Special Styling */
.toolbar-btn.brf-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.toolbar-btn.brf-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

/* Toolbar Icon */
.toolbar-icon {
    font-size: 1rem;
}

.toolbar-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

/* Settings Button Hover Effect */
.toolbar-btn.settings-btn .toolbar-icon-img {
    transition: transform 0.3s ease;
}

.toolbar-btn.settings-btn:hover .toolbar-icon-img {
    transform: rotate(45deg);
}

/* Toolbar Label */
.toolbar-label {
    font-size: 0.8rem;
}

/* Toolbar Groups */
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .toolbar-content {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .toolbar-content::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .toolbar-label {
        display: none;
    }

    .toolbar-btn {
        padding: 0.5rem;
    }

    .toolbar-group {
        gap: 0.125rem;
    }
}
