/* Sidebar */
#sidebar {
    min-width: 220px;
    max-width: 220px;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

#sidebar .nav-link {
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

#sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.2em;
    text-align: center;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main content */
.main-content {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Tables */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

/* Status badges */
.badge-protocol {
    font-size: 0.75rem;
    font-weight: 500;
}

/* EDI content display */
.edi-content {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 0.375rem;
}

/* Activity feed */
.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Quick action buttons */
.btn-quick {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Auto-response cards */
.rule-card {
    border-left: 3px solid #0d6efd;
    margin-bottom: 0.5rem;
}

.rule-card.rule-disabled {
    border-left-color: #6c757d;
    opacity: 0.7;
}

/* Toggle switch styling */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Preview area */
.preview-area {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 1rem;
    border-radius: 0.375rem;
    min-height: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        min-width: 60px;
        max-width: 60px;
    }

    #sidebar .nav-link span,
    #sidebar .sidebar-header h5 {
        display: none;
    }
}
