
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
}


/* Main body and background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #efb271 0%, #fcb69f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


/* Main content container */
.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    padding-bottom: 0;
    width: fit-content;
    text-align: center;
    backdrop-filter: blur(10px);
}


/* Chai icon (logo) styles */
.chai-icon {
    width: 80px;
    height: 80px;
    background: #8B4513;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}


/* Logo image inside chai icon */
.chai-icon img {
    width: 90px;
    border-radius: 50%;
    object-fit: cover;
}


/* Shine effect on chai icon */
.chai-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 10px 10px 0;
}


/* Main heading */
h1 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 2.2em;
    font-weight: 700;
}


/* Subtitle under heading */
.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}


/* Section for amount selection */
.amount-section {
    margin-bottom: 30px;
}


/* Title for amount section */
.amount-title {
    color: #8B4513;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}


/* Preset amount buttons container */
.preset-amounts {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}


/* Preset amount button styles */
.amount-btn {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    min-width: 80px;
}


/* Hover effect for preset amount buttons */
.amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}


/* Selected preset amount button */
.amount-btn.selected {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}


/* Custom amount input section */
.custom-amount {
    margin: 20px 0;
}


/* Label for custom amount input */
.custom-amount label {
    display: block;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}


/* Custom amount input field */
.amount-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1em;
    text-align: center;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}


/* Focus effect for custom amount input */
.amount-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}


/* Donate button styles */
.donate-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    margin: 20px 0;
    width: 100%;
}


/* Hover effect for donate button */
.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}


/* Disabled donate button */
.donate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* QR code and payment info section */
.qr-section {
    /* margin-top: 30px; */
    /* padding-top: 30px; */
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/* QR code box */
.qr-code {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border: 3px solid #8B4513;
    border-radius: 15px;
    display: none;
    background: white;
    padding: 10px;
}


/* QR code canvas sizing */
.qr-code canvas {
    width: 100% !important;
    height: 100% !important;
}


/* Payment info box */
.payment-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    padding: 20px;
    border-radius: 15px;
    /* margin-top: 20px; */
    display: none;
    width: 100%;
}


/* Thank you message in payment info */
.thank-you {
    color: #28a745;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
}


/* Steam animation above chai icon */
.steam-animation {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}


/* Individual steam lines */
.steam {
    width: 3px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    margin: 0 2px;
    animation: steam 2s infinite ease-in-out;
    display: inline-block;
}


/* Staggered animation for steam lines */
.steam:nth-child(2) {
    animation-delay: -0.4s;
}
.steam:nth-child(3) {
    animation-delay: -0.8s;
}


/* Steam animation keyframes */
@keyframes steam {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        opacity: 0.3;
    }
    20% {
        transform: scaleY(1);
        opacity: 1;
    }
}


/* Message box at the bottom */
.message {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #ff6b35;
}


/* Donations section */
.donations-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}


/* Donations section title */
.donations-title {
    color: #8B4513;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}


/* List of donation cards */
.donations-list {
    /* max-height: 900px; */
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none;
}



/* Responsive styles for mobile */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    .preset-amounts {
        flex-direction: column;
        align-items: center;
    }
    .amount-btn {
        width: 100%;
        max-width: 200px;
    }
    .donation-message {
        width: 100%;
        margin: 0;
    }
    /* .donation-amount{
        margin-right: 90px;
    } */
}


/* Footer credit style */
.footer-credit {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: black;
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 0.01em;
}
.footer-credit a {
    color: #8B4513;
    font-weight: 600;
    transition: color 0.2s;
}