/* MAYA-ARIA Tabbed Interface Styles */

/* Fixed ARIA Button - Same as Speech Therapy Purple */
.btn-primary#analyzeBtn {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%) !important;
    color: white !important;
    border: none !important;
}

.btn-primary#analyzeBtn:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #6c3483 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* MAYA Button in Toolbar */
.btn-maya {
    background: #F08080 !important; /* Light coral background */
    color: #000000 !important; /* Dark black text */
    border: 2px solid #D2691E !important; /* Darker coral border */
    font-weight: 600 !important; /* Bold text */
    transition: all 0.3s ease;
}

.btn-maya:hover {
    background: #FA8072 !important; /* Slightly darker coral on hover */
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 128, 128, 0.4);
}

/* Enhanced ARIA Panel for Tabs */
.aria-panel {
    position: relative;
    min-width: 400px; /* Ensure adequate width */
}

/* Maya Tab Styling */
.maya-tab {
    background: #F08080 !important; /* Light coral background */
    color: #000000 !important; /* Dark black text */
    font-weight: 600 !important;
    border: 2px solid #D2691E !important; /* Darker coral border */
    padding: 12px 20px !important; /* More padding for better appearance */
}

.maya-tab:hover {
    background: #FA8072 !important; /* Slightly darker coral on hover */
    color: #000000 !important;
}

.maya-tab.active {
    background: #FF6347 !important; /* Tomato color when active */
    color: #000000 !important;
    border-bottom: 3px solid #D2691E !important;
}

/* Maya Mentoring Area */
.maya-mentoring-area {
    background: #FFF8DC !important; /* Light cream background */
    color: #000000 !important; /* Dark black text */
    padding: 24px !important; /* Increased padding */
    min-height: 300px !important; /* Minimum height */
    font-size: 14px !important; /* Better font size */
    font-weight: 500 !important; /* Medium weight for readability */
    border: 2px solid #F08080 !important; /* Light coral border */
    border-radius: 8px !important;
    margin: 16px 0 !important;
}

/* Maya Welcome Message */
.maya-mentoring-area h3 {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

.maya-mentoring-area p {
    color: #000000 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

/* Tab Navigation on ARIA Panel */
.aria-panel .analysis-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 101;
}

/* Tabbed Header */
.analysis-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6c757d;
}

.tab-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.tab-button.active {
    color: #212529;
    background: #fff;
    border-bottom: 3px solid transparent;
}

/* ARIA Tab Styling - Clean White Background */
.tab-button.aria-tab {
    background: white !important;
    color: #2c3e50 !important;
    border: 1px solid #e1e8ed !important;
}

.tab-button.aria-tab.active {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%) !important;
    color: white !important;
    border-bottom-color: #6c3483 !important;
}

.tab-button.aria-tab:hover {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
}

.tab-button.aria-tab.active:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #6c3483 100%) !important;
}

/* MAYA Tab Styling - Clean White Background */
.tab-button.maya-tab {
    background: white !important;
    color: #2c3e50 !important;
    border: 1px solid #e1e8ed !important;
}

.tab-button.maya-tab.active {
    background: linear-gradient(135deg, #8e24aa 0%, #ad1457 100%);
    color: white;
    border-bottom-color: #6a1b9a;
}

.tab-button.maya-tab:hover {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
}

.tab-button.maya-tab.active:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #c2185b 100%);
}

/* Tab Icons */
.tab-icon {
    font-size: 18px;
}

.aria-icon {
    color: #28a745;
}

.maya-icon {
    color: #8e24aa;
}

.tab-button.active .aria-icon,
.tab-button.active .maya-icon {
    color: white;
}

