:root {
  --text-dark: #1e293b;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px 0 rgba(0, 85, 255, 0.15);
  --accent: #0055ff; /* Blue matching your logo */
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Abstract Background Shapes for Glass Effect */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #00a2ff; /* Light blue from logo */
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: #0033cc; /* Darker blue from logo */
  bottom: -150px;
  right: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #7dd3fc;
  top: 40%;
  left: 30%;
}

/* Update Header Logo layout */
.header-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

/* Layout */
.site-header {
  width: 90%;
  max-width: 1600px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}

.main-layout {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto 3rem auto;
}

/* Typography & Containers */
h1 {
  margin-top: 0;
  font-weight: 700;
  color: var(--text-dark);
}

.container {
  padding: 2rem;
}

/* Controls */
.controls {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.glass-input {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
}

/* Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.glass-btn:active {
  transform: translateY(0);
}

.primary-btn {
  background: var(--accent);
  color: white;
  border: none;
}

.primary-btn:hover {
  background: #5a6edb;
}

.small-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Output Area */
.output-wrapper {
  position: relative;
  margin-top: 1rem;
}

.output-actions {
  position: absolute;
  top: -15px;
  right: 15px;
  display: flex;
  gap: 0.5rem;
}

.glass-output {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem 1.5rem;
  min-height: 200px;
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

/* Information Sections (1.png and 2.png additions) */
.info-section,
.passages-section {
  margin-top: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-block h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.info-block p,
.passage-block p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.passage-block {
  margin-bottom: 2rem;
}

.passage-block:last-child {
  margin-bottom: 0;
}

.passage-block h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
