/* Importando fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --mafra-green: #2ecc71;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    padding-bottom: 50px;
}

/* --- VÍDEO DE FUNDO --- */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.5);
}

/* --- COMPONENTES GLASSMORPHISM --- */
.glass-card, .produtor-card, .mobile-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    color: white;
}

.navbar-glass {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- WIDGET DE CLIMA (NOVO) --- */
.weather-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
}
.weather-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --- INPUTS E FORMULÁRIOS --- */
.form-floating .form-control,
.form-floating .form-control:focus,
.form-floating .form-control:not(:placeholder-shown),
.form-select {
    background-color: rgba(0, 0, 0, 0.4) !important;
    background-clip: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    box-shadow: none !important;
}

.form-floating .form-control:focus, .form-select:focus {
    border-color: var(--mafra-green) !important;
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25) !important;
}

.form-floating label, .form-label, .form-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--mafra-green) !important;
    opacity: 1;
}

/* Vacina Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0,0,0,0.4) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- TABELAS --- */
.table-glass {
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    margin-bottom: 0;
}

.table-glass th, .table-glass td, .table-glass tr {
    background-color: transparent !important;
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    vertical-align: middle;
}

.table-glass thead th {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 2px solid var(--mafra-green) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-glass tbody tr:hover > * {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- BOTÕES E COMPONENTES --- */
.btn-mafra {
    background-color: var(--mafra-green);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    color: white;
}
.btn-mafra:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    color: white;
}

.tag-selector { display: none; }
.tag-badge {
    cursor: pointer; padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 30px;
    display: inline-flex; align-items: center; margin: 4px;
    transition: all 0.2s ease; background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.9); font-size: 0.9rem;
}
.tag-selector:checked + .tag-badge {
    background-color: var(--mafra-green);
    border-color: var(--mafra-green);
    color: white;
    font-weight: 600;
}

.zap-link {
    text-decoration: none; color: #fff; font-weight: 500;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(37, 211, 102, 0.15); border: 1px solid #25D366;
    transition: 0.3s; display: inline-flex; align-items: center;
}
.zap-link:hover { background: #25D366; color: white; box-shadow: 0 0 10px rgba(37, 211, 102, 0.5); }

.btn-icon {
    border: none; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: 0.2s; margin-left: 6px;
}
.btn-icon:hover { transform: scale(1.1); color: white; }
.btn-edit:hover { background: #f39c12; }
.btn-del:hover { background: #e74c3c; }

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-up { animation: slideUp 0.6s ease-out forwards; }

.mobile-card {
    border-left: 4px solid var(--mafra-green); margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.5) !important;
}
