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

/* CSS Variables matching snapstudy.html exactly */
:root {
  --snap-050: #f6f3ff;
  --snap-100: #e9ddff;
  --snap-200: #d8c6ff;
  --snap-300: #a78bfa;
  --snap-400: #8b5cf6;
  --snap-500: #7c3aed;
  --snap-600: #6a1ee8;
  --snap-700: #5a19c5;
  --snap-900: #3b107d;
  --surface: #ffffff;
  --border: #00000014;
  --text: #1e1e2e;
  --muted: #6c6c6c;
  --shadow: 0 12px 40px rgba(60,25,120,.22);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e1e2e;
  color: var(--text);
  background: linear-gradient(180deg, #f6f3ff, #e9ddff);
  background: linear-gradient(180deg, var(--snap-050), #e9ddff);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

* {
  box-sizing: border-box;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3e3e3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background-color: #f8f9fa;
}

.error-boundary-content {
  max-width: 500px;
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-icon {
  color: #dc3545;
  margin-bottom: 20px;
}

.error-title {
  color: #343a40;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
}

.error-message {
  color: #6c757d;
  margin-bottom: 24px;
  line-height: 1.5;
}

.error-details {
  margin: 20px 0;
  text-align: left;
}

.error-details summary {
  cursor: pointer;
  color: #6c757d;
  margin-bottom: 10px;
}

.error-stack {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #495057;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-outline {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
}

.btn-outline:hover {
  background-color: #007bff;
  color: white;
}

.error-help {
  font-size: 14px;
  color: #6c757d;
}

.error-help a {
  color: #007bff;
  text-decoration: none;
}

.error-help a:hover {
  text-decoration: underline;
}

.error-help code {
  background: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 12px;
}

@media (max-width: 480px) {
  .error-boundary-content {
    padding: 20px;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
/* SnapStudy App Styles - Matching snapstudy.html design exactly */

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

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(180deg, var(--snap-050), #e9ddff);
  color: var(--snap-900);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--snap-100);
  border-top: 4px solid var(--snap-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Login Form Styles - Old Design */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Logo section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.app-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

.logo-section h1 {
  color: #333;
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.login-form h2 {
  color: #333;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #667eea;
}

.login-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0;
  transition: transform 0.2s ease;
}

.login-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
}

.login-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-form p {
  color: #666;
  margin: 20px 0 0 0;
}

.link-button {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.link-button:hover {
  color: #5a67d8;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #fcc;
  font-size: 0.9rem;
  margin: 10px 0;
}

.success-message {
  background: #efe;
  color: #3c3;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #cfc;
  font-size: 0.9rem;
  margin: 10px 0;
}

/* Main App Styles */
.main-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - Transparent Background */
.snap-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.snap-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.snap-header .brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.snap-header .brand span {
  font-weight: 700;
  font-size: 18px;
  color: var(--snap-900);
}

.snap-header nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.snap-header nav button {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--snap-700);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.snap-header nav button:hover {
  color: var(--snap-500);
}

/* My Lessons Button - Transparent Background */
.lessons-btn {
  background: transparent !important;
}

.lessons-btn.active {
  background: transparent !important;
  color: var(--snap-500);
  font-weight: 600;
}

/* Profile Icon Button in Header */
.profile-icon-btn {
  padding: 4px !important;
  border-radius: 50% !important;
}

.profile-icon-btn.active {
  background: var(--snap-100) !important;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--snap-500), var(--snap-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s;
}

.profile-icon-btn:hover .header-avatar {
  transform: scale(1.1);
}

.app-grid {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 1rem;
  flex: 1 1;
}

/* Footer matching snapstudy.html exactly */
.snap-footer {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--snap-700);
}

/* Component Styles */
/* LEFT: My Lessons - matching snapstudy.html exactly */
.list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s;
  cursor: pointer;
}

.row:hover {
  background: var(--snap-100);
}

.row.selected {
  background: var(--snap-100);
}

.row .icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row .title {
  flex: 1 1;
  font-size: 14px;
}

.icon.gray {
  color: #9aa0a6;
}

.icon.green {
  color: #10b981;
}

/* Upload (+) button */
.plus-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.plus-btn:hover {
  background: var(--snap-100);
}

.plus-btn svg {
  fill: none;
  stroke: var(--snap-700);
  transition: stroke .2s;
}

.plus-btn:hover svg {
  stroke: var(--snap-500);
}

/* Multimedia and Settings views */
.multimedia-view {
  padding: 1rem;
  background: var(--surface);
  margin: 1rem;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  color: var(--snap-900);
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-info p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .snap-header {
    padding: 0 12px;
  }
  
  .snap-header .brand {
    gap: 8px;
  }
  
  .snap-header .brand span {
    font-size: 16px;
  }
  
  .snap-header nav {
    gap: 4px;
  }
  
  .snap-header nav button {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .login-form {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .actions {
    gap: 6px;
  }
  
  .icon-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .bubble {
    max-width: 95%;
    font-size: 13px;
  }
  
  .fab-send {
    width: 36px;
    height: 36px;
    right: 12px;
    bottom: 12px;
  }
}
/* MIDDL
E: Cards - matching snapstudy.html exactly */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--snap-900);
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--snap-700);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--snap-300);
  color: var(--snap-500);
  box-shadow: 0 2px 6px rgba(124,58,237,.18);
}

.icon-btn .meta {
  font-size: 12px;
  color: var(--muted);
}

.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.ico svg {
  width: 100%;
  height: 100%;
  fill: var(--snap-700);
  transition: fill .2s;
}

.icon-btn:hover .ico svg {
  fill: var(--snap-500);
}

/* RIGHT:
 Tutor - matching snapstudy.html exactly */
.tutor-panel {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.thread {
  flex: 1 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(700px 320px at -10% 110%, rgba(124,58,237,0.06), transparent 60%), #fff;
}

.bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  line-height: 1.4;
}

.bubble.ai {
  background: #faf7ff;
  color: #3a2b6b;
  align-self: flex-start;
}

.bubble.me {
  background: #f2ecff;
  color: var(--text);
  align-self: flex-end;
}

.tutor-input {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 10px 12px 16px 12px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.tutor-input input {
  flex: 1 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.tutor-input input:focus {
  border-color: var(--snap-300);
  outline: none;
}

/* Floating Send Button (smaller icon + alignment) */
.fab-send {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--snap-500), var(--snap-700));
  color: #fff;
  box-shadow: 0 8px 24px rgba(90,25,197,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fab-send:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.fab-send svg {
  fill: #fff;
  width: 15px;
  height: 15px;
}
/* Settings View */
.settings-view {
  flex: 1 1;
  overflow: auto;
  background: linear-gradient(180deg, var(--snap-050), #e9ddff);
  padding: 2rem;
}

/* User Settings Container */
.user-settings-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: var(--snap-050);
}

.tab-button {
  flex: 1 1;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-button:hover {
  background: rgba(124, 58, 237, 0.05);
  color: var(--snap-700);
}

.tab-button.active {
  color: white;
  border-bottom-color: transparent;
  background: linear-gradient(135deg, var(--snap-300), var(--snap-500));
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.tab-button.logout-tab {
  flex: 0.5 1;
  background: rgba(244, 67, 54, 0.05);
  color: #d32f2f;
}

.tab-button.logout-tab:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  fill: currentColor;
}

/* Profile Content */
.profile-content {
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.profile-avatar {
  flex-shrink: 0;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--snap-500), var(--snap-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.profile-title {
  flex: 1 1;
}

.profile-title h2 {
  margin: 0;
  font-size: 28px;
  color: var(--snap-900);
  font-weight: 700;
}

.profile-email {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.edit-profile-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--snap-300), var(--snap-500));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, var(--snap-400), var(--snap-600));
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  fill: currentColor;
}

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section h3 {
  color: var(--snap-900);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--snap-100);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--snap-900);
  font-size: 14px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--snap-300);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
  background: #f5f5f5;
  color: var(--muted);
  cursor: not-allowed;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.btn-cancel,
.btn-save {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-cancel {
  background: white;
  border: 2px solid var(--border);
  color: var(--snap-700);
}

.btn-cancel:hover {
  background: var(--snap-050);
  border-color: var(--snap-300);
}

.btn-save {
  background: linear-gradient(135deg, var(--snap-300), var(--snap-500));
  color: white;
  border: none;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, var(--snap-400), var(--snap-600));
}

/* Analytics Content */
.analytics-content {
  padding: 0;
  background: #f9f9f9;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
  .settings-view {
    padding: 1rem;
  }

  .profile-content {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-cancel,
  .btn-save {
    width: 100%;
  }
}


/*# sourceMappingURL=main.054443ab.css.map*/