/* ----------------------------
   GENERAL RESET
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

body {
  background-color: #f5f7fa;
  color: #333;
  margin: 0;
}

.app-layout,
.seo-article {
  padding: 20px;
}

/* ----------------------------
   APP LAYOUT
---------------------------- */
.app-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* MAIN PANEL */
.center-panel {
  flex: 3;
  min-width: 300px;
}

/* RIGHT PANEL ADS */
.right-panel {
  flex: 1;
  min-width: 200px;
}

.ad-box {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* ----------------------------
   APP HEADER
---------------------------- */
.app-header {
  background-color: #4caf50;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* ----------------------------
   ACTIVE TASK BOX
---------------------------- */
#activeTaskBox {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

#activeTaskBox h2 {
  margin-bottom: 10px;
}

#activeTaskBox p {
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 15px;
}

.active-controls button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.active-controls button:hover {
  background-color: #45a049;
}

/* ----------------------------
   TASK FORM
---------------------------- */
#taskForm {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#taskForm input, 
#taskForm select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex: 1;
  min-width: 120px;
}

#taskForm button {
  background-color: #2196f3;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#taskForm button:hover {
  background-color: #1976d2;
}

/* ----------------------------
   TASK LISTS
---------------------------- */
.tasks-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.task-column {
  flex: 1;
  min-width: 250px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.task-column h2 {
  margin-bottom: 10px;
}

ul {
  list-style: none;
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  margin-bottom: 10px;
  border: 1.5px solid #aac3ff;
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: 0.3s;
}

.task .task-name {
  font-weight: 500;
}

.task .time {
  font-size: 0.9em;
  color: #555;
}

.task .progress-container {
  width: 100%;
  background-color: #e0e0e0;
  height: 5px;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.task .progress-bar {
  height: 5px;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s;
}

.delete-btn {
  background-color: transparent;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 1.2em;
}

/* Highlight active task */
.task.active {
  border: 2px solid #4caf50;
  background-color: #e8f5e9;
}

/* ----------------------------
   SEO ARTICLE
---------------------------- */
.seo-article {
  background-color: #fff;
  padding: 30px;
  margin-top: 30px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.seo-article h1, 
.seo-article h2, 
.seo-article h3 {
  margin-bottom: 15px;
  color: #333;
}

.seo-article p {
  margin-bottom: 15px;
  color: #555;
}

.seo-article ul, 
.seo-article ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.seo-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.seo-article table th, 
.seo-article table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.seo-article table th {
  background-color: #f1f1f1;
}

.toc {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.toc h2 {
  margin-bottom: 10px;
}

.toc ul {
  list-style-type: disc;
  margin-left: 20px;
}

.toc ul li {
  margin-bottom: 5px;
}

.toc ul li a {
  text-decoration: none;
  color: #2196f3;
  transition: 0.3s;
}

.toc ul li a:hover {
  text-decoration: underline;
}

/* FAQ Styling */
.seo-article h3 {
  color: #4caf50;
  margin-top: 20px;
}

/* ----------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 768px) {
  .tasks-row {
    flex-direction: column;
  }

  .center-panel, .right-panel {
    min-width: 100%;
  }

  #taskForm {
    flex-direction: column;
  }
}

/* ----------------------------
   ACCESSIBILITY
---------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* =========================
   GLOBAL HEADER
========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #3498db;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.site-header .logo {
  cursor: pointer;
}

.site-nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #f1c40f;
}

/* =========================
   GLOBAL FOOTER
========================= */
.site-footer {
  background: #1a252f;
  color: #b0bec5;
  padding: 20px 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid #f39c12;
  margin-top: 40px;
}

.site-footer a {
  color: #90caf9;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ffb74d;
}

/* =========================
   FULLSCREEN SUPPORT
========================= */
body.fullscreen .site-header,
body.fullscreen .site-footer {
  display: none;
}
