.airtime-payment-page {
    // Form Section
    .payment-form {
        animation: fadeIn 0.5s ease-in-out;
    }
    
    // Card Header Enhancement
    .card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-bottom: 2px solid rgba(var(--bs-primary-rgb, 67, 97, 238), 0.2);
        padding: 1.25rem 1.5rem;
        position: relative;
        overflow: hidden;
        
        // Animated gradient overlay
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(67, 97, 238, 0.05), 
                transparent);
            transition: left 0.5s ease;
        }
        
        &:hover::before {
            left: 100%;
        }
        
        .icon-circle {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            
            &.bg-primary {
                background: rgba(67, 97, 238, 0.1);
                
                i {
                    color: #4361ee;
                }
            }
            
            &.bg-success {
                background: rgba(76, 175, 80, 0.1);
                
                i {
                    color: #4caf50;
                }
            }
            
            &.bg-info {
                background: rgba(33, 150, 243, 0.1);
                
                i {
                    color: #2196f3;
                }
            }
            
            i {
                font-size: 1.25rem;
            }
        }
        
        h5, h6 {
            font-weight: 700;
            margin-bottom: 0;
            color: #212529;
        }
        
        small {
            font-size: 0.75rem;
            opacity: 0.7;
        }
    }
    
    // Dropdown Styling for Quick Select and Quick Notes
    .quick-amount-dropdown,
    .quick-notes-dropdown {
        margin-top: 0.5rem;
        
        .dropdown-toggle {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            transition: all 0.3s ease;
            font-size: 0.8125rem;
            padding: 0.375rem 0.75rem;
            
            &:hover {
                background: #4361ee;
                border-color: #4361ee;
                color: white;
                
                i {
                    color: white;
                }
            }
            
            i {
                margin-right: 0.25rem;
            }
        }
        
        .dropdown-menu {
            border: none;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            border-radius: 0.75rem;
            padding: 0.75rem;
            max-height: 300px;
            overflow-y: auto;
            min-width: 250px;
            
            .dropdown-item {
                padding: 0.5rem 0.75rem;
                border-radius: 0.5rem;
                transition: all 0.2s ease;
                font-size: 0.8125rem;
                
                &:hover {
                    background: rgba(67, 97, 238, 0.1);
                    transform: translateX(5px);
                }
                
                i {
                    font-size: 0.8rem;
                    margin-right: 0.5rem;
                    color: #4361ee;
                }
            }
            
            .dropdown-divider {
                margin: 0.25rem 0;
            }
            
            // Grid layout for amount buttons in dropdown
            .row {
                margin: 0;
                
                [class*="col-"] {
                    padding: 0.25rem;
                }
                
                .btn {
                    font-size: 0.75rem;
                    padding: 0.25rem 0.5rem;
                    white-space: nowrap;
                    
                    &:hover {
                        transform: translateY(-1px);
                    }
                }
            }
        }
    }
    
    // Summary Preview
    .summary-preview {
        background: linear-gradient(135deg, #f8f9fa, #ffffff);
        border: 1px solid #dee2e6;
        border-radius: 0.75rem;
        padding: 1.25rem;
        transition: all 0.3s ease;
        
        &:hover {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
            border-color: rgba(67, 97, 238, 0.3);
        }
        
        p {
            margin-bottom: 0.75rem;
            
            strong {
                color: #495057;
                min-width: 100px;
                display: inline-block;
                font-weight: 600;
            }
            
            span {
                color: #212529;
                font-weight: 500;
            }
        }
        
        .badge {
            padding: 0.25rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 500;
            border-radius: 50rem;
            
            &.bg-success {
                background: linear-gradient(135deg, #4caf50, #2e8b57);
            }
        }
    }
    
    // Form Label Enhancement
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #212529;
        
        i {
            font-size: 0.9rem;
            margin-right: 0.25rem;
        }
    }
    
    // Recent Payments List
    .recent-payments-list {
        max-height: 400px;
        overflow-y: auto;
        
        &::-webkit-scrollbar {
            width: 8px;
        }
        
        &::-webkit-scrollbar-track {
            background: #e9ecef;
            border-radius: 50rem;
        }
        
        &::-webkit-scrollbar-thumb {
            background: #adb5bd;
            border-radius: 50rem;
            
            &:hover {
                background: #6c757d;
            }
        }
        
        .list-group-item {
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
            
            &:hover {
                background-color: #f8f9fa;
                border-left-color: #4361ee;
                transform: translateX(4px);
            }
            
            h6 {
                margin-bottom: 0.25rem;
                font-size: 0.875rem;
                font-weight: 600;
            }
            
            small {
                font-size: 0.7rem;
            }
        }
    }
    
    // Station Contacts
    .station-contacts-list {
        .list-group-item {
            transition: all 0.2s ease;
            
            &:hover {
                background-color: #f8f9fa;
                transform: translateX(4px);
            }
            
            h6 {
                color: #4361ee;
                margin-bottom: 0.25rem;
                font-weight: 600;
            }
            
            small {
                display: block;
                margin-top: 0.5rem;
                font-size: 0.7rem;
                
                i {
                    width: 20px;
                    color: #6c757d;
                }
            }
        }
    }
    
    // Advanced Options Card
    .advanced-options-card {
        transition: all 0.3s ease;
        
        .card-header {
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
            
            &:hover {
                background-color: #e9ecef;
            }
            
            .toggle-icon {
                transition: transform 0.3s ease;
                
                &.rotated {
                    transform: rotate(180deg);
                }
            }
        }
        
        .card-body {
            transition: all 0.3s ease;
            overflow: hidden;
            
            &.collapsed {
                display: none;
            }
            
            &.expanded {
                display: block;
                animation: slideDown 0.3s ease-in-out;
            }
        }
    }
    
    // Form Actions
    .form-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #dee2e6;
        
        @media (max-width: 767.98px) {
            flex-direction: column;
            
            > div {
                width: 100%;
                display: flex;
                justify-content: center;
                gap: 1rem;
                
                &:first-child {
                    flex-wrap: wrap;
                }
            }
        }
        
        .btn {
            min-width: 120px;
            
            @media (max-width: 767.98px) {
                flex: 1;
                min-width: auto;
            }
        }
    }
    
    // Stats Cards Spacing
    .stats-grid-wrapper {
        margin-bottom: 2.5rem;
        
        @media (max-width: 767.98px) {
            margin-bottom: 1.5rem;
        }
    }
    
    .main-content-area {
        margin-top: 1.5rem;
        
        @media (max-width: 767.98px) {
            margin-top: 1rem;
        }
    }
    
    // Loading States
    .loading {
        position: relative;
        
        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            animation: shimmer 1.5s infinite;
        }
    }
    
    // Tooltips
    [data-tooltip] {
        position: relative;
        cursor: help;
        
        &::before {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding: 0.25rem 0.5rem;
            background-color: #212529;
            color: white;
            font-size: 0.75rem;
            white-space: nowrap;
            border-radius: 0.25rem;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
            z-index: 1070;
        }
        
        &:hover::before {
            opacity: 1;
            transform: translateX(-50%) translateY(-4px);
        }
    }
    
    // Responsive Adjustments
    @media (max-width: 767.98px) {
        .row {
            > [class*="col-"] {
                margin-bottom: 1rem;
            }
        }
        
        .summary-preview {
            padding: 1rem;
            
            .row {
                > div {
                    margin-bottom: 1rem;
                    
                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
        
        .card-header {
            padding: 1rem;
            
            .icon-circle {
                width: 36px;
                height: 36px;
                
                i {
                    font-size: 1rem;
                }
            }
        }
        
        .quick-amount-dropdown,
        .quick-notes-dropdown {
            .dropdown-menu {
                min-width: 200px;
                max-height: 250px;
            }
        }
    }
}

// Animations
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

// Dark Mode Support
@media (prefers-color-scheme: dark) {
    .airtime-payment-page {
        .card-header {
            background: linear-gradient(135deg, #2d2d3a 0%, #1e1e2a 100%);
            border-bottom-color: rgba(67, 97, 238, 0.3);
            
            h5, h6 {
                color: #f8f9fa;
            }
            
            .icon-circle {
                &.bg-primary,
                &.bg-success,
                &.bg-info {
                    background: rgba(255, 255, 255, 0.1);
                }
            }
        }
        
        .summary-preview {
            background: linear-gradient(135deg, #2d2d3a, #1e1e2a);
            border-color: #3a3a4a;
            
            p {
                strong {
                    color: #adb5bd;
                }
                
                span {
                    color: #f8f9fa;
                }
            }
        }
        
        .quick-amount-dropdown,
        .quick-notes-dropdown {
            .dropdown-toggle {
                background: #2d2d3a;
                border-color: #3a3a4a;
                color: #f8f9fa;
                
                &:hover {
                    background: #4361ee;
                    border-color: #4361ee;
                }
            }
            
            .dropdown-menu {
                background: #2d2d3a;
                box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
                
                .dropdown-item {
                    color: #f8f9fa;
                    
                    &:hover {
                        background: rgba(67, 97, 238, 0.2);
                    }
                    
                    i {
                        color: #4361ee;
                    }
                }
                
                .dropdown-divider {
                    border-top-color: #3a3a4a;
                }
            }
        }
        
        .recent-payments-list,
        .station-contacts-list {
            .list-group-item {
                background-color: #1e1e2a;
                border-color: #2d2d3a;
                color: #e0e0e0;
                
                &:hover {
                    background-color: #2d2d3a;
                }
                
                h6 {
                    color: #4361ee;
                }
                
                small {
                    color: #adb5bd;
                }
            }
        }
        
        .form-label {
            color: #f8f9fa;
        }
        
        .form-actions {
            border-top-color: #3a3a4a;
        }
    }
}

// Print Styles
@media print {
    .airtime-payment-page {
        .stats-grid-wrapper,
        .recent-payments-list,
        .station-contacts-list,
        .form-actions,
        .quick-amount-dropdown,
        .quick-notes-dropdown,
        .advanced-options-card {
            display: none;
        }
        
        .summary-preview {
            border: 1px solid #adb5bd;
            background: white;
            box-shadow: none;
        }
        
        .card {
            box-shadow: none;
            border: 1px solid #adb5bd;
        }
        
        .card-header {
            background: white;
            border-bottom: 1px solid #adb5bd;
        }
    }
}