@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Theme Variables --- */
:root {
  /* Default Dark Theme */
  --bg-app: #090d16;
  --bg-sidebar: #0f172a;
  --bg-card: #151c2c;
  --bg-modal: #111827;
  --bg-input: #1e293b;
  --border-color: #22314d;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 18px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 280px;
}

:root[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-modal: #ffffff;
  --bg-input: #f1f5f9;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-secondary: #db2777;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  --accent-glow: rgba(79, 70, 229, 0.08);
  
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
}

:root[data-theme="sepia"] {
  --bg-app: #f4ecd8;
  --bg-sidebar: #ede2c9;
  --bg-card: #fdf6e3;
  --bg-modal: #fdf6e3;
  --bg-input: #ebdcb9;
  --border-color: #dfcfad;
  --text-primary: #433422;
  --text-secondary: #6e5843;
  --text-muted: #8c735b;
  
  --accent-primary: #b57614;
  --accent-primary-hover: #9d5f0e;
  --accent-secondary: #af3a03;
  --accent-gradient: linear-gradient(135deg, #b57614 0%, #af3a03 100%);
  --accent-glow: rgba(181, 118, 20, 0.08);
  
  --shadow-lg: 0 10px 15px -3px rgba(67, 52, 34, 0.05), 0 4px 6px -2px rgba(67, 52, 34, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(67, 52, 34, 0.1), 0 10px 10px -5px rgba(67, 52, 34, 0.08);
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-primary-hover);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Layout Structure --- */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* --- Sidebar Styles --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  z-index: 10;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  stroke: var(--accent-primary);
  fill: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--accent-primary);
  font-weight: 600;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item-left svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.badge {
  background-color: var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}

.nav-item.active .badge, .nav-item:hover .badge {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Feed List Actions */
.feed-item {
  position: relative;
  group-hover: display;
}

.feed-delete-btn {
  display: none;
  background-color: transparent;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
}

.feed-delete-btn:hover {
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.1);
}

.nav-item:hover .feed-delete-btn {
  display: inline-flex;
}

.nav-item:hover .badge-feed-count {
  display: none;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
}

/* --- Main Content Area --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-app);
}

/* Top bar style */
.topbar {
  height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-sidebar);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  z-index: 5;
}

.view-header {
  display: flex;
  flex-direction: column;
}

.view-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Action button style */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-icon.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
  display: none;
}

/* --- Theme Selector Dropdown --- */
.theme-selector {
  position: relative;
}

.theme-dropdown {
  position: absolute;
  bottom: 48px;
  left: 0;
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  padding: 6px;
  min-width: 120px;
  z-index: 100;
}

.theme-dropdown.show {
  display: flex;
}

.theme-opt {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  color: var(--text-secondary);
}

.theme-opt:hover {
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.theme-opt.active {
  background-color: var(--accent-primary);
  color: white;
}

/* --- Article Feed Grid --- */
.content-feed {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.feed-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.feed-tabs {
  display: flex;
  background-color: var(--bg-input);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.feed-tab {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feed-tab:hover {
  color: var(--text-primary);
}

.feed-tab.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.feed-layout-toggle {
  display: flex;
  gap: 8px;
}

/* Articles grid container */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  transition: all var(--transition-normal);
}

.articles-grid.list-view {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

/* Article Card style */
.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), var(--accent-glow) 0px 4px 20px;
  border-color: var(--accent-primary);
}

.article-card.read {
  opacity: 0.7;
}

.article-card.read:hover {
  opacity: 1.0;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-source {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.card-time {
  white-space: nowrap;
}

.article-title {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--accent-primary);
}

.article-snippet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.article-card.read .read-indicator {
  background-color: transparent;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn-card-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-muted);
  background-color: transparent;
  transition: all var(--transition-fast);
}

.btn-card-action:hover {
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.btn-card-action.starred {
  color: var(--warning);
}

/* List view variations */
.list-view .article-card {
  flex-direction: row;
  padding: 16px 24px;
  align-items: center;
  gap: 20px;
}

.list-view .card-meta {
  width: 150px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.list-view .article-title {
  margin-top: 0;
  font-size: 1rem;
  -webkit-line-clamp: 1;
  flex-grow: 1;
}

.list-view .article-snippet {
  display: none;
}

.list-view .card-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
}

/* Empty State Styles */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-secondary);
  height: 60vh;
}

.empty-state svg {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.875rem;
  max-width: 320px;
  margin-bottom: 24px;
}

/* Button variants */
.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px var(--accent-glow);
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 8px;
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-muted);
}

/* --- Skeleton Loading States --- */
.skeleton-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

.skeleton-meta {
  display: flex;
  justify-content: space-between;
}

.skeleton-line {
  height: 14px;
  background-color: var(--bg-input);
  border-radius: 4px;
}

.skeleton-line.sm { width: 30%; }
.skeleton-line.md { width: 60%; }
.skeleton-line.lg { width: 90%; }
.skeleton-line.xl { width: 100%; }

.skeleton-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Modals and Overlays --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Forms in modals */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --- Reader View Drawer/Modal --- */
.reader-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.reader-overlay.show {
  display: block;
  opacity: 1;
}

.reader-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 720px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.reader-overlay.show + .reader-drawer,
.reader-drawer.show {
  transform: translateX(0);
}

.reader-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-sidebar);
}

.reader-header-actions {
  display: flex;
  gap: 12px;
}

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 48px;
}

.reader-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.reader-article-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.reader-article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 65ch; /* Optimal width for reading */
}

.reader-article-content p {
  margin-bottom: 20px;
}

.reader-article-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 20px 0;
  box-shadow: var(--shadow-md);
}

.reader-article-content h1, 
.reader-article-content h2, 
.reader-article-content h3 {
  margin: 32px 0 16px 0;
  color: var(--text-primary);
}

.reader-article-content a {
  text-decoration: underline;
}

.reader-article-content code {
  background-color: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.reader-article-content pre {
  background-color: var(--bg-input);
  padding: 16px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 20px 0;
}

.reader-article-content pre code {
  background-color: transparent;
  padding: 0;
}

.reader-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* OPML Drop Zone */
.opml-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 12px;
}

.opml-drop-zone:hover, .opml-drop-zone.dragover {
  border-color: var(--accent-primary);
  background-color: var(--accent-glow);
  color: var(--text-primary);
}

.opml-drop-zone svg {
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transition: transform var(--transition-normal);
  font-weight: 500;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success svg { color: var(--success); }
.toast-error svg { color: var(--danger); }
.toast-info svg { color: var(--accent-primary); }

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: inline-flex;
  }
  
  .search-container {
    width: 180px;
  }
  .search-input:focus {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
  }
  
  .content-feed {
    padding: 20px 16px;
  }
  
  .search-container {
    display: none; /* Hide standard search in small viewports or collapse it */
  }
  
  .reader-body {
    padding: 24px;
  }
  .reader-article-title {
    font-size: 1.5rem;
  }
  .reader-footer {
    padding: 16px 24px;
  }
  
  .feed-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .feed-tabs {
    width: 100%;
    justify-content: space-between;
  }
  
  .feed-tab {
    flex: 1;
    text-align: center;
  }
}
