/* Custom styles for GA4 Persona Chatbot */

/* Global Font */
body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #2d3748;
}

/* Remove double margins and clean spacing */
.section {
    padding: 1.5rem;
}

/* Clean Layout Styles */
.stats-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
}

.stats-box .title {
    color: white;
    margin-bottom: 0.5rem;
}

.stats-box .subtitle {
    color: rgba(255,255,255,0.9);
}

.client-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.client-avatar-new {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3273dc 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.section-spacing {
    margin-bottom: 2.5rem;
}

/* Hero Sections */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero.is-primary {
    background: linear-gradient(135deg, #3273dc 0%, #1e3a8a 100%);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stats-card .card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card .title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.stats-card .subtitle {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.3;
    font-weight: 500;
}

/* Client Cards */
.client-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.client-card .card-content {
    flex-grow: 1;
    padding: 1rem 1.25rem;
}

.client-card .card-header-title {
    padding: 1rem 1.25rem;
    border: none;
}

.client-card .card-footer {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.client-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3273dc 0%, #1e3a8a 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Persona Cards */
.persona-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.persona-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.persona-description {
    line-height: 1.4;
    min-height: 2.8rem;
}

/* Buttons */
.button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button.is-primary {
    background: linear-gradient(135deg, #3273dc 0%, #1e3a8a 100%);
    border: none;
}

.button.is-primary:hover {
    background: linear-gradient(135deg, #2366d1 0%, #1a2e7a 100%);
    transform: translateY(-1px);
}

.button.is-light {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.button.is-light:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.button.is-white {
    background: white;
    border: 1px solid rgba(255,255,255,0.2);
    color: #3273dc;
}

.button.is-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.button.is-info {
    background: #3298dc;
    border: none;
}

.button.is-info:hover {
    background: #2793d8;
    transform: translateY(-1px);
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.card-footer-item {
    transition: all 0.2s ease;
}

.card-footer-item:hover {
    background-color: rgba(50, 115, 220, 0.05);
}

/* Tags */
.tag {
    border-radius: 6px;
    font-weight: 500;
}

.tag.is-success {
    background-color: #48bb78;
    color: white;
}

.tag.is-warning {
    background-color: #ed8936;
    color: white;
}

.tag.is-light {
    background-color: #f7fafc;
    color: #4a5568;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .icon {
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

/* Modal */
.modal-card {
    border-radius: 12px;
    overflow: hidden;
}

.modal-card-head {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-card-foot {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Form Elements */
.input, .select select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.input:focus, .select select:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

/* Navigation */
.navbar.is-primary {
    background: linear-gradient(135deg, #3273dc 0%, #1e40af 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading animations */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* Level improvements */
.level {
    margin-bottom: 0;
}

.level-item {
    flex-shrink: 0;
}

/* Media object improvements */
.media-content {
    overflow: hidden;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .hero-body .level {
        display: block;
    }
    
    .level-right {
        margin-top: 1rem;
    }
    
    .columns.is-multiline .column {
        padding: 0.5rem;
    }
    
    .stats-card .title {
        font-size: 2rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
}

/* Chat specific styles */
.message-bubble .message {
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Welcome message styling */
.message.assistant-message {
    display: flex !important;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3273dc;
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #3273dc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content .content.is-small {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.user-message .message-body {
    border-radius: 18px 18px 4px 18px;
}

.persona-message .message-body {
    border-radius: 18px 18px 18px 4px;
}

.chat-container {
    height: 70vh;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: white;
}

.message-input {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.message-input:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

/* Accessibility improvements */
.button:focus,
.input:focus {
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.25);
}

/* Typing indicator animation */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Utility classes */
.is-fullheight {
    min-height: 100vh;
}

.has-text-overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clean up any potential duplicate elements */
.duplicate-footer {
    display: none;
}/* CACHE BUSTER 1750842596 */
