/* Main Styles */
body {
    background-color: #f8f9fa;
}

/* Roundtable Styles */
.roundtable-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.roundtable {
    position: relative;
    width: 80%;
    height: 80%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f0f4f8;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 15px solid #d8e2ef;
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.table-center img {
    max-width: 80%;
    max-height: 80%;
}

/* Executive Seats */
.executive-seat {
    position: absolute;
    width: 100px;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.executive-seat:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.executive-seat.active {
    transform: scale(1.1);
}

.executive-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.executive-seat.active .executive-avatar {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.executive-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.executive-info {
    margin-top: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.executive-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.executive-title {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Indicators */
.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-online {
    background-color: #28a745;
}

.status-away {
    background-color: #ffc107;
}

.status-offline {
    background-color: #6c757d;
}

/* Reaction Indicators */
.reaction-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 15;
    animation: pulse 1.5s infinite;
    border: 2px solid #fff;
}

.reaction-indicator i {
    font-size: 16px;
}

.reaction-thinking {
    background-color: #17a2b8;
    color: #fff;
}

.reaction-speaking {
    background-color: #28a745;
    color: #fff;
}

.reaction-hand {
    background-color: #ffc107;
    color: #212529;
    animation: attention-pulse 1.5s infinite;
}

.reaction-question {
    background-color: #6f42c1;
    color: #fff;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes attention-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    background-color: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    z-index: 50;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid #ffc107;
}

.speech-bubble.active {
    opacity: 1;
    transform: scale(1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-right: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
    transform: rotate(45deg);
}

.speech-bubble.top::after {
    bottom: -9px;
    left: 20px;
    transform: rotate(45deg);
    border-left: none;
    border-top: none;
}

.speech-bubble.right::after {
    left: -9px;
    top: 20px;
    transform: rotate(135deg);
    border-right: none;
    border-bottom: none;
}

.speech-bubble.bottom::after {
    top: -9px;
    right: 20px;
    transform: rotate(-135deg);
    border-right: none;
    border-bottom: none;
}

.speech-bubble.left::after {
    right: -9px;
    bottom: 20px;
    transform: rotate(-45deg);
    border-left: none;
    border-top: none;
}

.bubble-content {
    font-size: 0.9rem;
}

.bubble-content p {
    margin-bottom: 10px;
}

.hear-from-btn {
    width: 100%;
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Intervention Bubbles */
.intervention-bubble {
    position: absolute;
    background-color: #fff;
    border-radius: 20px;
    padding: 10px 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    z-index: 20;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.intervention-bubble.active {
    opacity: 1;
    transform: scale(1);
}

.intervention-bubble::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    transform: rotate(45deg);
}

.intervention-bubble.top::after {
    bottom: -7px;
    left: 20px;
}

.intervention-bubble.right::after {
    left: -7px;
    top: 20px;
}

.intervention-bubble.bottom::after {
    top: -7px;
    right: 20px;
}

.intervention-bubble.left::after {
    right: -7px;
    bottom: 20px;
}

.intervention-text {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.intervention-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/* User Seat */
.user-seat {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    text-align: center;
    z-index: 10;
}

.user-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.user-avatar i {
    font-size: 36px;
    color: #6c757d;
}

.user-info {
    margin-top: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Question Input */
.question-input-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 30;
    transition: all 0.3s ease;
}

.question-input-container:focus-within {
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.2);
}

.question-input-form {
    display: flex;
    align-items: center;
}

.question-input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.2s;
}

.question-input:focus {
    background-color: #f8f9fa;
}

.question-submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.question-submit:hover {
    background-color: #0069d9;
}

/* Discussion Transcript */
.discussion-transcript {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    background-color: #fff;
}

.message {
    margin-bottom: 15px;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

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

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
}

.message-title {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 5px;
}

.message-time {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-left: auto;
}

.message-content {
    padding-left: 40px;
}

.user-message .message-content {
    font-style: italic;
}

.executive-message {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid #007bff;
}

.system-message {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 10px;
}

.welcome-message {
    background-color: #e7f1ff;
    border-left: 3px solid #007bff;
}

/* Suggested Questions */
.suggested-questions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.suggested-question-btn {
    background-color: #e7f1ff;
    border: 1px solid #b8daff;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s;
}

.suggested-question-btn:hover {
    background-color: #007bff;
    color: #fff;
}

/* Executive Insights */
.executive-insights {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.executive-insights li {
    flex: 1 1 calc(50% - 10px);
    margin-bottom: 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 2px solid #007bff;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.executive-insights li:hover {
    background-color: #e7f1ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.executive-relevance {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

/* Executive Response Message */
.executive-response-message {
    background-color: #f8f9fa;
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    padding: 8px;
}

.executive-response-header {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.executive-response-header h5 {
    color: #495057;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.executive-insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.executive-response-message .insight-avatar-container {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
}

.executive-response-message .insight-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-avatar-container {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
}

.insight-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.executive-info-compact {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.executive-info-compact strong {
    font-size: 0.85rem;
}

.executive-title-compact {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Executive Choice Buttons */
.executive-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.executive-choice-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    margin-bottom: 0;
    background-color: #fff;
    border: 1px solid #007bff;
    color: #007bff;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.executive-choice-btn:hover {
    background-color: #e7f1ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 123, 255, 0.2);
}

.executive-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.typing-indicator .dot {
    display: inline-block;
    animation: typing-dot 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

/* Thinking Animation */
.thinking-animation {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding-left: 40px;
}

.thinking-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thinking-dots {
    display: flex;
    align-items: center;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #007bff;
    margin-right: 5px;
    opacity: 0.6;
}

.thinking-dot:nth-child(1) {
    animation: thinking-dot-animation 1.4s infinite;
}

.thinking-dot:nth-child(2) {
    animation: thinking-dot-animation 1.4s infinite 0.2s;
}

.thinking-dot:nth-child(3) {
    animation: thinking-dot-animation 1.4s infinite 0.4s;
}

@keyframes thinking-dot-animation {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Follow-up Questions */
.follow-up-questions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dee2e6;
}

.follow-up-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.follow-up-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    color: #495057;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-up-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Transition Messages */
.transition-message {
    font-style: italic;
    color: #6c757d;
    margin: 10px 0;
    padding-left: 40px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .roundtable {
        width: 90%;
    }
    
    .executive-seat {
        width: 80px;
    }
    
    .executive-avatar {
        width: 50px;
        height: 50px;
    }
    
    .table-center {
        width: 80px;
        height: 80px;
    }
    
    .executive-insights {
        flex-direction: column;
    }
    
    .executive-insights li {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .roundtable-container {
        height: 500px;
    }
    
    .executive-seat {
        width: 60px;
    }
    
    .executive-avatar {
        width: 40px;
        height: 40px;
    }
    
    .executive-info {
        display: none;
    }
    
    .intervention-bubble {
        max-width: 200px;
    }
    
    .suggested-questions-container {
        flex-direction: column;
    }
}
