/* tab_styles.css - Tab Navigation Styles */

/* Tab Navigation Bar */
.app-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tab Buttons */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.tab-btn.active {
    background: white;
    color: #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tab-icon {
    font-size: 18px;
}

.tab-label {
    font-size: 14px;
}

/* Tab Badge (for counts) */
.tab-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

/* Tools Dropdown */
.tab-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.tab-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.tab-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.item-icon {
    font-size: 16px;
}

.item-badge {
    margin-left: auto;
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

/* Tab Content Container */
.tab-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Fix for flex children */
}

/* Tab Panes - Defined in style.css (removed duplicates) */

/* Trade Assistant Tab - Full 3-column layout */
#assistantTab {
    flex-direction: row !important;
    overflow: hidden;
}

#assistantTab .messages-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Portfolio Tab - Sidebar layout */
#portfolioTab {
    flex-direction: row !important;
    overflow: hidden;
}

/* Tools Tabs - Column layout */
#watchlistTab,
#scannersTab,
#learningTab,
#tasksTab {
    flex-direction: column !important;
    overflow-y: auto;
}

/* Ensure only active tab is visible */
#watchlistTab:not(.active),
#tasksTab:not(.active) {
    display: none !important;
}

/* Portfolio Tab - Sidebar layout */
