body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #f9f7fd 100%);
  margin: 0;
  color: #222;
}
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  display: flex;
  justify-content: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b3a67;
}
.logo p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}
main {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(44,62,80,0.07);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
}
.intro {
  text-align: center;
  margin-bottom: 2rem;
}
.intro h2 {
  font-size: 2rem;
  color: #2b3a67;
  margin-bottom: 0.5rem;
}
.intro p {
  color: #4b5563;
  font-size: 1.1rem;
}
.upload-section {
  margin-bottom: 2rem;
}
.upload-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.upload-toggle button {
  flex: 1;
  padding: 0.7rem 0;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  border-radius: 0.7rem 0.7rem 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.upload-toggle button.active {
  background: #2b3a67;
  color: #fff;
}
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #f9fafb;
  padding: 1.2rem;
  border-radius: 0.7rem;
  box-shadow: 0 1px 4px 0 rgba(44,62,80,0.04);
}
.upload-form label {
  font-weight: 500;
  color: #374151;
}
.upload-form input, .upload-form textarea {
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  resize: none;
}
.upload-form button[type="submit"] {
  margin-top: 0.5rem;
  background: #2b3a67;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.upload-form button[type="submit"]:hover {
  background: #1e2746;
}
.hidden {
  display: none !important;
}
.coaching-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.coaching-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.coaching-header-top h2 {
  margin: 0;
  flex: 1;
}

.back-btn {
  background: #6b7280;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: #4b5563;
}

/* Progress Bar Styles */
.progress-container {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-text {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.progress-percentage {
  font-weight: 600;
  color: #059669;
  font-size: 0.9rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}
.coaching-header h2 {
  color: #2b3a67;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.coaching-header p {
  color: #6b7280;
  font-size: 1.05rem;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tab-btn {
  flex: 1;
  padding: 0.7rem 0;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  border-radius: 0.7rem 0.7rem 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
  background: #6d28d9;
  color: #fff;
}
.day-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}
.day-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.day-btn.active {
  background: #6d28d9;
  color: #fff;
}
.day-btn.locked {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  position: relative;
  opacity: 0.6;
  transform: scale(0.95);
  transition: all 0.2s;
}

.day-btn.locked::after {
  content: "🔒";
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.8rem;
  animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes unlockHighlight {
  0% { 
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
    background: #6d28d9;
    color: white;
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2);
  }
}

.day-btn:not(.locked):hover {
  background: #6d28d9;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(109, 40, 217, 0.2);
}

/* Unlock Notification Styles */
.unlock-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.unlock-notification.show {
  transform: translateX(0);
}

.unlock-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.unlock-icon {
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

.unlock-text h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.unlock-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.unlock-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.unlock-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}
.tab-content {
  background: #f9fafb;
  border-radius: 0.7rem;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px 0 rgba(44,62,80,0.04);
  min-height: 180px;
}
.tab-content h3 {
  color: #2b3a67;
  margin-top: 0;
}
.tab-content ul, .tab-content ol {
  margin: 0.5rem 0 0 1.2rem;
}
.tab-content li {
  margin-bottom: 0.3rem;
}

/* Exercise Styles */
.exercise-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.exercise-header h3 {
  margin: 0;
  flex: 1;
}

.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.completion-checkbox:hover {
  background: #f1f5f9;
}

.completion-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: white;
}

.completion-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #10b981;
  border-color: #10b981;
}

.completion-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.checkbox-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.instructions-section {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #3b82f6;
}

.instructions-section h4 {
  margin: 0 0 0.5rem 0;
  color: #1e40af;
}

.notes-section {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #f59e0b;
}

.notes-section h4 {
  margin: 0 0 0.5rem 0;
  color: #92400e;
}

.exercise-notes {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #fbbf24;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: white;
  transition: border-color 0.2s;
}

.exercise-notes:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.exercise-details {
  background: #f0f9ff;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #0ea5e9;
}

.unlock-notice {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  color: #0c4a6e;
}

.unlock-progress {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(14, 165, 233, 0.3);
}

.unlock-progress-bar {
  width: 100%;
  height: 6px;
  background: #e0f2fe;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.unlock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.unlock-progress-text {
  font-size: 0.8rem;
  opacity: 0.8;
  font-style: italic;
}

