/* Custom styles for Nginx Remote Manager */

/* Sidebar */
#sidebar {
    transition: margin-left 0.3s ease;
}

#sidebar.collapsed {
    margin-left: -250px;
}

.list-group-item {
    border-radius: 0;
    border-left: 3px solid transparent;
}

.list-group-item.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}

.list-group-item:hover:not(.active) {
    background-color: var(--bs-tertiary-bg);
}

/* Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

/* Status badges */
.status-online {
    background-color: var(--bs-success);
    animation: pulse 2s infinite;
}

.status-offline {
    background-color: var(--bs-danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: var(--bs-tertiary-bg);
}

.table-responsive {
    overflow: visible;
}

.table-responsive .dropdown-menu {
    position: absolute;
    z-index: 1050;
}

/* Config editor */
.config-editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 400px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        z-index: 1000;
        margin-left: -250px;
    }
    
    #sidebar.show {
        margin-left: 0;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

/* Loading spinner */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Action buttons */
.btn-icon {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* Form improvements */
.form-label {
    font-weight: 500;
}

/* Code blocks */
pre {
    background-color: var(--bs-tertiary-bg);
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
}

code {
    color: var(--bs-pink);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--bs-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
