// Internet Payment Details Modal Styles
.internet-payment-details {
    .card {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        animation: slideInUp 0.3s ease-out;
    }

    .card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 1.5rem;
        border-bottom: none;
        
        h5 {
            font-weight: 600;
            letter-spacing: -0.02em;
            
            i {
                font-size: 1.25rem;
            }
        }
    }

    .card-body {
        padding: 1.5rem;
        background: #f8f9fa;
    }

    // Section Headers
    .section-header {
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e9ecef;
        position: relative;
        
        i {
            color: #667eea;
            font-size: 1rem;
        }
        
        &::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
    }

    // Info Cards
    .info-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease;
        
        &:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }
    }

    // Custom Table
    .details-table {
        width: 100%;
        margin-bottom: 0;
        
        tr {
            transition: background-color 0.2s ease;
            
            &:hover {
                background-color: rgba(102, 126, 234, 0.05);
            }
        }
        
        td {
            padding: 0.75rem 0.5rem;
            border: none;
            font-size: 0.875rem;
            
            &:first-child {
                font-weight: 600;
                color: #495057;
                width: 45%;
            }
            
            &:last-child {
                color: #212529;
            }
        }
    }

    // Status Badges
    .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.75rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        
        i {
            margin-right: 0.35rem;
            font-size: 0.7rem;
        }
        
        &.status-paid {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }
        
        &.status-pending {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }
        
        &.status-overdue {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }
        
        &.status-cancelled {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            color: white;
        }
    }

    // Amount Styling
    .amount-positive {
        color: #10b981;
        font-weight: 700;
        font-size: 1.1rem;
    }
    
    .amount-negative {
        color: #ef4444;
        font-weight: 700;
        font-size: 1.1rem;
    }
    
    .amount-large {
        font-size: 1.25rem;
        font-weight: 800;
    }

    // Code Blocks
    .code-block {
        background: #f1f3f5;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-family: 'Monaco', 'Courier New', monospace;
        font-size: 0.8rem;
        color: #495057;
        display: inline-block;
    }

    // Due Date Alerts
    .due-alert {
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 500;
        margin-top: 0.5rem;
        
        &.due-overdue {
            background: #fee2e2;
            color: #dc2626;
            border-left: 3px solid #dc2626;
        }
        
        &.due-soon {
            background: #fed7aa;
            color: #ea580c;
            border-left: 3px solid #ea580c;
        }
        
        &.due-upcoming {
            background: #dbeafe;
            color: #2563eb;
            border-left: 3px solid #2563eb;
        }
    }

    // Action Buttons Container
    .action-buttons {
        display: flex;
        gap: 0.75rem;
        justify-content: flex-end;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e9ecef;
        
        .btn {
            padding: 0.5rem 1.25rem;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.2s ease;
            
            i {
                margin-right: 0.5rem;
            }
            
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }
            
            &:active {
                transform: translateY(0);
            }
        }

        // Button variants
        .btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border: none;
            position: relative;
            
            &:hover {
                background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
                box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
            }
            
            // Tooltip for full details button
            &::before {
                content: 'Opens in new tab';
                position: absolute;
                bottom: 100%;
                left: 50%;
                transform: translateX(-50%);
                background: #1f2937;
                color: white;
                padding: 0.25rem 0.5rem;
                border-radius: 4px;
                font-size: 0.7rem;
                white-space: nowrap;
                opacity: 0;
                visibility: hidden;
                transition: all 0.2s ease;
                margin-bottom: 5px;
                z-index: 1000;
                pointer-events: none;
            }
            
            &:hover::before {
                opacity: 1;
                visibility: visible;
            }
        }
        
        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border: none;
            
            &:hover {
                background: linear-gradient(135deg, #059669 0%, #047857 100%);
            }
        }
        
        .btn-info {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            border: none;
            color: white;
            
            &:hover {
                background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            }
        }
        
        .btn-secondary {
            background: #e9ecef;
            border: none;
            color: #495057;
            
            &:hover {
                background: #dee2e6;
                color: #212529;
            }
        }
    }

    // Custom Dropdown with Scroll
    .custom-dropdown {
        position: relative;
        display: inline-block;
        
        .custom-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            min-width: 220px;
            max-height: 400px; // Maximum height before scrolling
            overflow-y: auto; // Enable vertical scrolling
            overflow-x: hidden; // Hide horizontal scroll
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            
            // Custom scrollbar styling
            &::-webkit-scrollbar {
                width: 6px;
            }
            
            &::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 3px;
            }
            
            &::-webkit-scrollbar-thumb {
                background: #c1c1c1;
                border-radius: 3px;
                
                &:hover {
                    background: #a8a8a8;
                }
            }
            
            &.show {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
            
            .dropdown-item {
                display: flex;
                align-items: center;
                padding: 0.6rem 1rem;
                color: #1f2937;
                text-decoration: none;
                transition: background 0.2s ease;
                white-space: nowrap;
                
                i {
                    width: 1.25rem;
                    font-size: 0.875rem;
                }
                
                &:hover {
                    background: #f3f4f6;
                }
                
                &.text-danger {
                    color: #dc2626;
                    
                    &:hover {
                        background: #fee2e2;
                    }
                }
            }
            
            .dropdown-divider {
                height: 1px;
                background: #e5e7eb;
                margin: 0.25rem 0;
            }
        }
    }

    // Grid Layout
    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    // Responsive Design
    @media (max-width: 768px) {
        .card-body {
            padding: 1rem;
        }
        
        .info-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .details-table td {
            padding: 0.5rem 0.25rem;
            
            &:first-child {
                width: 40%;
            }
        }
        
        .action-buttons {
            flex-wrap: wrap;
            
            .btn {
                flex: 1;
                text-align: center;
            }
            
            // Button order on mobile
            .btn-primary {
                order: 1;
            }
            
            .btn-success {
                order: 2;
            }
            
            .btn-info {
                order: 3;
            }
            
            .btn-secondary {
                order: 4;
            }
        }
        
        // Adjust dropdown on mobile
        .custom-dropdown {
            .custom-dropdown-menu {
                position: fixed;
                top: auto;
                bottom: auto;
                left: 50%;
                right: auto;
                transform: translateX(-50%) translateY(-10px);
                width: calc(100% - 2rem);
                max-width: 300px;
                
                &.show {
                    transform: translateX(-50%) translateY(0);
                }
            }
        }
    }
}

// Loading Animation
.loading-spinner {
    text-align: center;
    padding: 3rem;
    
    .spinner {
        width: 48px;
        height: 48px;
        border: 3px solid #e9ecef;
        border-top-color: #667eea;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 1rem;
    }
    
    p {
        color: #6c757d;
        font-size: 0.875rem;
    }
}

// Keyframe Animations
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

// Pulse Animation for Due Soon
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.due-soon-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

// Tooltip Styles
.info-tooltip {
    position: relative;
    cursor: help;
    
    &:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1f2937;
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        z-index: 1000;
    }
}

// Copyable Text
.copyable {
    cursor: pointer;
    transition: all 0.2s ease;
    
    &:hover {
        background-color: #e9ecef;
        border-radius: 4px;
    }
    
    &:active {
        background-color: #dee2e6;
    }
}

// Toast Notification
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    z-index: 1100;
    animation: slideInUp 0.3s ease-out;
}