/* Sidebar styles for new UI */

#sidebar {
    min-width: 280px;
    max-width: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

#sidebar.active {
    margin-left: -280px;
}

.sidebar-header {
    background-color: #212529;
}

.sidebar-link {
    color: #adb5bd;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #fff;
    background-color: #495057;
    text-decoration: none;
}

.sidebar-link.active {
    color: #fff;
    background-color: #0d6efd;
}

.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-link .badge {
    margin-left: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #212529;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -280px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
    }
}

/* Page content */
.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Connection status in sidebar */
.sidebar-footer .connection-status {
    font-size: 0.875rem;
}

.sidebar-footer .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.sidebar-footer .status-indicator.connected {
    background-color: #28a745;
}

.sidebar-footer .status-indicator.disconnected {
    background-color: #dc3545;
}

.sidebar-footer .status-indicator.connecting {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Logo styling for transparent logos */
.sidebar-header img {
    /* No background needed for transparent logos */
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.sidebar-header img:hover {
    transform: scale(1.05);
}

/* Sidebar brand text */
.sidebar-header .brand-text {
    font-family: 'Futura', 'Futura-Medium', 'Futura PT', 'Century Gothic', 'Avant Garde', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: white;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.sidebar-header h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    overflow: hidden;
}