* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --light-bg: #ecf0f1;
  --dark-text: #2c3e50;
  --light-text: #7f8c8d;
  --white: #ffffff;
  --border-color: #bdc3c7;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: #fdfdfd;
  --text-color: #333;
  --primary-rgb: 44, 62, 80;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--secondary-color);
  background: rgba(52, 152, 219, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
}

.hamburger:hover {
  background: rgba(52, 152, 219, 0.1);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-logo h2 {
    font-size: 1.3rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    gap: 0;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-menu a {
    padding: 1rem 2rem;
    display: block;
    font-size: 1.1rem;
    margin: 0 1rem;
    border-radius: 8px;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--light-bg);
    color: var(--secondary-color);
  }
}

/* Mobile Menu Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.countdown-item span {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.countdown-item label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.next-exam {
  font-size: 1.1rem;
  margin-top: 1rem;
}

#next-exam-subject {
  font-weight: bold;
  color: var(--warning-color);
}

/* Improved Page Header */
.page-header {
  background: var(--gradient);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  margin-top: 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Tracker Styles */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 12px;
}

.header-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert i {
  margin-right: 0.5rem;
}

.daily-progress-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #e3f2fd;
}

.daily-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.daily-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-label {
  font-weight: 500;
  color: #666;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-target {
  color: #888;
  font-size: 0.9rem;
}

.daily-status {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
}

.daily-status.complete {
  background: #d4edda;
  color: #155724;
}

.daily-status.incomplete {
  background: #f8d7da;
  color: #721c24;
}

.status-complete {
  color: #28a745;
}

.status-incomplete {
  color: #dc3545;
}

