/* static/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --primary-color: #003724; /* green-700 */
    --primary-hover: #0d822c; /* green-600 */
    --secondary-color: #eab308; /* yellow-500 */
    --danger-color: #ef4444; /* red-500 */
    --bg-main: #f1f5f9; 
    --bg-card: #ffffff; 
    --text-primary: #1f2937; 
    --text-secondary: #6b7280; 
}

/* ==========================================================================
   FIX DEFINITIVO DE ROLAGEM GLOBAL 
   ========================================================================== */

html {
    background-color: var(--bg-main);
    overscroll-behavior-y: none; 
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100dvh;
    background-color: var(--bg-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    overflow-x: hidden;
}

/* Fundo verde elegante para a tela de Login/Cadastro */
.football-field-bg {
    background-color: #003724; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 100px 100px;
    min-height: 100dvh;
    width: 100%;
    background-attachment: fixed; 
}

/* ==========================================================================
   ANIMAÇÕES E COMPONENTES GLOBAIS
   ========================================================================== */

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Estilo Ativo do Menu Inferior (Tanto app.html quanto index.html) */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF; /* Opções Normais */
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.nav-item:hover {
    color: #4BC54A; /* Efeito Hover */
}

.nav-item.active {
    color: #4BC54A !important; /* Opção Selecionada */
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke-width: 2px;
}

.nav-item.active svg {
    transform: scale(1.1);
    stroke-width: 2.5px;
    transition: transform 0.2s;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Alerta Toast Moderno */
.toast-enter {
    transform: translate(-50%, -20px);
    opacity: 0;
}
.toast-enter-active {
    transform: translate(-50%, 20px);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast-exit-active {
    transform: translate(-50%, -20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: #ffffff; color: white; box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2); }
.btn-primary:hover { background-color: var(--primary-hover); }

/* Cards */
.bg-white.rounded-lg.shadow-sm {
    background-color: var(--bg-card) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    transition: all 0.2s ease-in-out;
    overflow: hidden; 
}

.bg-white.rounded-lg.shadow-sm:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08) !important; 
}

/* Loaders & Spinners */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }