/* Fonte personalizada do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PT Sans', sans-serif;
    font-weight: 500;
}

body {
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Imagem de fundo com transparência */
.background-overlay {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 0;
}

.container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    background-color: rgba(130, 171, 232, 0.2);
    padding: 10px;
    border-radius: 14px;
    backdrop-filter: blur(3px);
    z-index: 1;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1.5s forwards;
}

/* Animação de fade-in para o container */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.images-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.profile-img, .company-logo {
    width: 160px;
    height: 160px;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.5);
}

.profile h1 {
    font-size: 25px;
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.footer-title {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 7px 0;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.wallet i {
    font-size: 21px;
}

.wallet i.fab.fa-bitcoin {
    margin-right: 6px !important;
    margin-left: 2px !important;
}

.wallet i.fab.fa-ethereum {
    margin-right: 10px !important;
    margin-left: 6px !important;
}

.wallet i.fas.fa-bolt {
    margin-right: 10px !important;
    margin-left: 3px !important;
}

.wallet-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 2;
    text-align: left;
}

.wallet-label {
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    align-items: center;
}

.wallet-subtext {
    font-size: 13px;
    margin-left: 2px;
    vertical-align: middle;
    display: inline-block;
}

.wallet-address {
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-actions {
    display: flex;
    justify-content: flex-end;
    text-align: right;
    gap: 1px;
    align-items: right;
}

.wallet-icon {
    cursor: pointer;
    color: white;
    font-size: 15px !important;
    margin-right: 6px !important;
    margin-left: auto !important;
    vertical-align: middle;
    transition: transform 0.3s ease, color 0.3s ease;
}

.wallet-icon-svg {
    width: 21px;
    height: 21px;
    margin-right: 8px;
    vertical-align: middle;
}

.wallet-icon-solana {
    width: 18px;
    height: 18px;
    margin-right: 9px !important;
    margin-left: 2px !important;
}

.wallet-icon-sui {
    width: 18px;
    height: 18px;
    fill: white !important;
    margin-right: 9px !important;
    margin-left: 2px !important;
}
.wallet-icon-tron {
    width: 20px;
    height: 20px;
    margin-right: 7px !important;
    margin-left: 1px !important;
}

.wallet-icon:hover {
    color: #00d1ff;
    transform: scale(1.2);
}

.wallet-icon-fatura {
    cursor: pointer;
    color: #0A3D62;
    font-size: 15px !important;
    margin-left: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.wallet-icon-fatura:hover {
    color: #00d1ff;
    transform: scale(1.2);
}

/* QRCODE */
.qrcode-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.currency-value-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.currency-value-container label {
    font-size: 14px;
    margin-right: 10px;
}

.currency-value-container input {
    flex: 2;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.currency-value-container select {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-left: 10px;
}

.popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.popup-content label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
    margin-right: 2px;
    margin-left: 1px;
}

.popup-content select,
.popup-content input {
    width: 100%;
    padding: 5px;
    margin-bottom: 14px;
    margin-left: 3px;
    margin-right: 6px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.popup-content button {
    width: 50%;
    padding: 8px;
    background-color: #0A3D62;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #00d1ff;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.popup-content p {
    color: black;
    margin-top: 4px;
    font-size: 12px;
}

.popup-title {
    margin-top: 45px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.popup-address {
    margin-top: 20px;
    font-size: 10px;
    color: #555;
    text-align: center;
}

.close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    background-color: #0A3D62;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.close:hover {
    background-color: #00d1ff;
    transform: scale(1.1);
}

.qrcode-popup.show {
    display: flex;
}

.styled-button {
    background-color: #0A3D62;
    color: white;
    border: none;
    padding: 5px 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: -10px;
}

.styled-button:hover {
    background-color: #00d1ff;
    transform: scale(1.05);
}

.styled-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.styled-input:focus {
    border-color: #00d1ff;
}

#invoice-details {
    margin-top: 10px;
}

#qrcode-lightning {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#invoice-satoshis {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 15px;
    color: black;
}

.invoice-copy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#copy-icon {
    display: none;
}

#invoice-address {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 10px;
    word-wrap: break-word;
    text-align: center;
    margin-bottom: -5px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
}

/* Estilo inicial do status de pagamento */
#payment-status {
    display: none;
    font-size: 16px;
    font-weight: bold;
    background-color: #0A3D62;
    color: white;
    text-align: center;
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    animation: pulse 2s infinite;
    padding: 10px;
    border-radius: 5px;
}

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

/* Estilo quando o pagamento for confirmado */
#payment-status.confirmed {
    color: white;
    background-color: #28a745;
    border-radius: 10px;
    border: 2px solid #155724;
    box-shadow: 0 4px 12px rgb(3, 67, 3);
    animation: none;
    padding: 6px;
    font-size: 16px;
    transition: all 0.5s ease;
}

/* Media queries */

/* Para telas maiores que 1200px */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 20px;
    }

    .wallet-label {
        font-size: 20px;
    }

    .wallet-address {
        font-size: 14px;
    }

    .wallet-icon {
        font-size: 20px !important;
    }
    
    .wallet-icon-sui {
    width: 18px;
    height: 18px;
    fill: white !important;
    margin-right: 9px !important;
    margin-left: 2px !important;
    }

    .profile h1 {
        font-size: 35px;
    }

    .profile-img, .company-logo {
        width: 180px;
        height: 180px;
    }
}

/* Para telas entre 600px e 1200px */
@media (min-width: 600px) and (max-width: 1199px) {
    .container {
        max-width: 800px;
    }

    .wallet-label {
        font-size: 18px;
    }

    .wallet-address {
        font-size: 13px;
    }

    .wallet-icon-sui {
        width: 18px;
        height: 18px;
        fill: white !important;
        margin-right: 9px !important;
        margin-left: 2px !important;
    }

    .wallet-icon {
        font-size: 18px !important;
    }

    .profile h1 {
        font-size: 30px;
    }

    .profile-img, .company-logo {
        width: 170px;
        height: 170px;
    }
}

/* Para telas menores que 600px */
@media (max-width: 599px) {
    .container {
        max-width: 400px;
    }

    .wallet-label {
        font-size: 15px;
    }

    .wallet-address {
        font-size: 11px;
    }

    .wallet-icon {
        font-size: 15px !important;
    }

    .wallet-icon-sui {
        width: 18px;
        height: 18px;
        fill: white !important;
        margin-right: 9px !important;
        margin-left: 2px !important;
    }
    .profile h1 {
        font-size: 24px;
    }

    .profile-img, .company-logo {
        width: 150px;
        height: 150px;
    }
}
