/* Compact Utility Classes */
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.4rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.4rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.4rem !important; }
.mr-3 { margin-right: 0.75rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.4rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.ml-auto { margin-left: auto !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.4rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.py-2 { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* Compact responsive breakpoints */
@media (max-width: 576px) {
    html { font-size: 13px; }
    
    .container { padding-left: 8px; padding-right: 8px; }
    
    .card-body { padding: 0.75rem; }
    
    .btn { 
        padding: 0.35rem 0.7rem; 
        font-size: 0.8rem; 
    }
    
    .table { font-size: 0.8rem; }
    
    .console-output,
    .output-container {
        height: 280px;
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    html { font-size: 12px; }
    .navbar, .btn, #add-config-form { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}