/* Global Styles for Palm Oil AI Frontend */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap');

:root {
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --font-main: 'Outfit', sans-serif;
  --accent-green: #00a651;
  --accent-gold: #ffd700;
}

body.theme-dark {
  --bg-color: #0d0d0d;
  --panel-color: #1a1a1a;
  --panel-glass: rgba(26, 26, 26, 0.8);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --input-bg: #0d0d0d;
}

body.theme-light {
  --bg-color: #eef0f3;
  --panel-color: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --border-color: #d4d8df;
  --input-bg: #f5f6f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  animation: slideUp 0.6s ease-out;
  transition: background 0.3s ease, border-color 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.accent-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.upload-zone:hover {
  border-color: var(--accent-green);
  background: rgba(0, 166, 81, 0.05);
  box-shadow: 0 0 20px rgba(0, 166, 81, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background-color: var(--accent-green);
  color: white;
}

.btn-primary:hover {
  background-color: #008f45;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
}

input[type="file"] {
  display: none;
}
