/* Kiosk UI Styles */
:root {
    --primary-blue: #0066cc;
    --light-blue: #e6f2ff;
    --dark-blue: #004499;
    --deep-blue: #002266;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    --success-green: #00c851;
    --warning-orange: #ff8800;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 50%, #002266 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    --gradient-success: linear-gradient(135deg, #00c851 0%, #00a041 100%);
    --shadow-light: 0 4px 15px rgba(0, 102, 204, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 102, 204, 0.2);
    --shadow-heavy: 0 12px 35px rgba(0, 102, 204, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 50%, #f8fbff 100%);
    background-attachment: fixed;
    overflow: hidden;
}

.kiosk-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header Styles */
.kiosk-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 50%, #002266 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.kiosk-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.kiosk-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.kiosk-header h1 i {
    background: linear-gradient(45deg, #ffffff, #e6f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Logo Header Styles */
.logo-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 3px solid rgba(27, 89, 150, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    max-height: 60px;
    width: auto;
    opacity: 0.8;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.developer-credit {
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
}

.developer-credit .text-muted {
    color: #888 !important;
}

/* Payment Method Indicator */
.payment-method-indicator .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Bank Selection Styles */
.bank-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bank-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.bank-btn.selected {
    background: var(--gradient-success) !important;
    border-color: var(--success-green) !important;
    color: white !important;
    transform: scale(1.02);
}

.bank-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* Selected Bank Indicator */
.selected-bank-indicator .badge {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary) !important;
    border: none;
}

/* Card Form Styles */
.card-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-form .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.card-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.card-form input[type="password"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Banner Styles */
.kiosk-banner {
    background: linear-gradient(135deg, #0066cc 0%, #004499 50%, #002266 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.kiosk-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.banner-title i {
    background: linear-gradient(45deg, #ffffff, #e6f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Main Content Styles */
.kiosk-main {
    flex: 1;
    padding: 1.5rem 2rem 2rem 2rem;
    overflow-y: auto;
}

/* Screen Management */
.screen {
    display: none;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Screen Title Styles */
.screen-title {
    color: #002266 !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 34, 102, 0.5);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.screen-subtitle {
    color: #555 !important;
    font-size: 1.3rem !important;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-align: center;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Kiosk Button Styles */
.btn-kiosk {
    background: var(--gradient-light);
    border: 3px solid transparent;
    background-clip: padding-box;
    color: var(--primary-blue);
    padding: 2.5rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn-kiosk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 17px;
}

.btn-kiosk:hover::before {
    opacity: 1;
}

.btn-kiosk:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue);
}

.btn-kiosk i {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-kiosk:hover i {
    animation: iconBounce 0.6s ease;
}

.btn-kiosk div {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.btn-kiosk small {
    font-size: 0.95rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form Styles */
.form-control-lg {
    padding: 1.25rem 1.5rem;
    font-size: 1.3rem;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.form-control-lg:focus {
    outline: none;
    background: linear-gradient(#f8fbff, #f8fbff) padding-box, var(--gradient-primary) border-box;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.form-control-lg::placeholder {
    color: #888;
    font-weight: 400;
}

.form-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 34, 102, 0.2);
}

/* Button Styles */
.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-lg:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004499 0%, #002266 50%, #001133 100%);
    border-color: var(--deep-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.btn-success {
    background: var(--gradient-success);
    border-color: var(--success-green);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00a041 0%, #008631 100%);
    border-color: #00a041;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.btn-back {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Amount Button Styles */
.amount-btn {
    padding: 2rem 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-light);
    border: 3px solid var(--primary-blue);
    color: var(--primary-blue);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amount-btn.active::before,
.amount-btn:hover::before {
    opacity: 1;
}

.amount-btn.active,
.amount-btn:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.amount-btn span {
    position: relative;
    z-index: 1;
}

/* Payment Screen Styles */
.payment-amount h3 {
    font-size: 3.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    animation: amountPulse 2s ease-in-out infinite;
}

@keyframes amountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.qr-code-container {
    padding: 3rem;
    background: var(--gradient-light);
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    display: inline-block;
    border: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
    animation: qrGlow 3s ease-in-out infinite;
}

.qr-code-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: 25px;
    z-index: -1;
}

@keyframes qrGlow {
    0%, 100% { box-shadow: var(--shadow-heavy); }
    50% { box-shadow: 0 20px 50px rgba(0, 102, 204, 0.4); }
}

.payment-status {
    font-size: 1.4rem;
    color: var(--deep-blue);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 34, 102, 0.2);
}

/* Card Slot Styles */
.card-slot {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 4px dashed var(--primary-blue);
    border-radius: 20px;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    animation: cardSlotPulse 2s ease-in-out infinite;
}

.card-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    animation: cardSlotShimmer 3s ease-in-out infinite;
}

@keyframes cardSlotPulse {
    0%, 100% { border-color: var(--primary-blue); }
    50% { border-color: var(--dark-blue); }
}

@keyframes cardSlotShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.card-slot i {
    color: var(--primary-blue);
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-slot p {
    font-size: 1.3rem;
    color: var(--deep-blue);
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 34, 102, 0.2);
}

/* Success Screen Styles */
.success-icon {
    animation: successPulse 1.5s ease-in-out;
    color: var(--success-green);
    filter: drop-shadow(0 4px 8px rgba(0, 200, 81, 0.3));
}

@keyframes successPulse {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Footer Styles */
.kiosk-footer {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-top: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding: 1.5rem;
    box-shadow: 0 -4px 15px rgba(0, 102, 204, 0.1);
}

.kiosk-footer p {
    margin: 0;
    font-weight: 600;
    color: var(--deep-blue);
    text-shadow: 0 1px 2px rgba(0, 34, 102, 0.2);
}

/* Step Content */
.step-content {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-left: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Visual Effects */
.kiosk-screen {
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(248,251,255,0.8) 100%);
}

/* Floating Animation for Icons */
.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulsing Border Effect */
.pulse-border {
    position: relative;
    border: 3px solid var(--primary-blue);
}

.pulse-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid rgba(0, 102, 204, 0.3);
    border-radius: inherit;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .kiosk-header h1 {
        font-size: 2rem;
    }
    
    .screen-title {
        font-size: 2rem;
    }
    
    .screen-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-kiosk {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .btn-kiosk i {
        font-size: 2.5rem;
    }
    
    .payment-amount h3 {
        font-size: 2rem;
    }
    
    .kiosk-main {
        padding: 1rem;
    }
    
    .branding-footer {
        padding: 1rem 1.5rem;
        max-width: 350px;
    }
    
    .nupath-logo svg {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .amount-btn {
        font-size: 1.25rem;
        padding: 1rem 0.5rem;
    }
    
    .form-control-lg {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Touch-friendly hover states for mobile */
@media (hover: none) {
    .btn-kiosk:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-success:hover {
        transform: none;
    }
    
    .amount-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-kiosk {
        border-width: 4px;
    }
    
    .form-control-lg {
        border-width: 3px;
    }
}

/* Branding Footer Styles */
.branding-footer {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--light-blue);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 0 auto;
    max-width: 450px;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
}

.branding-footer p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.nupath-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nupath-logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.2));
    transition: transform 0.3s ease;
}

.nupath-logo svg:hover {
    transform: scale(1.05);
}

.branding-website {
    margin-bottom: 0;
}

.branding-website a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.branding-website a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Main Menu Text Visibility Fix */
#main-menu .screen-title,
#main-menu .screen-subtitle,
#main-menu h2,
#main-menu p {
    color: #002266 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force text visibility across all screens */
.screen-title {
    color: #002266 !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.screen-subtitle {
    color: #666 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* Card insertion animations for payment screens */
.card-pulse {
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* QR code container styling for UPI payments */
.qr-code-container {
    border: 2px dashed #007bff;
    max-width: 300px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 10px;
}

/* Payment status animations */
.payment-status {
    margin-top: 2rem;
}

.card-insertion-animation {
    padding: 2rem 0;
}
