/* ======================= CARREGADO PREMIUM DESIGN ======================= */

/* VARIÁVEIS GLOBAIS */
:root {
    /* Paleta principal da Trade Expansion */
    --primary: #484942;          /* Cor primária */
    --secondary: #102724;        /* Fundo escuro / base */
    --accent: #5D2713;           /* Realce (accent) */
    --cream: #F1F1D9;            /* Custom light */
    --text: #E1E2DA;             /* Cor de texto principal */

    /* Cores auxiliares já usadas no tema */
    --dark: #7f7e7e;
    --gold: #C9A961;
    --gray: #9b9898;
    --success: #28a745;
    --error: #dc3545;

    /* Animação e fontes globais */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Volkhov', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ESTILO GLOBAL – APLICA A TODAS AS PÁGINAS */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #183834 100%);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* Conteúdo principal centralizado em todas as páginas */
main,
.site-main,
.content-area {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Títulos no padrão “inspeção”: serif, claros e com leve espaçamento */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--cream);
    letter-spacing: 0.03em;
    margin-top: 0;
}

/* Parágrafos e texto geral */
p, li, span, label {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

/* Links com realce elegante */
a {
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Blocos de conteúdo em “cartão”, parecidos com a área branca do formulário de inspeção */
.te-card,
.entry-content > *:not(.alignfull):not(.alignwide) {
    background: rgba(255, 255, 255, 0.9);
    color: #102724;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    margin-bottom: 24px;
}

.entry-content > .wp-block-group.has-background {
    border-radius: 12px;
    overflow: hidden;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 3rem;
    color: var(--gold);
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.1em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* FLOATING CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--cream);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(155, 123, 92, 0.4);
    transition: var(--transition);
    font-size: 1.5rem;
    text-decoration: none;
}

.floating-cta:hover {
    background: var(--gold);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 123, 92, 0.6);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ANIMAÇÕES */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.9s ease-out;
}
/* ============================================
   PÁGINA DE NOVO RELATÓRIO - ESTILO VERDE
   ============================================ */

/* Fundo verde para a página de formulário de relatório */
body.page-template-default .container,
.te-form-relatorio-container {
    background: linear-gradient(135deg, #102724 0%, #102724 100%) !important;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Título "Novo Relatório" em branco */
.te-form-relatorio-container h1,
.te-form-relatorio-container h2,
.te-form-relatorio-container h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Labels dos campos em branco */
.te-form-relatorio-container label {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Inputs e textareas com fundo branco */
.te-form-relatorio-container input[type="text"],
.te-form-relatorio-container input[type="number"],
.te-form-relatorio-container textarea,
.te-form-relatorio-container select {
    background: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.3);
    color: #333333 !important; /* Texto escuro quando digitado */
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Efeito ao focar no campo */
.te-form-relatorio-container input:focus,
.te-form-relatorio-container textarea:focus,
.te-form-relatorio-container select:focus {
    border-color: #FFD700; /* Dourado ao focar */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

/* PLACEHOLDERS CLAROS - Isso resolve o problema principal! */
.te-form-relatorio-container input::placeholder,
.te-form-relatorio-container textarea::placeholder {
    color: #999999 !important; /* Cinza claro visível */
    opacity: 1;
    font-style: italic;
}

/* Select com opção padrão também mais clara */
.te-form-relatorio-container select option[value=""] {
    color: #999999;
    font-style: italic;
}

/* Botão de submit verde escuro com hover dourado */
.te-form-relatorio-container button[type="submit"],
.te-form-relatorio-container input[type="submit"] {
    background: #004d00 !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.te-form-relatorio-container button[type="submit"]:hover,
.te-form-relatorio-container input[type="submit"]:hover {
    background: #FFD700 !important; /* Dourado no hover */
    color: #004d00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Seção "Bundles / Chapas" com destaque */
.te-form-relatorio-container .bundles-section {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #FFD700;
}

/* ============================================
   FORMULÁRIO DE RELATÓRIO - DESIGN VERDE
   ============================================ */

.te-form-relatorio-container {
    background: linear-gradient(135deg, #102724 0%, #183834 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.te-form-relatorio-container h1 {
    color: #ffffff;
    font-size: 32px;
    margin: 0 0 30px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.te-relatorio-form {
    max-width: 900px;
    margin: 0 auto;
}

/* Seções do Formulário */
.te-form-section {
    background: rgba(255, 255, 255, 0.659);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.te-form-section h3 {
    color: #006400;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e4e2;
}

.te-help-text {
    color: #999;
    font-size: 14px;
    margin: -10px 0 20px 0;
    font-style: italic;
}

/* Campos */
.te-field {
    margin-bottom: 20px;
}

.te-field label {
    display: block;
    color: #828282;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.te-field input[type="text"],
.te-field input[type="number"],
.te-field input[type="email"],
.te-field textarea,
.te-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e4e2;
    border-radius: 6px;
    font-size: 15px;
    color: #102724 !important;
    background: #ffffff !important;
    transition: all 0.3s ease;
    font-family: inherit;
}

.te-field input:focus,
.te-field textarea:focus,
.te-field select:focus {
    outline: none;
    border-color: #006400;
    box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}

/* Placeholders claros */
.te-field input::placeholder,
.te-field textarea::placeholder {
    color: #999999 !important;
    opacity: 1;
    font-style: italic;
}

/* Campos em linha (lado a lado) */
.te-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Upload de Arquivo */
.te-field input[type="file"] {
    padding: 10px;
    background: #f8f8f8 !important;
    border: 2px dashed #ccc;
    cursor: pointer;
}

.te-field input[type="file"]:hover {
    border-color: #006400;
    background: #f0f9f0 !important;
}

/* ============================================
   CAVALETES (Seções Repetíveis)
   ============================================ */

#te-cavaletes-container {
    margin-bottom: 20px;
}

.te-cavalete {
    background: #d2d3d2;
    border: 2px solid #e0e4e2;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.te-cavalete:hover {
    border-color: #006400;
    box-shadow: 0 2px 8px rgba(0,100,0,0.1);
}

.te-cavalete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e4e2;
}

.te-cavalete-header h4 {
    color: #006400;
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

.te-btn-remove-cavalete {
    background: #dc3545;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.te-btn-remove-cavalete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.te-cavalete-fields {
    display: grid;
    gap: 15px;
}

/* Múltiplas Fotos */
.te-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.te-photo-item {
    position: relative;
}

.te-photo-item input[type="file"] {
    font-size: 12px;
    padding: 8px;
}

/* Ações dos Cavaletes */
.te-actions-cavaletes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
    #add-slab{ margin:.5rem 0 1rem; }
  </style>
  <?php
  return ob_get_clean();
;

/* ======================= CARREGADO PREMIUM DESIGN ======================= */

/* VARIÁVEIS GLOBAIS */
:root {
    --primary: #484942;
    --accent: #9B7B5C;
    --cream: #F5F2ED;
    --dark: #2A2A2A;
    --gold: #C9A961;
    --gray: #888888;
    --success: #28a745;
    --error: #dc3545;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Volkhorn', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 3rem;
    color: var(--gold);
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.1em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* FLOATING CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--cream);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(155, 123, 92, 0.4);
    transition: var(--transition);
    font-size: 1.5rem;
    text-decoration: none;
}

.floating-cta:hover {
    background: var(--gold);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 123, 92, 0.6);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ANIMAÇÕES */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}