/* Reusable Right-Side Slider Component */

.details-slider {
    position: fixed;
    top: 56px;
    right: -500px;
    width: 500px;
    height: calc(100vh - 56px);
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.details-slider.show {
    right: 0;
}

.details-slider .slider-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.details-slider .slider-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.details-slider .slider-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
    padding: 0;
    margin-left: 15px;
}

.details-slider .slider-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.details-slider .slider-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.details-slider .slider-body .detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.details-slider .slider-body .detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.details-slider .slider-body .detail-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-slider .slider-body .detail-row {
    display: flex;
    margin-bottom: 12px;
}

.details-slider .slider-body .detail-row:last-child {
    margin-bottom: 0;
}

.details-slider .slider-body .detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.details-slider .slider-body .detail-value {
    width: 60%;
    font-size: 12px;
    color: var(--text-primary);
}

.details-slider .slider-body .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.details-slider .slider-body .action-buttons .btn {
    flex: 1;
    min-width: 120px;
    font-size: 11px;
    padding: 6px 12px;
}

.details-slider .slider-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Overlay for slider */
.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .details-slider {
        width: 100%;
        right: -100%;
    }
}

/* Payment slider specific (narrower) */
.payment-details-slider {
    width: 450px;
    right: -450px;
}

@media (max-width: 768px) {
    .payment-details-slider {
        width: 100%;
        right: -100%;
    }
}

