/* Estilos para o sistema Pagamento Online via PIX - Cristal Frios Brodowski */
body {
    font-family: 'Roboto', 'Arial', 'Georgia', serif;
    margin: 0;
    padding: 0;
    background: url('https://pix.cristalfriosbrodowski.com.br/images/vintage-texture.png') repeat, linear-gradient(135deg, #f4f4f4 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333333;
}

.header-container {
    background-color: #FFFFFF;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 3px solid #32BCAD;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar {
    margin-top: 8px;
}

.navbar a {
    margin: 0 12px;
    color: #32BCAD;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #4CDDD0;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    width: 100%;
    text-align: center;
    border: 2px solid #32BCAD;
    background: linear-gradient(to bottom, #FFFFFF, #F9F9F9);
    transition: transform 0.3s ease;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-3px);
}

h1, h2 {
    color: #32BCAD;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    padding: 10px;
    border: 2px solid #32BCAD;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button, .link.button {
    background-color: #32BCAD;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .link.button:hover {
    background-color: #4CDDD0;
    transform: scale(1.05);
}

.button-highlight {
    background-color: #28A498;
    padding: 12px 24px;
    font-size: 18px;
}

.button-highlight:hover {
    background-color: #3DB8AB;
}

.message {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    max-width: 100%;
    text-align: center;
}

.message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.message.refunded {
    background-color: #FFF3CD;
    color: #333333; /* Cor padrão do corpo para texto */
    border: 1px solid #FFECB3;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
}

th {
    background-color: #32BCAD;
    color: #FFFFFF;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #F9F9F9;
}

tbody tr:hover {
    background-color: #F0F0F0;
}

.qr-code, .qr-code-table {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.qr-code img, .qr-code-table img {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #32BCAD;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.qr-code textarea, .qr-code-table textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 2px solid #32BCAD;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    display: block;
    margin: 10px auto;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.action-buttons button, .action-buttons a.link.button {
    min-width: 100px;
    max-width: 150px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
}

.status-paid {
    color: #28A498;
    font-weight: bold;
    background-color: #D4EDDA; /* Verde para "pago" */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.status-refunded {
    font-weight: bold;
    background-color: #FFF3CD; /* Amarelo para "estornando" ou "estorno em processamento" */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    color: #333333; /* Cor padrão do corpo para texto */
}

.status-canceled {
    color: #721C24;
    font-weight: bold;
    background-color: #F8D7DA; /* Vermelho para "cancelado" */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.status-expired {
    color: #495057;
    font-weight: bold;
    background-color: #E9ECEF; /* Cinza para "expirado" */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

footer {
    background-color: #FFFFFF;
    padding: 15px;
    text-align: center;
    border-top: 3px solid #32BCAD;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #333333;
}

footer a {
    color: #32BCAD;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #4CDDD0;
}

@media only screen and (max-width: 600px) {
    .header-container {
        padding: 10px;
    }
    .logo {
        max-width: 120px;
    }
    .navbar a {
        margin: 0 8px;
        font-size: 14px;
    }
    .container {
        padding: 10px;
    }
    .card {
        padding: 15px;
    }
    form {
        max-width: 100%;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 14px;
        padding: 8px;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        font-size: 12px;
        padding: 6px;
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .payment-details-table th, .payment-details-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px;
    }
    .qr-code-table th, .qr-code-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px;
    }
    #historico table th, #historico table td {
        min-width: unset !important;
        display: block;
        width: 100%;
        text-align: center;
        padding: 6px;
        box-sizing: border-box;
    }
    input[type="number"] {
        width: 100%;
        max-width: 200px;
    }
    .qr-code img, .qr-code-table img {
        max-width: 150px;
        max-height: 150px;
        margin: 0 auto;
    }
    .qr-code textarea, .qr-code-table textarea {
        max-width: 100%;
        font-size: 12px;
        margin: 10px auto;
    }
    button, .link.button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    .button-highlight {
        padding: 8px 16px;
        font-size: 14px;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    .action-buttons button, .action-buttons a.link.button {
        min-width: 100px;
        max-width: 100%;
        padding: 6px 10px;
        font-size: 12px;
    }
    .qr-code-table {
        max-width: 100%;
        margin: 0 auto;
    }
    .message {
        font-size: 14px;
        padding: 8px;
    }
    .status-paid, .status-refunded, .status-canceled, .status-expired {
        font-size: 12px;
        padding: 4px 8px;
    }
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #32BCAD;
}
.pagination a:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}