/* Premium Logistics Reports Styles */

.sticky-footer {
    position: sticky;
    bottom: 1rem;
    z-index: 1020;
    transition: all 0.3s ease;
}

.section-card {
    transition: all 0.2s ease;
}

.section-card:hover {
    border-color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

.customize-fields-btn {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bs-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s;
}

.customize-fields-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--bs-primary);
    text-decoration: none !important;
    transform: scale(1.02);
}

/* Hover Grow Animation */
.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
    transition-property: transform;
}

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
    transform: scale(1.05);
}

.sticky-footer .btn-white:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

.sticky-footer .input-group {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sticky-footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.sticky-footer .form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: none;
    color: white;
}

/* Spinner Animation */
.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fix Select2 in Bootstrap input-group */
.input-group > .select2-container--default {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group > .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #e5e7eb !important; /* Added border */
    background: #ffffff !important; /* White background */
    display: flex !important;
    align-items: center !important;
}

/* Remove border when inside our rounded input-group to maintain the seamless look in frontend */
.input-group.border.rounded-3 > .select2-container--default .select2-selection--single {
    border: 0 !important;
    background: transparent !important;
}

.input-group > .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 12px !important;
}

.input-group > .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.form-switch .form-check-input {
    cursor: pointer;
    width: 2.5em;
}
