/* RotaLucrativa - Custom CSS Stylesheet com Autenticação e Google Sign-In */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

.dark {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --success-bg: #064e3b;
    --danger: #f87171;
    --warning: #fbbf24;
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding-bottom: 80px;
}

/* Custom Card Container */
.app-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Stat Badge Highlight */
.stat-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-box-profit {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Input Styles */
.form-input {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Custom Tabs & Bottom Nav */
.bottom-nav {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.nav-item {
    color: var(--text-muted);
    transition: color 0.15s ease, transform 0.15s ease;
}

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* EFEITO DE PISCAR / HOVER NOS CARDS DE APLICATIVOS */
@keyframes hover-pulse-blink {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), 0 0 25px rgba(37, 99, 235, 0.3);
        border-color: #f59e0b;
    }
}

.app-item-row {
    transition: all 0.2s ease-in-out;
}

.app-item-row:hover {
    animation: hover-pulse-blink 1s ease-in-out infinite;
    cursor: pointer;
    background-color: rgba(245, 158, 11, 0.05) !important;
}

/* Botões de reordenação (Subir/Descer) */
.btn-order {
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--border-color);
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.btn-order:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* ESTILOS DE AUTENTICAÇÃO E GOOGLE SIGN-IN */
.auth-container {
    max-w: 420px;
    margin: 2rem auto;
}

.google-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.user-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
