/* ==========================================================================
   1. DIRETRIZES MOBILE-FIRST E BARRAMENTO DE TRANSBORDO (OVERFLOW)
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* ==========================================================================
   2. ANIMAÇÕES NATIVAS PRESERVADAS
   ========================================================================== */
@keyframes neonPulse {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #67b7b2; }
    100% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #2a7a75; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-neon {
    animation: neonPulse 1.5s infinite alternate;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================================================
   3. ESTRUTURAÇÃO DA TABELA DINÂMICA 5W2H
   ========================================================================== */
.th-header {
    background-color: #67b7b2;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 10px;
    border: 1px solid #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sub-header {
    font-size: 0.75rem;
    display: block;
    opacity: 0.9;
    font-weight: normal;
}

.td-cell {
    border: 1px solid #e2e8f0;
    padding: 0;
    min-width: 120px;
}

.td-cell input, .td-cell select {
    width: 100%;
    height: 100%;
    padding: 8px;
    border: none;
    background: transparent;
    outline: none;
    text-align: center;
    font-size: 0.9rem;
}

.td-cell input:focus {
    background-color: #f0fdff;
    box-shadow: inset 0 0 0 2px #67b7b2;
}

tr:nth-child(even) input { background-color: #f9f9f9; }
tr:nth-child(odd) input { background-color: #ffffff; }

/* ==========================================================================
   4. COMPONENTIZATION E INTERFACE FLUTUANTE
   ========================================================================== */
#windows-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-left: 5px solid #67b7b2;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: none;
}

#windows-notification.show {
    display: block;
    animation: slideInRight 0.5s forwards;
}

/* Customização Dinâmica de Scrollbars */
::-webkit-scrollbar, .scrollbar-style::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}
::-webkit-scrollbar-track, .scrollbar-style::-webkit-scrollbar-track { 
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb, .scrollbar-style::-webkit-scrollbar-thumb { 
    background: #67b7b2; 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover, .scrollbar-style::-webkit-scrollbar-thumb:hover { 
    background: #4a8a85; 
}

/* ==========================================================================
   5. MEDIAS QUERIES ADAPTATIVAS (RESPONSIVIDADE ESTRITA)
   ========================================================================== */
@media (max-width: 768px) {
    .dynamic-header {
        height: auto;
        padding: 16px 8px;
    }
    
    .dynamic-header h1 {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }

    #windows-notification {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}