/**
 * Participant Intelligence Tabs Styles
 * Vertical tab labels with proper corner radius and centering
 */

/* Tab container styles for participant intelligence */
.participant-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    transition: all 250ms ease;
}

/* Vertical tab label - the text that's rotated */
.participant-tab-label,
.tab-label-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 12px 8px;
    background: rgba(30, 35, 45, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 110, 130, 0.35);
    color: rgba(205, 215, 245, 0.82);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 250ms ease;
    white-space: nowrap;

    /* Rounded corners for all corners */
    border-radius: 8px;

    /* Center text vertically within the available space */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Ensure minimum width for better appearance */
    min-width: 32px;

    /* Position text properly between icon bottom and tile bottom */
    position: relative;
}

/* Adjust vertical centering when there's an icon above */
.participant-tab.has-icon .participant-tab-label,
.participant-tab.has-icon .tab-label-vertical {
    /* Account for icon space - center between icon bottom and container bottom */
    margin-top: auto;
    margin-bottom: 16px;
}

/* Icon positioning if present */
.participant-tab-icon {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: rgba(168, 85, 247, 0.8);
    z-index: 1;
}

/* Active tab styles */
.participant-tab.active .participant-tab-label,
.participant-tab.active .tab-label-vertical {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(235, 240, 255, 0.92);
}

/* Hover styles */
.participant-tab:hover .participant-tab-label,
.participant-tab:hover .tab-label-vertical {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(235, 240, 255, 0.92);
}

/* Selected/focused state */
.participant-tab.selected .participant-tab-label,
.participant-tab.selected .tab-label-vertical {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Ensure proper spacing between tabs */
#participantTabs {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    padding-bottom: 8px;
    min-height: 120px;
}

/* Content area adjustments */
#participantIntelligenceContent {
    padding-top: 12px;
    min-height: 200px;
}

/* Fix for misaligned backgrounds */
.participant-tab-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Ensure background covers full height including corners */
.tab-vertical-background {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 35, 45, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 110, 130, 0.35);
    border-radius: 8px;
    z-index: -1;
}