/* Modal Styles */
.modal {
  display: none;
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 2rem;
  border: none;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.large-modal {
  max-width: 800px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

.modal-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.goals-form {
  margin-top: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row label {
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.form-row input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.form-row input[type="number"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-row small {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  width: 100%;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* Daily Planner Styles */
.time-schedule {
  margin: 1.5rem 0;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.schedule-item.break {
  background: #e9ecef;
  border-left-color: #6c757d;
  opacity: 0.7;
}

.time-slot {
  font-weight: bold;
  color: var(--primary-color);
  min-width: 120px;
  font-size: 0.9rem;
}

.task {
  flex: 1;
  font-weight: 500;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.daily-summary {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.target-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  font-weight: 500;
}

.target-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Quick Actions Enhancement */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-btn {
  background: var(--success-color);
  color: white;
}

.reset-btn {
  background: #dc3545;
  color: white;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Routine Table */
.routine-section {
  background: var(--white);
}

.table-container {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.routine-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.routine-table th,
.routine-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.routine-table th {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.routine-table tr:hover {
  background: rgba(52, 152, 219, 0.05);
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-upcoming {
  background: var(--secondary-color);
  color: var(--white);
}

.status-today {
  background: var(--accent-color);
  color: var(--white);
  animation: pulse 2s infinite;
}

.status-completed {
  background: var(--success-color);
  color: var(--white);
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-color);
}

.btn-primary:hover {
  background: #1a252f;
}

.btn-success {
  background: var(--success-color);
}

.btn-success:hover {
  background: #219a52;
}

.btn-warning {
  background: var(--warning-color);
}

.btn-warning:hover {
  background: #d68910;
}

/* Study Plans */
.plan-selector {
  text-align: center;
  margin-bottom: 3rem;
}

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan-tab {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.plan-tab.active,
.plan-tab:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.plan-content {
  display: none;
}

.plan-content.active {
  display: block;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.study-table th,
.study-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.study-table th {
  background: var(--primary-color);
  color: var(--white);
}

/* Tools */
.timer-container {
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.timer-display {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 2rem 0;
  font-family: "Courier New", monospace;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.timer-presets {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.preset-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preset-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Progress Tracking */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.progress-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--light-bg);
  border-radius: 5px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--success-color);
  transition: width 0.3s ease;
}

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.checklist input[type="checkbox"] {
  transform: scale(1.2);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

/* Resources Page Styles */
.resources-section {
  padding: 2rem 0;
}

.resource-category {
  margin-bottom: 3rem;
}

.resource-category h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

.resource-card:hover {
  transform: translateY(-3px);
}

.resource-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.resource-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.resource-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-list {
  list-style: none;
  margin: 1rem 0;
}

.resource-list li {
  padding: 0.25rem 0;
  color: var(--dark-text);
}

/* Tools Page Styles */
.tools-section {
  padding: 2rem 0;
}

.tool-card {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-header {
  background: var(--gradient);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.tool-header h2 {
  margin-bottom: 0.5rem;
}

.pomodoro-container {
  padding: 2rem;
  text-align: center;
}

.timer-display {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-family: "Courier New", monospace;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-presets h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.preset-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--light-bg);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preset-btn:hover {
  background: var(--secondary-color);
  color: white;
}

.tips-container {
  padding: 2rem;
}

.tip-category {
  margin-bottom: 2rem;
}

.tip-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

.tips-list {
  list-style: none;
  margin-left: 1rem;
}

.tips-list li {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.tips-list li strong {
  color: var(--primary-color);
}

.subject-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.subject-tip {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
}

.subject-tip h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.subject-tip ul {
  list-style: none;
}

.subject-tip li {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.quick-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.quick-tool {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border-top: 4px solid var(--warning-color);
}

.quick-tool h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.quick-tool p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* About Page Styles */
.about-section {
  padding: 2rem 0;
}

.about-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.about-card h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.features-highlight {
  margin-top: 2rem;
}

.features-highlight h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--light-bg);
  border-radius: 5px;
}

.feature-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
}

.tech-item i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.tech-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.tech-benefits {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 10px;
}

.tech-benefits h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-benefits ul {
  list-style: none;
}

.tech-benefits li {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.tech-benefits li strong {
  color: var(--primary-color);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.audience-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border-top: 4px solid var(--secondary-color);
}

.audience-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.audience-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.story-points {
  margin-top: 2rem;
}

.story-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
}

.story-icon {
  background: var(--secondary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.future-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 10px;
  border-left: 4px solid var(--warning-color);
}

.plan-item i {
  font-size: 2rem;
  color: var(--warning-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.plan-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.license-info {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.license-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.license-info ul {
  list-style: none;
  margin: 1rem 0;
}

.license-info li {
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.license-info li strong {
  color: var(--primary-color);
}

/* Button Variations */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: white;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #219a52;
}

.btn-warning {
  background: var(--warning-color);
  color: white;
}

.btn-warning:hover {
  background: #d68910;
}

.btn-secondary {
  background: var(--light-text);
  color: white;
}

.btn-secondary:hover {
  background: #6c7b7d;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation for better UX */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card,
.tool-card,
.resource-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation delays */
.about-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-card:nth-child(2) {
  animation-delay: 0.2s;
}
.about-card:nth-child(3) {
  animation-delay: 0.3s;
}
.about-card:nth-child(4) {
  animation-delay: 0.4s;
}
.about-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Better focus states for accessibility */
.btn:focus,
.hamburger:focus,
.nav-menu a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced mobile navigation design */
@media (max-width: 768px) {
  .nav-menu {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.98) 100%
    );
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu a {
    position: relative;
    overflow: hidden;
  }

  .nav-menu a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(52, 152, 219, 0.1),
      transparent
    );
    transition: left 0.5s;
  }

  .nav-menu a:hover::before {
    left: 100%;
  }
}

/* Study Planner Specific Styles */
.schedule-overview {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
  color: white;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.time-slot {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.time-slot h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.time-slot .time {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.time-slot p:last-child {
  margin: 0;
  opacity: 0.9;
}

.targets-overview {
  margin: 3rem 0;
}

.target-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.target-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.target-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.target-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.target-card p {
  margin: 0.5rem 0;
  color: var(--text-color);
}

.target-card strong {
  color: var(--accent-color);
}

.daily-plan {
  margin: 3rem 0;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.subject-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.subject-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subject-card ul {
  list-style: none;
  padding: 0;
}

.subject-card li {
  padding: 0.3rem 0;
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.subject-card li:last-child {
  border-bottom: none;
}

.subject-card strong {
  color: var(--accent-color);
}

.study-tips {
  margin: 3rem 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tip-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent-color);
}

.tip-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-card ul {
  list-style: none;
  padding: 0;
}

.tip-card li {
  padding: 0.3rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1rem;
}

.tip-card li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Enhanced table styling for study schedule */
.study-table th:first-child {
  width: 80px;
  text-align: center;
}

.study-table td:first-child {
  text-align: center;
  font-weight: bold;
  background: rgba(var(--primary-rgb), 0.1);
}

.study-table td {
  vertical-align: middle;
  padding: 1rem 0.8rem;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dail,
.daily-plan {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 40px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 600px;
}

thead th {
  background-color: #3498db;
  color: white;
  text-align: left;
  padding: 12px;
}

tbody td {
  background-color: #fdfdfd;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) td {
  background-color: #f4f8fb;
}

tbody tr:hover td {
  background-color: #ecf5fc;
}

th,
td {
  text-align: left;
}

i.fa,
i.fas {
  color: #2980b9;
}

@media screen and (max-width: 768px) {
  h2 {
    font-size: 20px;
  }

  table {
    font-size: 14px;
  }

  .dail,
  .daily-plan {
    padding: 16px;
  }
}
.task-timer {
  display: block;
  margin-top: 6px;
  font-weight: bold;
  color: #007bff;
}
.today {
  background-color: #fff4cc;
}

.done {
  background-color: #c8e6c9;
  text-decoration: line-through;
}
.tool,
.subject {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
button {
  margin-top: 10px;
}
textarea,
input {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.flashcard-front,
.flashcard-back {
  display: none;
}

.day-complete {
  background-color: #a5d6a7 !important;
  font-weight: bold;
}
/* Color coding for different subjects */
.subject-card:nth-child(1) {
  border-left: 4px solid #e74c3c;
} /* Physics - Red */
.subject-card:nth-child(2) {
  border-left: 4px solid #3498db;
} /* Chemistry - Blue */
.subject-card:nth-child(3) {
  border-left: 4px solid #f39c12;
} /* Math - Orange */
.subject-card:nth-child(4) {
  border-left: 4px solid #27ae60;
} /* Biology - Green */
.subject-card:nth-child(5) {
  border-left: 4px solid #9b59b6;
} /* Bangla - Purple */
.subject-card:nth-child(6) {
  border-left: 4px solid #34495e;
} /* English - Dark Blue */
.subject-card:nth-child(7) {
  border-left: 4px solid #e67e22;
} /* ICT - Dark Orange */

/* Responsive Design */
@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    align-items: center;
  }

  .daily-stats {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row input[type="number"] {
    width: 100%;
    max-width: 120px;
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .time-slot {
    min-width: auto;
  }
}

/* Responsive adjustments for study planner */
@media (max-width: 768px) {
  .time-slots {
    grid-template-columns: 1fr;
  }

  .target-cards {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .schedule-overview {
    padding: 1rem;
  }
}

/* Mobile-responsive timer fixes */
@media (max-width: 768px) {
  .countdown-container {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  
  .countdown-item {
    min-width: 70px !important;
    max-width: 80px !important;
    padding: 8px 4px !important;
    margin: 2px !important;
  }
  
  .countdown-item span {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  
  .countdown-item label {
    font-size: 0.7rem !important;
    margin-top: 2px !important;
  }
  
  /* Fix timer in tools page */
  .pomodoro-timer {
    max-width: 100% !important;
    padding: 15px !important;
  }
  
  .timer-display {
    font-size: 2rem !important;
    padding: 20px 10px !important;
  }
  
  .timer-controls {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .timer-controls button {
    min-width: 80px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }
  
  /* Fix progress tracker on mobile */
  .progress-card {
    padding: 10px !important;
    margin: 5px 0 !important;
  }
  
  .progress-bar {
    height: 8px !important;
  }
  
  /* Fix modal on mobile */
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    margin: 5% auto !important;
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .countdown-container {
    gap: 5px !important;
  }
  
  .countdown-item {
    min-width: 60px !important;
    max-width: 70px !important;
    padding: 6px 2px !important;
  }
  
  .countdown-item span {
    font-size: 1.2rem !important;
  }
  
  .countdown-item label {
    font-size: 0.6rem !important;
  }
  
  .timer-display {
    font-size: 1.5rem !important;
    padding: 15px 5px !important;
  }
  
  .hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .hero p {
    font-size: 0.9rem !important;
  }
}
