
/* ZenTrack - Modern Productivity Tracker Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* CSS Variables for Theme Colors */
  :root {
    /* Light Theme */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow: 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.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-color: #a0aec0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
  }
  
  /* Dark Theme */
  [data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --bg-secondary: #1a202c;
    --bg-card: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  }
  
  /* Base Typography */
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header */
  .header {
    background: var(--bg-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
  }
  
  .header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Dark Mode Toggle */
  .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }
  
  [data-theme="dark"] .sun-icon {
    display: none;
  }
  
  [data-theme="light"] .moon-icon,
  :root .moon-icon {
    display: none;
  }
  
  /* Main Content */
  .main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
  }
  
  /* Cards */
  .card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .fade-in:nth-child(1) { animation-delay: 0.1s; }
  .fade-in:nth-child(2) { animation-delay: 0.2s; }
  .fade-in:nth-child(3) { animation-delay: 0.3s; }
  .fade-in:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Quote Section */
  .quote-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .quote-container {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 12px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .quote-container::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.3;
  }
  
  .quote-text {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .quote-author {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
  }
  
  /* Features Grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  /* Buttons */
  .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
  }
  
  .btn-secondary:hover {
    background: #90a3b8;
  }
  
  /* To-Do Section */
  .todo-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .todo-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
  }
  
  .todo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .todo-list {
    list-style: none;
    margin-bottom: 1rem;
  }
  
  .todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  
  .todo-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
  }
  
  .todo-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
  }
  
  .todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  
  .todo-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
  }
  
  .todo-delete {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
  }
  
  .todo-delete:hover {
    background: #e53e3e;
    transform: scale(1.05);
  }
  
  .todo-stats {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  /* Journal Section */
  .journal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .journal-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
  }
  
  .journal-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .journal-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--success-color);
    text-align: center;
  }
  
  /* Timer Section */
  .timer-display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
  }
  
  .timer-mode {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  
  .timer-settings {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .timer-settings label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .timer-settings input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
  }
  
  .timer-settings input:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  /* Footer */
  .footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      padding: 0 15px;
    }
    
    .header-content {
      flex-direction: column;
      gap: 1rem;
    }
    
    .logo {
      font-size: 1.75rem;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .card {
      padding: 1.5rem;
    }
    
    .quote-text {
      font-size: 1.1rem;
    }
    
    .timer-display {
      font-size: 2.5rem;
    }
    
    .todo-input-container {
      flex-direction: column;
    }
    
    .timer-controls {
      flex-direction: column;
      align-items: center;
    }
    
    .timer-settings {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 480px) {
    .main {
      padding: 1rem 0;
    }
    
    .card {
      padding: 1rem;
    }
    
    .quote-container {
      padding: 1.5rem;
    }
    
    .timer-display {
      font-size: 2rem;
    }
    
    .section-title {
      font-size: 1.3rem;
    }
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
  }
  
  /* Loading Animation */
  .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Pulsing Animation for Active Timer */
  .timer-active .timer-display {
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  