/* AYSA Plugin - Tabbed Settings Interface Styles */

/* Tab Navigation */
.aysa-tab-navigation {
    display: flex;
    background: #f1f1f1;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.aysa-tab-button {
    background: #f1f1f1;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aysa-tab-button:hover {
    background: #e8e8e8;
    color: #333;
}

.aysa-tab-button.active {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.aysa-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Tab Content */
.aysa-tab-container {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aysa-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.aysa-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Icons */
.aysa-tab-button .tab-icon {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aysa-tab-navigation {
        flex-direction: column;
    }
    
    .aysa-tab-button {
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }
    
    .aysa-tab-button:last-child {
        border-bottom: none;
    }
    
    .aysa-tab-button.active {
        border-left: 3px solid #0073aa;
        border-bottom: 1px solid #ddd;
    }
    
    .aysa-tab-button.active::after {
        display: none;
    }
}

/* Credit Usage Tab Specific Styles */
#credit-usage-tab .aysa-credit-summary-grid {
    margin-bottom: 30px;
}

#credit-usage-tab .aysa-credit-breakdown-section {
    margin-bottom: 30px;
}

#credit-usage-tab .aysa-transaction-history-section {
    margin-bottom: 20px;
}

/* Tab Content Spacing */
.aysa-tab-content .aysa-card:last-child {
    margin-bottom: 0;
}

.aysa-tab-content .aysa-panel:last-child {
    margin-bottom: 0;
}

/* Loading States for Tabs */
.aysa-tab-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.aysa-tab-loading .aysa-loading-spinner {
    margin-right: 10px;
}

/* Tab Badge (for notifications or counts) */
.aysa-tab-badge {
    background: #dc3232;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 16px;
    text-align: center;
}

.aysa-tab-badge.success {
    background: #46b450;
}

.aysa-tab-badge.warning {
    background: #ffb900;
}

.aysa-tab-badge.info {
    background: #00a0d2;
}