/* Tab Content Areas */
.tab-content {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

/* ARIA Content Styling - Keep Original Structure */
.aria-content {
    background: #fff;
    height: 100%;
    width: 100%;
}

.aria-content .panel-header {
    /* Use existing panel-header styles from main.css */
}

.aria-content .panel-content {
    /* Use existing panel-content styles from main.css */
}

/* MAYA Content Styling - Clean White Background */
.maya-content {
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.maya-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.maya-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maya-name {
    font-size: 18px;
    font-weight: 700;
}

.maya-tagline {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

.maya-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.maya-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafbfc;
}

/* MAYA Push Pin Area */
.maya-mentoring-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.maya-welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

.maya-welcome-message .maya-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 16px;
    display: block;
}

.maya-welcome-message h3 {
    color: #ff6b6b;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.maya-welcome-message p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Enhanced Push Pin Styling for MAYA */
.maya-push-pin {
    background: linear-gradient(135deg, #fff 0%, #ffe8e6 100%);
    border: 1px solid #ffcccc;
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.maya-push-pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.maya-push-pin.pin-high {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left-color: #ad1457;
}

.maya-push-pin.pin-medium {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left-color: #8e24aa;
}

.maya-push-pin.pin-low {
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
    border-left-color: #ba68c8;
}

.maya-pin-header {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.1) 0%, rgba(173, 20, 87, 0.1) 100%);
    padding: 12px 16px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maya-pin-icon {
    color: #ff6b6b;
    font-size: 16px;
}

.maya-pin-category {
    color: #6a1b9a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.maya-pin-content {
    padding: 0 16px 12px;
}

.maya-pin-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.maya-suggestion {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(142, 36, 170, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.4;
}

.maya-suggestion:hover {
    background: rgba(142, 36, 170, 0.1);
    border-color: rgba(142, 36, 170, 0.3);
    transform: translateX(2px);
}

.maya-suggestion:last-child {
    margin-bottom: 0;
}

.maya-pin-actions {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.05) 0%, rgba(173, 20, 87, 0.05) 100%);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(142, 36, 170, 0.1);
}

.maya-pin-apply {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-pin-apply:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #e55039 100%);
    transform: translateY(-1px);
}

.maya-pin-more {
    background: rgba(255, 255, 255, 0.8);
    color: #8e24aa;
    border: 1px solid rgba(142, 36, 170, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-pin-more:hover {
    background: rgba(142, 36, 170, 0.1);
    border-color: #8e24aa;
}

/* MAYA Controls */
.maya-controls {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    padding: 16px 20px;
    border-top: 1px solid rgba(142, 36, 170, 0.2);
}

.maya-generate-note-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.maya-generate-note-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #e55039 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.maya-confidence-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.maya-confidence-label {
    color: #e55039;
    font-size: 12px;
    font-weight: 600;
}

.maya-confidence-bar {
    flex: 1;
    height: 6px;
    background: rgba(142, 36, 170, 0.2);
    border-radius: 3px;
    margin: 0 12px;
    overflow: hidden;
}

.maya-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.maya-confidence-value {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

.maya-learning-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6c757d;
}

.learning-dot {
    width: 6px;
    height: 6px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Tab Notifications */
.tab-notification {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.maya-tab .tab-notification {
    background: #ad1457;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.maya-push-pin {
    animation: slideInFromRight 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analysis-tabs {
        position: sticky;
        top: 0;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .tab-button .tab-text {
        display: none;
    }
    
    .maya-header {
        padding: 12px 16px;
    }
    
    .maya-name {
        font-size: 16px;
    }
    
    .maya-mentoring-area {
        padding: 12px 16px;
    }
    
    .maya-controls {
        padding: 12px 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .analysis-panel {
        background: #2d3748;
    }
    
    .analysis-tabs {
        background: #4a5568;
        border-color: #718096;
    }
    
    .tab-button {
        color: #e2e8f0;
    }
    
    .tab-button.active {
        color: white;
    }
    
    .aria-content {
        background: #2d3748;
    }
    
    .maya-content {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 20%);
    }
    
    .maya-push-pin {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .maya-suggestion {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(142, 36, 170, 0.3);
        color: #e2e8f0;
    }
    
    .maya-controls {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #718096;
    }
}