/* Admin UI Styles */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Collection Management Styles */
.config-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-type-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.order-section {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 150px;
}

.order-section h7 {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Sortable List Styles */
.sortable-list {
    min-height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #fff;
    transition: all 0.2s;
}

.sortable-list:hover {
    border-color: #6c757d;
}

.sortable-list.sortable-drag {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.collection-item {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    padding: 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.collection-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.collection-item.sortable-ghost {
    opacity: 0.4;
}

.collection-item.sortable-drag {
    transform: rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.collection-item .handle {
    cursor: grab;
    color: rgba(255, 255, 255, 0.7);
}

.collection-item .handle:active {
    cursor: grabbing;
}

.collection-item .order-num {
    font-weight: bold;
    min-width: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.collection-item .collection-name {
    flex-grow: 1;
    font-weight: 500;
}

.empty-order {
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* First Order Styling */
.first-order .collection-item {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
}

/* Second Order Styling */
.second-order .collection-item {
    background: linear-gradient(45deg, #6c757d, #5c636a);
}

/* Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.input-group {
    margin-bottom: 0.5rem;
}

.remove-input {
    cursor: pointer;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0a3622;
}

.alert-danger {
    background-color: #f8d7da;
    color: #58151c;
}

/* Button Styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .config-item {
        padding: 0.75rem;
    }
    
    .order-section {
        margin-bottom: 1rem;
    }
    
    .collection-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Table Styles */
.table-responsive {
    border-radius: 0.375rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.badge {
    font-weight: 500;
}

/* Dashboard Styles */
.display-4 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-body.text-center {
    padding: 2rem;
}

.card-body.text-center i.display-4 {
    margin-bottom: 1rem;
}