/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/* Estilos CSS modernos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    display: flex;
    flex-flow: column;
    gap: 30px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.custom-form label{
    font-size: 1rem !important;
    font-weight: normal;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-group {
    display: flex;
    gap: 10px;
}
.select-group .input-wrapper{
    width: 75%;
}

.custom-select {
    position: relative;
    flex: 1 0 120px;
}

.custom-select select {
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.primary-button {
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.qr-container {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    padding: 20px;
}

.qr-container #qrpixCanvas{
    display: none;
}
.qr-container .placeholder-text{
    text-align: center;
}
.qr-container .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.action-buttons, .copy-section{
    margin: 12px 0;
    text-align: center;
    display: none;
}

.copy-section{
    /* display: flex; */
    flex-flow: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.copy-section code{
    background: #efefef;
    padding: 8px;
    margin: 8px 0;
    border-radius: 8px;
}

.action-buttons button, .copy-section button{
    padding: 8px 16px !important;
    max-height: 40px;
    width: calc(50% - 12px);
    margin: auto;
} 

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos base para elementos disabled */
input[disabled],
select[disabled],
textarea[disabled],
button[disabled],
.disabled {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    position: relative;
}

/* Efeito adicional para inputs */
input[type="text"][disabled],
input[type="number"][disabled],
input[type="email"][disabled],
input[type="tel"][disabled],
textarea[disabled] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    box-shadow: none !important;
}

/* Estilo específico para selects */
select[disabled] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Botões desabilitados */
button[disabled],
.button[disabled] {
    position: relative;
}

button[disabled]::after,
.button[disabled]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: inherit;
}

.service-footer {
    margin-top: 32px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-bottom: 2px solid #007bff;
    text-align: center;
}

.service-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.powered-by{
    font-size: .8rem !important;
}


.site-link {
    display: block;
    align-items: center;
    text-decoration: none;
    font-weight: medium;
    color: #007bff;
    transition: all 0.3s ease;
}

.site-link:hover {
    color: #0056b3;
    transform: translateY(-1px);
}


.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 9999;
}

.notification {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

/* Tipos de notificação */
.notification-success {
    background: #28a745;
    border-left: 4px solid #218838;
}

.notification-error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
    border-left: 4px solid #e0a800;
}

.notification-info {
    background: #17a2b8;
    border-left: 4px solid #138496;
}

/* Adicione ao CSS */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.notification.show {
    animation: slideIn 0.3s forwards;
}

.notification.hide {
    animation: fadeOut 0.3s forwards;
}

/* Responsividade */
@media (min-width: 768px) {
    .main-column{
        width: 100%;
    }
    .sidebar-column{
        width: 50%;
        margin: auto;
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .grid {
        flex-flow: column;
        gap: 16px;
    }
    .main-column{
        width: 100%;
    }
    .sidebar-column{
        width: 100%;
        margin-top: 32px;
    }

    .select-group {
        gap: 6px;
        flex-flow: column;
    }
    .select-group .input-wrapper{
        width: 100%;
    }
    
    .custom-select {
        position: relative;
        flex: 1 0 0px;
    }
    

    .service-branding {
        flex-direction: column;
    }
    
    .service-footer {
        margin-top: 30px;
        padding: 15px;
    }
}


@media print{
    header, footer, button, p, h2, h3, h4, h5, h6, ul, ol, figure, img, .entry-title, #site-header, .main-column, .copy-section, .notifications-container, .rank-math-block{
        display: none !important;
    }

    .qrpixPrintable{
        width: 320px !important;
        height: fit-content;
        left: calc(100% / 2 - 160px);
        position: absolute;
        text-align: center;
    }
    .qr-container #qrpixCanvas{
        display: block;
    }
    #qrpixCanvas{
        max-height: 220px;
    }
}
