/* ═══════════════════════════════════════════════════════════════════
   AI002@QTH.EE CHAT BOT - Styles
   ═══════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --user-bg: #e3f2fd;
    --ai-bg: #f1f8e9;
    --header-height: 120px;
    --footer-height: 130px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

/* ═══ HEADER ═══ */
.chat-header {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1a1a1a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.avatar-letter {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bot-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.bot-email {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #f44336;
    box-shadow: 0 0 10px #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bot-settings {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 5px;
    color: #333;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-icon {
    font-size: 14px;
}

.setting-label {
    color: #555;
    font-weight: 500;
}

.setting-value {
    font-weight: bold;
    background: rgba(0,0,0,0.08);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ═══ CHAT AREA ═══ */
.chat-main {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: var(--bg-color);
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    position: relative !important;
}

.chat-messages {
    flex: 1 !important;
    min-height: 400px !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

#chatlog-display,
.chat-messages pre {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f5f5f5 !important;
    border-radius: 10px !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    font-family: monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    position: relative !important;
    z-index: 10 !important;
    min-height: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ═══ WELCOME MESSAGE ═══ */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.welcome-message h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.welcome-message p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-text {
    font-size: 0.9em;
    color: #666;
}

/* ═══ MESSAGE BUBBLES ═══ */
.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
    display: block;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.message-metadata {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.metadata-badge {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.user-message .metadata-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.ai-message .metadata-badge {
    background: #f1f8e9;
    color: #558b2f;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    overflow: hidden;
}

.message-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.message-sender {
    font-weight: bold;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.message-body {
    padding: 15px;
    border-radius: 15px;
    background: var(--ai-bg);
    border: 1px solid #dcedc8;
    word-wrap: break-word;
    line-height: 1.5;
    display: block;
    visibility: visible;
    opacity: 1;
    color: var(--text-color);
    min-height: 20px;
}

.message.user-message .message-body {
    background: var(--user-bg);
    border: 1px solid #bbdefb;
}

.message.ai-message .message-body {
    background: var(--ai-bg);
    border: 1px solid #dcedc8;
}

/* Chatlog messages */
.chatlog-message {
    display: block !important;
    margin-bottom: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 50px !important;
}

.chatlog-message.user-message {
    text-align: right;
}

.chatlog-message.ai-message {
    text-align: left;
}

.chatlog-message .message-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 20px !important;
    max-width: 80% !important;
    margin: 10px auto !important;
    padding: 15px !important;
    border-radius: 15px !important;
    background: var(--ai-bg) !important;
    border: 1px solid #dcedc8 !important;
    color: var(--text-color) !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    position: relative !important;
    z-index: 2 !important;
}

.chatlog-message.user-message .message-body {
    background: var(--user-bg) !important;
    border: 1px solid #bbdefb !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.chatlog-message.ai-message .message-body {
    background: var(--ai-bg) !important;
    border: 1px solid #dcedc8 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.chatlog-message .message-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.message-bubble {
    padding: 15px;
    border-radius: 15px;
    max-width: 80%;
    margin-left: 42px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: var(--user-bg);
    border: 1px solid #bbdefb;
}

.message.ai .message-bubble {
    background: var(--ai-bg);
    border: 1px solid #dcedc8;
}

.message-subject {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

/* ═══ INPUT AREA ═══ */
.chat-input-container {
    background: white;
    border-top: 2px solid var(--border-color);
    padding: 15px 20px;
}

/* API Selection */
.api-selection-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.api-selection-item {
    display: flex;
    align-items: center;
}

.api-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

.api-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Agent Selection */
.agent-selection-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.agent-selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.agent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agent-select-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.agent-select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.agent-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.agent-select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.send-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-icon {
    font-size: 18px;
}

/* ═══ SETTINGS MODAL ═══ */
.modal-settings {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.settings-content {
    padding: 15px 0;
}

.settings-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.settings-data {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.setting-value {
    color: #2196F3;
    font-weight: 600;
    font-size: 13px;
}

.agent-settings-list,
.model-settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-setting-item,
.model-setting-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    border-left: 3px solid var(--primary-color);
}

.agent-setting-item h5 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
}

.agent-setting-item .setting-item {
    padding: 4px 0;
}

.model-setting-item {
    border-left-color: var(--secondary-color);
}

.model-setting-item .setting-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.model-setting-item .model-name {
    font-weight: 600;
    color: #555;
}

.model-setting-item .model-value {
    color: #2196F3;
    font-weight: 500;
}

.settings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    font-size: 11px;
    color: #666;
}

.settings-update-time {
    font-weight: 500;
}

.settings-refresh-info {
    font-style: italic;
}

/* ═══ FOOTER ═══ */
.chat-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.separator {
    color: #ccc;
}

/* ═══ MODAL ═══ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

/* Logi modal (suurem) */
.modal-logs {
    max-width: 90%;
    max-height: 85vh;
    margin: 2% auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.logs-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.refresh-logs-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.refresh-logs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.refresh-logs-btn:active {
    transform: translateY(0);
}

.logs-content {
    flex: 1;
    overflow-y: auto;
    background: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 65vh;
}

.logs-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333;
}

/* Logi content scrollbar */
.logs-content::-webkit-scrollbar {
    width: 10px;
}

.logs-content::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 5px;
}

.logs-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.logs-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.info-content {
    padding: 10px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-weight: 500;
    color: #555;
}

.info-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* ═══ LOADING ═══ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .bot-settings {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .setting-item {
        font-size: 11px;
    }
    
    .header-actions {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .bot-info h1 {
        font-size: 20px;
    }
    
    .bot-email {
        font-size: 12px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    .instructions ol {
        font-size: 13px;
    }
}

/* ═══ VISITOR INFO MODAL ═══ */
.modal-visitor {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.visitor-info-content {
    padding: 15px 0;
}

.visitor-loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.visitor-data {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visitor-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
}

.visitor-section:nth-child(2) {
    border-left-color: #2196F3;
}

.visitor-section:nth-child(3) {
    border-left-color: #FF9800;
}

.visitor-section:nth-child(4) {
    border-left-color: #9C27B0;
}

.visitor-section:nth-child(5) {
    border-left-color: #00BCD4;
}

.visitor-section:nth-child(6) {
    border-left-color: #E91E63;
}

.visitor-section:nth-child(7) {
    border-left-color: #607D8B;
}

.visitor-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 15px;
}

.visitor-item:last-child {
    border-bottom: none;
}

.visitor-label {
    font-weight: 500;
    color: #555;
    font-size: 13px;
    flex-shrink: 0;
    min-width: 140px;
}

.visitor-value {
    color: #1976d2;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    word-break: break-all;
}

.visitor-value-small {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    max-width: 350px;
    line-height: 1.4;
}

.visitor-footer {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ffcc80;
}

.visitor-note {
    font-size: 12px;
    color: #e65100;
    font-weight: 500;
}

.visitor-update-time {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 8px;
}

.refresh-visitor-btn {
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.refresh-visitor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.refresh-visitor-btn:active {
    transform: translateY(0);
}

/* Visitor info modal scrollbar */
.modal-visitor::-webkit-scrollbar {
    width: 8px;
}

.modal-visitor::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-visitor::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.modal-visitor::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive visitor modal */
@media (max-width: 768px) {
    .modal-visitor {
        margin: 5% 10px;
        max-width: calc(100% - 20px);
    }
    
    .visitor-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .visitor-label {
        min-width: auto;
    }
    
    .visitor-value {
        text-align: left;
    }
    
    .visitor-value-small {
        max-width: 100%;
    }
}

/* ═══ ANIMATIONS ═══ */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 1s linear infinite;
}

