/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  }
  
  :root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --light-bg: #f9fafb;
    --dark-bg: #1f2937;
    --light-card: #ffffff;
    --dark-card: #374151;
    --light-text: #111827;
    --dark-text: #f3f4f6;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  body {
    background-color: var(--light-bg);
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.6;
    transition: var(--transition);
  }
  
  body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  /* Header Styles */
  header {
    grid-column: 1 / -1;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  body.dark-mode header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .header-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
  }
  
  button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
  }
  
  #current-date {
    font-size: 1rem;
    color: #6b7280;
  }
  
  body.dark-mode #current-date {
    color: #9ca3af;
  }
  
  /* Card Styles */
  .card {
    background-color: var(--light-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  body.dark-mode .card {
    background-color: var(--dark-card);
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Stats Row */
  .stats-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    text-align: center;
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
  }
  
  body.dark-mode .stat-value {
    color: var(--accent-color);
  }
  
  /* Progress Chart */
  #progress-chart {
    width: 100%;
    height: 250px;
  }
  
  /* Habit Streaks */
  #habit-streaks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Learning Path */
  .roadmap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .milestone {
    background-color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    position: relative;
  }
  
  body.dark-mode .milestone {
    background-color: #4b5563;
  }
  
  .milestone.completed {
    background-color: #d1fae5;
    color: #065f46;
  }
  
  body.dark-mode .milestone.completed {
    background-color: #065f46;
    color: #d1fae5;
  }
  
  .milestone.current {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
  }
  
  body.dark-mode .milestone.current {
    background-color: #1e40af;
    color: #dbeafe;
  }
  
  /* AI Task Suggestions */
  #ai-suggestions {
    list-style: none;
    margin-top: 1rem;
  }
  
  #ai-suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  body.dark-mode #ai-suggestions li {
    border-bottom: 1px solid #4b5563;
  }
  
  /* Daily Tasks */
  #tasks {
    list-style: none;
    margin-top: 1rem;
  }
  
  #tasks li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  body.dark-mode #tasks li {
    border-bottom: 1px solid #4b5563;
  }
  
  #tasks li input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  /* Pomodoro Timer */
  #pomodoro-timer {
    text-align: center;
    font-size: 3rem !important;
    font-weight: 700;
    margin: 1rem 0;
  }
  
  .pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  /* Code Editor */
  #language-select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
  }
  
  body.dark-mode #language-select {
    background-color: #374151;
    color: var(--dark-text);
    border: 1px solid #4b5563;
  }
  
  .CodeMirror {
    height: 200px !important;
    border-radius: var(--border-radius);
    font-family: 'Fira Code', monospace;
    margin-bottom: 1rem;
  }
  
  .editor-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  #code-output {
    background-color: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: 'Fira Code', monospace;
    max-height: 150px;
    overflow-y: auto;
  }
  
  /* Coding Quiz */
  #coding-quiz {
    margin-bottom: 1rem;
  }
  
  /* GitHub Integration */
  .github-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .github-input input {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
  }
  
  body.dark-mode .github-input input {
    background-color: #374151;
    color: var(--dark-text);
    border: 1px solid #4b5563;
  }
  
  #github-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* 3D Progress Visualization */
  #progress-3d {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  /* Journal */
  #journal {
    width: 100%;
    height: 150px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    resize: vertical;
  }
  
  body.dark-mode #journal {
    background-color: #374151;
    color: var(--dark-text);
    border: 1px solid #4b5563;
  }
  
  /* Calendar View */
  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .month-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  #calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
  }
  
  .calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    position: relative;
  }
  
  .calendar-day.completed {
    background-color: var(--accent-color);
    color: white;
  }
  
  .calendar-day.today {
    border: 2px solid var(--primary-color);
    font-weight: 600;
  }
  
  /* Motivational Quote */
  #motivational-quote {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
  }
  
  #quote-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.5rem;
  }
  
  #quote-author {
    font-weight: 600;
  }
  
  /* Responsiveness */
  @media (max-width: 768px) {
    .container {
      grid-template-columns: 1fr;
      padding: 0.5rem;
    }
    
    header h1 {
      font-size: 1.5rem;
    }
    
    .header-content {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .roadmap {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .milestone {
      width: 100%;
      margin-bottom: 0.5rem;
    }
    
    #pomodoro-timer {
      font-size: 2.5rem !important;
    }
    
    .pomodoro-controls {
      flex-direction: column;
      width: 100%;
    }
    
    .pomodoro-controls button {
      width: 100%;
    }
    
    .github-input {
      flex-direction: column;
    }
    
    .github-input input {
      width: 100%;
    }
    
    #github-stats {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .stats-row {
      grid-template-columns: 1fr;
    }
    
    .card {
      padding: 1rem;
    }
    
    button {
      font-size: 0.875rem;
      padding: 0.4rem 0.8rem;
    }
    
    #pomodoro-timer {
      font-size: 2rem !important;
    }
  }
  
  /* Animate elements */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .card {
    animation: fadeIn 0.5s ease forwards;
  }
  
  .card:nth-child(2) { animation-delay: 0.1s; }
  .card:nth-child(3) { animation-delay: 0.2s; }
  .card:nth-child(4) { animation-delay: 0.3s; }
  .card:nth-child(5) { animation-delay: 0.4s; }
  
  /* Form Elements */
  input, select, textarea {
    outline: none;
    transition: var(--transition);
  }
  
  input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  }
  
  /* Customize Checkbox */
  input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
  }
  
  input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
  }
  
  /* Add smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }
  
  /* Make sure all focus states are visible for accessibility */
  *:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }