body {
    background-color: #f5f5f5;
}

.progress {
    height: 20px;
    min-width: 50px;
}

.progress-bar {
    font-size: 11px;
    line-height: 20px;
    transition: width 0.5s ease;
}

.card-img-top {
    background: #f8f9fa;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

.badge {
    font-size: 0.8rem;
}

.modal {
    z-index: 1050;
}

.nav-tabs .nav-link {
    cursor: pointer;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
}

.btn {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .progress {
        height: 15px;
        min-width: 30px;
    }
    
    .progress-bar {
        font-size: 9px;
        line-height: 15px;
    }
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    cursor: pointer;
}

.pagination .page-item.disabled .page-link {
    cursor: not-allowed;
}

.list-group-item {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Card hover effect for inventory */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        width: 100%;
    }
}

/* Modal overlay */
.modal.show {
    display: block !important;
}

/* Instance status indicators */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Progress table responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .progress {
        height: 15px;
        min-width: 30px;
    }
    
    .progress-bar {
        font-size: 9px;
        line-height: 15px;
    }
}

/* Instance selector styling */
.input-group .btn {
    padding: 0.375rem 0.75rem;
}

.input-group .btn-outline-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group .form-select {
    min-width: 200px;
}

/* Instance status badges */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Modal */
.modal.show {
    display: block !important;
    background: rgba(0,0,0,0.5) !important;
}

.modal .btn-close {
    cursor: pointer;
}

/* Instance indicator in dropdown */
.form-select option .text-success,
.form-select option .text-danger,
.form-select option .text-warning {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-select {
        min-width: 150px;
    }
    
    .input-group .btn {
        margin-top: 5px;
    }
}