/* Custom styles for Vibe Council */

/* Persona cards styling */
.persona-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.persona-card.selected {
    border: 2px solid var(--bs-info);
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.persona-avatar {
    transition: all 0.3s ease;
}

.persona-card:hover .persona-avatar {
    transform: scale(1.1);
}

.selection-indicator {
    display: none;
    margin-top: 10px;
}

.persona-card.selected .selection-indicator {
    display: block;
}

/* Response cards styling */
.response-card {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.response-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.response-content {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 4px solid var(--bs-info);
}

/* Feedback visual indicators */
.feedback-bad-quality {
    background-color: #37301f !important; /* Muted yellow background for the whole card */
    border: 1px solid #facc15 !important;
}

.feedback-out-of-character {
    background-color: #372121 !important; /* Muted red background for the whole card */
    border: 1px solid #f87171 !important;
}

/* Quiz styling */
.quiz-option {
    cursor: pointer;
    display: block;
    width: 100%;
}

.quiz-option input[type="radio"] {
    display: none;
}

.option-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.option-card:hover {
    border-color: var(--bs-info);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.quiz-option input[type="radio"]:checked + .option-card {
    border-color: var(--bs-info);
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.option-content h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.question-card {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Quiz results styling */
.persona-match-card {
    transition: all 0.3s ease;
}

.persona-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.match-score .progress {
    height: 8px;
}

.alternative-match {
    transition: all 0.3s ease;
}

.alternative-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* History page styling */
.conversation-card {
    transition: all 0.3s ease;
}

.conversation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.conversation-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-question {
    border-left: 4px solid var(--bs-info);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.conversation-card .card-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .persona-card {
        margin-bottom: 1rem;
    }
    
    .response-content {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bs-info);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Textarea auto-resize */
textarea {
    resize: none;
    overflow-y: hidden;
}

/* Council display styling */
.council-member {
    text-align: center;
    transition: all 0.3s ease;
}

.council-member:hover {
    transform: scale(1.05);
}

/* Navigation improvements */
.navbar-brand {
    font-size: 1.5rem;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Button improvements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Form styling */
.form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-info);
}

/* Bootstrap-style display utility classes with !important for reliable toggling */
.d-none {
    display: none !important;
}
.d-flex {
    display: flex !important;
}
.d-block {
    display: block !important;
}
/* Fix for history card header text color in dark theme */
.response-card-history .card-header h6 {
    color: inherit; /* Inherit the theme's default (light) text color */
}