/* Garumi Tech Global Styles — Purple Theme */
:root {
  --primary: #9333EA;
  --secondary: #A855F7;
  --accent: #C084FC;
  --background: #FAF5FF;
  --text: #2D1B69;
  --success: #7C3AED;
  --error: #DC2626;
  --gradient-1: linear-gradient(135deg, #9333EA 0%, #C084FC 100%);
  --gradient-2: linear-gradient(45deg, #7C3AED 0%, #A855F7 100%);
  --gradient-bg: linear-gradient(135deg, #FAF5FF 0%, #fff 50%, #F3E8FF 100%);
  --shadow-sm: 0 2px 4px rgba(147, 51, 234, 0.1);
  --shadow-md: 0 4px 6px rgba(147, 51, 234, 0.1), 0 2px 4px rgba(147, 51, 234, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(147, 51, 234, 0.1), 0 4px 6px -2px rgba(147, 51, 234, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(147, 51, 234, 0.1), 0 10px 10px -5px rgba(147, 51, 234, 0.04);
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gradient-bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 0% 0%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(192, 132, 252, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  font-size: 2.5rem;
  margin: 0;
  animation: gradientFlow 5s ease infinite;
}

.main-layout {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  align-items: start;
}

.input-panel, .preview-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(147, 51, 234, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.input-panel:hover, .preview-panel:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(147, 51, 234, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
  transform: translateY(-1px);
}

.line-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.line-item input {
  margin: 0;
}

.line-item .desc { flex: 3; }
.line-item .qty,
.line-item .price { flex: 1; }

/* Buttons */
button {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gradient-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 44, 191, 0.3);
}

.btn-add {
  background: var(--success);
  color: white;
}

.btn-add:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

.btn-remove {
  background: var(--error);
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.btn-remove:hover {
  background: #b91c1c;
  transform: rotate(90deg);
}

.quote-output {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-bar {
  margin-top: 2rem;
  text-align: center;
}

/* Animations */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }
}
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(147, 51, 234, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  resize: vertical;
}
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(147, 51, 234, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  resize: vertical;
}
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}