/* Custom CSS for Deeku AI Platform */
:root {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --sidebar-bg: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Prevent body scrolling */
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-inner {
    padding: 1.5rem;
    flex: 1;
}

.brand-logo {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.bot-selector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    height: 100vh; /* Changed from min-height to height */
    overflow-y: auto; /* Enable scrolling for main content */
}

/* Fix for sidebar scrolling issue */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 16rem; /* 64 */
    z-index: 40;
    overflow-y: auto;
}

.main-content {
    margin-left: 16rem; /* 64 */
}

@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Additional styles for sidebar */
.sidebar {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

.bot-selector {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='white' stroke-opacity='0.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center right 1rem;
    padding-right: 2.5rem;
}

/* Remove default select arrow in Firefox */
.bot-selector {
    -moz-appearance: none;
    text-overflow: ellipsis;
}

/* Remove default select arrow in IE */
.bot-selector::-ms-expand {
    display: none;
}

/* Modal styles */
.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) {
    display: flex;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}