@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --secondary: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111827;
    color: #f9fafb;
}

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

::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animation for message bubbles */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* Character item styling */
.character-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.character-item:hover {
    background-color: #374151;
}

.character-item.selected {
    background-color: #1f2937;
    border-left: 3px solid var(--primary);
}

.character-color-blue { border-left: 3px solid #3b82f6; }
.character-color-green { border-left: 3px solid #10b981; }
.character-color-purple { border-left: 3px solid #8b5cf6; }
.character-color-red { border-left: 3px solid #ef4444; }
.character-color-yellow { border-left: 3px solid #f59e0b; }
.character-color-pink { border-left: 3px solid #ec4899; }

/* Message styling */
.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.message-user {
    background-color: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-assistant {
    background-color: #374151;
    color: #f9fafb;
    border-bottom-left-radius: 0.25rem;
}

.message-system {
    background-color: #6b7280;
    color: #f9fafb;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    font-size: 0.875rem;
}

/* Group chat styling */
.group-message {
    border: 1px solid #4b5563;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.group-message-header {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.group-message-content {
    font-size: 0.875rem;
}

/* Status indicators */
.status-connected { background-color: #10b981 !important; }
.status-disconnected { background-color: #ef4444 !important; }
.status-warning { background-color: #f59e0b !important; }

/* Debug panel */
.debug-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid #374151;
}

.debug-entry:last-child {
    border-bottom: none;
}

.debug-success { color: #10b981; }
.debug-error { color: #ef4444; }
.debug-info { color: #3b82f6; }

/* Modal styling */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}
/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: -100%;
        z-index: 40;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
}
/* Status message animation */
#export-import-status {
    transition: opacity 0.3s ease;
}

/* Validation modal styles */
#validation-modal {
    backdrop-filter: blur(4px);
}

#validation-results::-webkit-scrollbar {
    width: 6px;
}

#validation-results::-webkit-scrollbar-track {
    background: #374151;
}

#validation-results::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.validation-item {
    border-left-width: 4px;
}

.validation-item.valid {
    border-left-color: #10b981;
}

.validation-item.invalid {
    border-left-color: #ef4444;
}

.validation-item.warning {
    border-left-color: #f59e0b;
}

/* Copy fallback textarea */
.copy-fallback {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}
