:root { --bg-color: #f4f6f4; --text-primary: #2d3748; --text-secondary: #4a5568; --accent-primary: #2f855a; /* Green */ --accent-secondary: #8b5a2b; /* Brown */ --glass-bg: rgba(255, 255, 255, 0.9); --glass-border: rgba(47, 133, 90, 0.2); --glow-color: rgba(47, 133, 90, 0.15); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; } body { background-color: var(--bg-color); color: var(--text-primary); min-height: 100vh; display: flex; justify-content: center; align-items: center; overflow-x: hidden; position: relative; } /* Removed Background Shapes */ .container { width: 100%; max-width: 1200px; padding: 2rem; z-index: 1; } header { text-align: center; margin-bottom: 3rem; } .title-text { font-size: 3.5rem; font-weight: 800; color: var(--accent-primary); margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 12px; } .subtitle { font-size: 1.1rem; color: var(--text-secondary); font-weight: 300; display: flex; align-items: center; justify-content: center; gap: 8px; } .content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } @media (max-width: 900px) { .content-wrapper { grid-template-columns: 1fr; } } .glass-panel { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); } /* Upload Section */ .upload-section { display: flex; flex-direction: column; gap: 1.5rem; } .upload-area { border: 2px dashed rgba(47, 133, 90, 0.4); border-radius: 16px; height: 350px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .upload-area:hover, .upload-area.dragover { border-color: var(--accent-primary); background: rgba(47, 133, 90, 0.05); box-shadow: 0 0 20px var(--glow-color); } .upload-content { text-align: center; pointer-events: none; transition: opacity 0.3s ease; } .upload-icon { font-size: 64px; color: var(--accent-primary); margin-bottom: 1rem; display: inline-block; } .upload-content h3 { font-size: 1.25rem; margin-bottom: 0.25rem; } .upload-content p { color: var(--text-secondary); font-size: 0.9rem; } #image-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; border-radius: 16px; } .hidden { display: none !important; } .upload-notice { padding: 1rem; background: rgba(234, 179, 8, 0.1); border-left: 4px solid #eab308; border-radius: 8px; display: flex; align-items: flex-start; gap: 12px; } .upload-notice i { color: #eab308; font-size: 1.5rem; margin-top: 2px; } .upload-notice p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4; } .upload-notice strong { color: var(--text-primary); } .primary-btn { background: var(--accent-primary); color: white; border: none; padding: 1rem; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 10px; } .primary-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(47, 133, 90, 0.25); } .primary-btn:disabled { background: #2d3748; color: #718096; cursor: not-allowed; transform: none; box-shadow: none; } .btn-text { display: flex; align-items: center; gap: 8px; } /* Loader Animation */ .loader { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Results Section */ .results-section { display: flex; flex-direction: column; position: relative; min-height: 400px; } .results-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-secondary); } .pulse-ring { width: 80px; height: 80px; border-radius: 50%; background: rgba(47, 133, 90, 0.1); margin-bottom: 1.5rem; position: relative; display: flex; align-items: center; justify-content: center; } .pulse-ring::before { content: ''; position: absolute; left: -20px; top: -20px; right: -20px; bottom: -20px; border-radius: 50%; border: 1px solid rgba(47, 133, 90, 0.5); animation: pulse 2s linear infinite; } @keyframes pulse { 0% { transform: scale(0.5); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } } .results-content { animation: fadeIn 0.5s ease-out; height: 100%; display: flex; flex-direction: column; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .results-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); display: flex; align-items: center; gap: 10px; } .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; } @media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } } .stat-card { background: #ffffff; border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid var(--glass-border); box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .stat-card.highlight { background: rgba(47, 133, 90, 0.05); border-color: rgba(47, 133, 90, 0.3); box-shadow: 0 4px 15px rgba(47, 133, 90, 0.15); align-items: center; text-align: center; } .stat-label { font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; } .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); } .stat-card.highlight .stat-value { color: var(--accent-primary); font-size: 2.2rem; } .chart-container { position: relative; width: 65%; height: 180px; margin: 0 auto 1.5rem auto; } /* Crops Gallery Area */ .crops-container { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); } .crops-title { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; } .crops-gallery { display: flex; flex-wrap: wrap; gap: 1rem; overflow-y: auto; max-height: 300px; } .crop-card { background: #ffffff; border-radius: 8px; border: 1px solid var(--glass-border); overflow: hidden; display: inline-block; transition: transform 0.2s ease, box-shadow 0.2s ease; } .crop-card:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.05); } .crop-card img { /* Não escalar a imagem se não precisar */ object-fit: none; max-width: 100%; display: block; margin: 0 auto; } .crop-card-label { padding: 0.4rem; font-size: 0.75rem; text-align: center; font-weight: 600; color: var(--accent-secondary); background: rgba(47, 133, 90, 0.05); border-top: 1px solid var(--glass-border); } /* Custom scrollbar for gallery */ .crops-gallery::-webkit-scrollbar { width: 6px; } .crops-gallery::-webkit-scrollbar-track { background: rgba(47, 133, 90, 0.1); border-radius: 4px; } .crops-gallery::-webkit-scrollbar-thumb { background: rgba(47, 133, 90, 0.4); border-radius: 4px; } .crops-gallery::-webkit-scrollbar-thumb:hover { background: rgba(47, 133, 90, 0.7); }