/* ====================== CSS VARIABLES ====================== */
:root {

    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --secondary-gradient: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    --accent-color: #00c6ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --master-color: #FFD700;
    --user-color: #00ff00;
    --bot-color: #8B5CF6;
    
   
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #ffffff;
    

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    

    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(248, 250, 252, 0.8);
    --footer-bg: rgba(248, 250, 252, 0.8);
    --modal-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    

    --transition-slow: 0.5s ease;
    --transition-normal: 0.3s ease;
    --transition-fast: 0.2s ease;
    --hover-lightness: 0.95;
}

/* ====================== BASE STYLES ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal);
}

body {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====================== SCROLLBAR STYLES ====================== */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--text-primary);
    border-radius: 5px;
}

div::-webkit-scrollbar {
    width: 8px;
}

div::-webkit-scrollbar-track {
    background: transparent;
}

div::-webkit-scrollbar-thumb {
    background-color: var(--text-primary);
    border-radius: 4px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-primary) transparent;
}

/* ====================== ANIMATIONS ====================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(106, 17, 203, 0.5); }
    50% { box-shadow: 0 0 30px rgba(106, 17, 203, 0.8); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ====================== UTILITY CLASSES ====================== */
.hidden {
    display: none !important;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
    height: 100%;
}

.section.active {
    display: flex;
    flex-direction: column;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--input-bg);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.status-indicator.online { background: var(--success-color); }
.status-indicator.away { background: var(--warning-color); }
.status-indicator.busy { background: var(--danger-color); }
.status-indicator.offline { background: var(--text-secondary); }