/*
 * Karaoke App Styles
 * Using colors from theme.json
 */

 body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
    width: 100%;
}

/* Header styles */
.header-container {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.header-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.button {
    width: 200px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button:active {
    transform: scale(0.95);
    box-shadow: none;
}

/* Using colors from theme.json */
.request-song {
    background-color: #ff3366; /* theme.json: karaoke.requestSong */
}

.view-queue {
    background-color: #6b46c1; /* theme.json: karaoke.viewQueue */
}

.tip-hostess {
    background-color: #99ff33; /* theme.json: karaoke.tipHostess */
    box-shadow: 0px 0px 10px 2px #99ff33;
    color: black;
}

.financial-analytics {
    background-color: #00B8D4; /* theme.json: info */
}

.venue-details {
    background-color: #FF9800; /* Orange */
}

.tip-hostess:active {
    background-color: #8ddf2e;
}

footer {
    text-align: center;
    margin-top: 1%;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
}

footer .social-icons img {
    width: 3rem;
}

.instagram-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.footer-text {
    color: #333;
    font-size: 14px;
    margin: 10px 0;
}

.hostess-name {
    font-weight: bold;
    color: #333;
}

/* Tip Page Styles */
.tip-page {
    background-color: #f8f9fa;
    padding: 0;
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

.tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
    position: relative;
}

.back-button {
    text-decoration: none;
    color: black; /* theme.json: karaoke.viewQueue */
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

.back-button:hover {
    color: #805ad5; /* lighter purple */
}

.tip-header h1 {
    margin: 0;
    font-size: 20px;
    text-align: center;
    flex-grow: 1;
}

.tip-container {
    padding: 20px;
}

.host-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.host-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-details {
    flex: 1;
}

.host-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.host-venue {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.now-playing {
    margin: 0;
    font-size: 14px;
    color: #6b46c1; /* theme.json: karaoke.viewQueue */
    display: flex;
    align-items: center;
    font-weight: 500;
}

.music-icon {
    margin-right: 5px;
    color: #6b46c1; /* theme.json: karaoke.viewQueue */
}

.message-section {
    max-width: 95%;
    margin-bottom: 25px;
    padding: 0; /* Ensure no padding */
}

.tip-amount-section,
.payment-method-section,
.recent-tips-section {
    margin-bottom: 25px;
    padding: 0; /* Ensure no padding */
}

h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.amount-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.amount-option {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-align: center;
}

.amount-option.selected {
    background-color: #6b46c1; /* theme.json: karaoke.tipHostess */
    color: white;
    border-color: #99ff33;
    box-shadow: 0px 0px 10px 2px #99ff33;
}

.custom-amount-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.currency-symbol {
    padding: 0 12px;
    font-size: 16px;
    color: #666;
}

.custom-amount-input input {
    flex: 1;
    padding: 12px 0;
    border: none;
    font-size: 16px; /* Base font size for input */
}

#custom-amount-visible {
    font-size: 16px; /* Increased by ~40% from 16px */
    outline: none;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

.payment-option input {
    margin-right: 10px;
}

.payment-icon {
    margin-right: 10px;
    font-size: 18px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    background-color: #f0f4f8;
}

.name-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px; /* Add space between name and message */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px; /* Reverted font size */
    box-sizing: border-box; /* Include padding in width */
    background-color: #f0f4f8;
}

.send-tip-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #99ff33; /* theme.json: karaoke.tipHostess */
    color: black;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    box-shadow: 0px 0px 10px 2px #99ff33;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.send-tip-button:active {
    transform: scale(0.95);
    box-shadow: none;
    background-color: #8ddf2e;
}

.tip-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f0f4f8;
    border-radius: 8px;
}

.tipper-name {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.tip-date {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.tip-amount {
    font-weight: 600;
    /* color: #6b46c1;  theme.json: karaoke.requestSong */
}

/* Secure Checkout Banner Styles */
.checkout-section {
    margin-bottom: 20px;
}

.checkout-container {
    /* background-color: #f9f9f9;
    border-radius: 12px; */
    padding: 20px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.powered-by {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.security-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px; 
    /* font-weight: 600;*/
    color: #333;
}

.lock-icon {
    width: 36px;
    height: 36px;
    background-color: #6b46c1;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-badge {
    background-color: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
}

.payment-methods {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    flex-wrap: nowrap;
    min-width: 0;
}

.payment-icon {
    flex: 1 1 0;
    min-width: 60px;
    max-width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px;
    margin: 0 5px;
    flex-shrink: 0;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Media Queries for Responsive Design */
/* Media queries for responsive design */
@media (max-width: 768px) {
    .payment-icon {
        min-width: 50px;
        max-width: 60px;
        height: 40px;
        padding: 3px;
        margin: 0 4px;
    }
    
    .payment-methods {
        justify-content: space-evenly;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .header-container {
        margin-bottom: 20px;
    }
    
    .button {
        width: 100%;
        max-width: 280px;
        font-size: 16px;
    }
    
    .instagram-logo {
        width: 40px;
        height: 40px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    .hostess-name {
        font-size: 14px;
    }
    
    /* Tip page responsive styles */
    .tip-page {
        padding: 0 10px;
    }
    
    .tip-header h1 {
        font-size: 18px;
    }
    
    .tip-container {
        padding: 15px 10px;
    }
    
    .amount-options {
        gap: 5px;
    }
    
    .amount-option {
        flex: 1;
        font-size: 16px;
        padding: 12px 5px;
        min-width: 0;
        border-radius: 10px;
    }
    
    .payment-option {
        padding: 10px;
        font-size: 14px;
    }
    
    .send-tip-button {
        padding: 12px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    /* Checkout section responsive styles */
    .checkout-container {
        padding: 15px;
    }
    
    .security-text {
        font-size: 16px;
    }
    
    .lock-icon {
        width: 30px;
        height: 30px;
    }
    
    .payment-badge {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .payment-methods {
        justify-content: space-evenly;
        padding: 0 10px;
    }
    
    .payment-icon {
        min-width: 40px;
        max-width: 50px;
        height: 30px;
        padding: 2px;
        margin: 0 3px;
    }
}

@media screen and (max-width: 360px) {
    /* Specific styles for screens <= 360px */
    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-icon {
        min-width: 45px;
        max-width: 55px;
        height: 32px;
        padding: 3px;
        margin: 2px;
    }
}

@media screen and (max-width: 320px) {
    body {
        padding: 10px;
    }
    
    .button {
        padding: 12px;
        font-size: 14px;
    }
    
    .instagram-logo {
        width: 32px;
        height: 32px;
    }
    
    /* Tip page responsive styles for very small screens */
    .tip-header h1 {
        font-size: 16px;
    }
    
    .amount-option {
        font-size: 14px;
        padding: 12px 3px;
        border-radius: 10px;
    }
    
    .send-tip-button {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .payment-option {
        font-size: 12px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    /* Checkout section responsive styles for very small screens */
    .checkout-container {
        padding: 12px;
    }
    
    .security-text {
        font-size: 14px;
        gap: 6px;
    }
    
    .lock-icon {
        width: 24px;
        height: 24px;
    }
    
    .payment-badge {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .payment-methods {
        gap: 4px;
        justify-content: center;
        padding: 0 5px;
    }
    
    .payment-icon {
        min-width: 40px;
        max-width: 50px;
        height: 30px;
        padding: 2px;
        margin: 0 1px;
    }
}