/* Sidebar Styles */

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar content wrapper for scrolling */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Logo Section */
.logo-section {
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 10;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), #6366f1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px var(--accent-glow);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    position: relative;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
}

/* Panel Styles */
.panel {
    margin: 12px 12px 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.1);
}

.panel-header {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 6px;
    font-size: 14px;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Provider Panel */
.provider-list {
    padding: 12px;
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(2px);
}

.provider-item:last-child {
    margin-bottom: 0;
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.provider-avatar.openai {
    background: linear-gradient(135deg, #00a67e, #00c896);
}

.provider-avatar.claude {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.provider-avatar.ollama {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.provider-avatar.together {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.provider-avatar.web {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.provider-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.provider-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.3s ease;
}

.provider-item.active .provider-status {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: glow 2s ease-in-out infinite;
}

/* Plugin Panel */
.plugin-list {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.plugin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.plugin-item:hover {
    background: var(--bg-hover);
}

.plugin-name {
    color: var(--text-secondary);
}

.plugin-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.plugin-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.plugin-badge.inactive {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-tertiary);
}

/* Stats Panel */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
}

.stat-item {
    background: var(--bg-tertiary);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
