/* Additional styling for Materialverwaltung App */

/* Custom card styling */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status badges */
.badge {
    font-size: 0.85em;
    padding: 0.4em 0.8em;
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navigation active state */
.nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
}

/* Tab navigation inside dark navbar */
.navbar-dark .nav-tabs {
    border-bottom: none;
}

.navbar-dark .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 0.375rem;
    margin-right: 0.25rem;
    padding: 0.5rem 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-dark .nav-tabs .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .nav-tabs .nav-link.active {
    color: #212529;
    background-color: #ffffff;
    font-weight: 600;
}

/* Tab content spacing */
.tab-content {
    padding-top: 0.5rem;
}

/* Mobile: bequem tippbare Menü-Buttons */
@media (max-width: 991.98px) {
    .navbar-dark .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        margin-right: 0;
        margin-bottom: 0.25rem;
        border-radius: 0.375rem;
    }
}

/* Stock status colors */


.stock-low td {
    border-left: 4px solid #ffc107;
}

.stock-critical td {
    border-left: 4px solid #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9em;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    h2, h3 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .card-header, form, footer, .alert {
        display: none !important;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    .table {
        border: 1px solid #dee2e6;
    }
}
