.icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

.form-select-sm, .form-control-sm {
    border-radius: 6px;
}

.badge {
    border-radius: 6px;
    font-size: 0.75em;
}

.btn-sm {
    border-radius: 6px;
}

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

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: rgba(248,249,250,.8);
    border-radius: 12px 12px 0 0 !important;
}

.table-success {
    --bs-table-accent-bg: rgba(25, 135, 84, 0.1);
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Large Checkbox Styling */
.form-check-input-large {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.form-check-input-large:checked {
    background-color: #198754;
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input-large:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input-large:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.5;
}

.form-check-input-large:hover:not(:disabled) {
    border-color: #198754;
    box-shadow: 0 0 0 0.125rem rgba(25, 135, 84, 0.15);
    transform: scale(1.05);
}

.form-check-label-large {
    padding-left: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.form-check-label-large:hover {
    color: #198754;
}

.form-check-label-large .text-muted {
    color: #6c757d !important;
}

.form-check-label-large .text-success {
    color: #198754 !important;
}

/* Alternative Button Style Checkbox */
.btn-checkbox {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.btn-checkbox:hover {
    background-color: #e9ecef;
    border-color: #198754;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-checkbox.active {
    background-color: #198754;
    border-color: #198754;
    color: white;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.btn-checkbox:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-checkbox:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Row Animation and Visual Feedback */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr.table-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-left: 4px solid #0dcaf0;
}

.table tbody tr.table-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border-left: 4px solid #198754;
}

/* Input Group Styling */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-size: 0.75rem;
    color: #6c757d;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.125rem rgba(220, 53, 69, 0.25);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
}

/* Tooltip-like styling for validation messages */
.invalid-feedback {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Better hover states */
.form-select:hover:not(:disabled) {
    border-color: #86b7fe;
}

.form-control:hover:not(:disabled) {
    border-color: #86b7fe;
}

/* Loading state improvements */
.btn-checkbox:active {
    transform: scale(0.95);
}

/* Mobile responsive improvements */

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

.table tbody tr.table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.quantity-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.animate-pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .icon-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