/* Book Summary Styles */
.book-summary {
  max-width: 100%;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 1.2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.summary-card h4 {
  margin: 0 0 0.8rem 0;
  color: #2b3a67;
  font-size: 1rem;
  font-weight: 600;
}

.summary-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.analysis-details {
  margin-bottom: 2rem;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h4 {
  margin: 0 0 0.8rem 0;
  color: #2b3a67;
  font-size: 1.1rem;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #c7d2fe;
}

.tag.principle {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.ai-status {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.7rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.ai-status p {
  margin: 0.3rem 0;
  color: #166534;
}

.ai-status em {
  color: #6b7280;
  font-size: 0.9rem;
}
.cta {
  text-align: center;
  background: linear-gradient(90deg, #2b3a67 0%, #6d28d9 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1rem 1.2rem 1rem;
  margin-top: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.export-btn {
  background: #6b7280;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.export-btn:hover {
  background: #4b5563;
}
.cta-btn {
  margin-top: 1rem;
  background: #fff;
  color: #6d28d9;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover {
  background: #ede9fe;
  color: #2b3a67;
}
footer {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin: 2rem 0 1rem 0;
}
@media (max-width: 700px) {
  main {
    max-width: 98vw;
    padding: 1rem 0.2rem 2rem 0.2rem;
  }
  .tab-content {
    padding: 0.7rem;
  }
  .cta {
    padding: 1rem 0.5rem 0.8rem 0.5rem;
  }
  .coaching-header-top {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .back-btn {
    align-self: flex-start;
  }
  .logo-image {
    width: 50px;
    height: 50px;
  }
  .logo h1 {
    font-size: 1.3rem;
  }
  .logo p {
    font-size: 0.85rem;
  }
} 

/* Profile System Styles */
.profile-login {
  text-align: center;
}

.login-form {
  max-width: 400px;
  margin: 2rem auto;
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px 0 rgba(44,62,80,0.07);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.primary-btn {
  background: #6d28d9;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-size: 1rem;
}

.primary-btn:hover {
  background: #5b21b6;
}

.existing-profiles {
  margin-top: 3rem;
  text-align: left;
}

.existing-profiles h3 {
  color: #374151;
  margin-bottom: 1rem;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.profile-card:hover {
  border-color: #6d28d9;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.1);
}

.profile-info h4 {
  margin: 0 0 0.25rem 0;
  color: #2b3a67;
}

.profile-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.select-profile-btn {
  background: #6d28d9;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.select-profile-btn:hover {
  background: #5b21b6;
}

/* Dashboard Styles */
.profile-dashboard {
  text-align: left;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  color: #2b3a67;
}

.profile-goal {
  margin: 0;
  color: #6b7280;
  font-style: italic;
}

.logout-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
}

.books-section {
  margin-top: 2rem;
}

.books-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.books-header h3 {
  margin: 0;
  color: #2b3a67;
}

.add-book-btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.add-book-btn:hover {
  background: #059669;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 2px dashed #d1d5db;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.book-card:hover {
  border-color: #6d28d9;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
  transform: translateY(-2px);
}

.book-info h4 {
  margin: 0 0 0.5rem 0;
  color: #2b3a67;
  font-size: 1.1rem;
}

.book-genre {
  margin: 0 0 0.5rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.book-progress {
  margin: 0 0 1rem 0;
  color: #059669;
  font-weight: 500;
  font-size: 0.9rem;
}

.book-actions {
  display: flex;
  gap: 0.5rem;
}

.open-book-btn {
  background: #6d28d9;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
}

.open-book-btn:hover {
  background: #5b21b6;
}

.delete-book-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.delete-book-btn:hover {
  background: #dc2626;
}

/* Book Upload Styles */
.book-upload {
  text-align: left;
}

.upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.upload-header h2 {
  margin: 0;
  color: #2b3a67;
}

.upload-type {
  margin-bottom: 1rem;
}

/* Error Message Styles */
.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 700px) {
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .books-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
  }
  
  .book-actions {
    flex-direction: column;
  }
  
  .profile-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .login-form {
    margin: 1rem;
    padding: 1.5rem;
  }
} 