/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --success: #4cc9f0;
  --warning: #f72585;
  --info: #7209b7;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --body-bg: #f5f7ff;
  --card-bg: #ffffff;
  --text-color: #212529;
  --border-color: #e9ecef;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-bg);
  padding: 20px;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 2.5rem;
}

h2 {
  color: var(--secondary);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
}

h3 {
  color: var(--info);
  margin: 20px 0 10px;
}

p {
  margin-bottom: 20px;
}

.section {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ========== IMPLEMENT THE STYLES BELOW ========== */

/* Dark theme specific overrides */
.dark-theme .form-input,
.dark-theme .form-select,
.dark-theme .form-textarea {
  /* TODO: Add dark theme form control styles */
  /* HINT: Use background-color, color, and border-color */
  background-color: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

.dark-theme .table th {
  /* TODO: Add dark theme table header styles */
  /* HINT: Use background-color */
  background-color: #2d3748;
}

.dark-theme .code-editor {
  /* TODO: Add dark theme code editor styles */
  /* HINT: Use background-color */
  background-color: #1e1e1e;
}

/* Card Styles */
.card {
  /* TODO: Add card styles */
  /* HINT: Use background-color, border-radius, box-shadow, transition */
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.card:hover {
  /* TODO: Add hover styles for card */
  /* HINT: Use transform and box-shadow */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
  /* TODO: Add card image styles */
  /* HINT: Set width, height, and object-fit */
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  /* TODO: Add card content styles */
  /* HINT: Add padding */
  padding: 20px;
}

.card-title {
  /* TODO: Add card title styles */
  /* HINT: Set font-size, margin, and color */
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-text {
  /* TODO: Add card text styles */
  /* HINT: Set color and margin */
  color: var(--gray);
  margin-bottom: 15px;  
}

/* Button Styles */
.btn {
  /* TODO: Add button styles */
  /* HINT: Use display, padding, background-color, color, border, border-radius, cursor, transition */
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  /* TODO: Add button hover styles */
  /* HINT: Change background-color */
  background-color: var(--secondary);
}

.btn-success {
  /* TODO: Add success button styles */
  /* HINT: Change background-color */
  background-color: var(--success);
}

.btn-warning {
  /* TODO: Add warning button styles */
  /* HINT: Change background-color */
  background-color: var(--warning);
}

.btn-info {
  /* TODO: Add info button styles */
  /* HINT: Change background-color */
  background-color: var(--info);
}

.btn-outline {
  /* TODO: Add outline button styles */
  /* HINT: Transparent background with border and specific text color */
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary)
}

.btn-outline:hover {
  /* TODO: Add hover styles for outline button */
  /* HINT: Change background-color and text color */
  background-color: var(--primary);
  color: var(--white);
}

.btn-group {
  /* TODO: Add button group styles */
  /* HINT: Use display and gap */
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
}

/* Chip Styles */
.chips-container {
  /* TODO: Add chips container styles */
  /* HINT: Use display, flex-wrap, gap, and margin */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  /* TODO: Add chip styles */
  /* HINT: Use display, align-items, padding, background-color, border-radius, font-size, color, and cursor */
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background-color: var(--light-gray);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
}

.chip.active {
  /* TODO: Add active chip styles */
  /* HINT: Change background-color and color */
  background-color: var(--primary);
  color: var(--white);
}

.chip i {
  /* TODO: Add icon styles within chips */
  /* HINT: Use margin-right */
  margin-right: 5px;
}

.chip .close {
  /* TODO: Add close button styles within chips */
  /* HINT: Use margin-left, cursor, and font-weight */
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Slider Styles */
.slider-container {
  /* TODO: Add slider container styles */
  /* HINT: Use margin */
  margin: 20px 0;
}

.slider {
  /* TODO: Add slider styles */
  /* HINT: Use appearance, width, height, border-radius, background, and outline */
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--light-gray);
  outline: none;
}

.slider::-webkit-slider-thumb {
  /* TODO: Add slider thumb styles */
  /* HINT: Use appearance, width, height, border-radius, background, cursor, and transition */
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: background 0.3s;
}

.slider::-webkit-slider-thumb:hover {
  /* TODO: Add hover styles for slider thumb */
  /* HINT: Use background and transform */
  background: var(--secondary);
  transform: scale(1.1);
}

.slider-value {
  /* TODO: Add slider value styles */
  /* HINT: Use text-align, font-weight, and color */
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}

/* Switch Styles */
.switch-container {
  /* TODO: Add switch container styles */
  /* HINT: Use display, align-items, and margin */
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.switch {
  /* TODO: Add switch styles */
  /* HINT: Use position, display, width, height, and margin-right */
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

.switch input {
  /* TODO: Add switch input styles */
  /* HINT: Use opacity, width, and height */
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  /* TODO: Add slider round styles */
  /* HINT: Use position, cursor, top/left/right/bottom properties, background-color, transition, and border-radius */
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  transition: 0.4s; 
  border-radius: 34px;
}

.slider-round:before {
  /* TODO: Add slider round before element styles */
  /* HINT: Use position, content, height, width, left, bottom, background-color, transition, and border-radius */
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 0;
  bottom: 0;
  background-color: var(--primary);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider-round {
  /* TODO: Add checked slider round styles */
  /* HINT: Change background-color */
  background-color: var(--secondary);
}

input:checked + .slider-round:before {
  /* TODO: Add checked slider round before element styles */
  /* HINT: Use transform with translateX */
  transform: translateX(26px);
}

/* List Styles */
.list {
  /* TODO: Add list styles */
  /* HINT: Use list-style-type, background-color, border-radius, overflow, and box-shadow */
  list-style-type: none;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.list-item {
  /* TODO: Add list item styles */
  /* HINT: Use padding, border-bottom, display, align-items, cursor, and transition */
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.list-item:last-child {
  /* TODO: Add styles for last list item */
  /* HINT: Remove border-bottom */
  border-bottom: none;
}

.list-item:hover {
  /* TODO: Add hover styles for list items */
  /* HINT: Change background-color */
  background-color: var(--light-gray);
}

.list-item i {
  /* TODO: Add icon styles in list items */
  /* HINT: Use margin-right and color */
  margin-right: 15px;
  color: var(--primary);
}

.list-item .avatar {
  /* TODO: Add avatar styles in list items */
  /* HINT: Use width, height, border-radius, margin-right, and object-fit */
  
  /* !!! Class not implemented !!! */
}

/* Form Styles */
.form-group {
  /* TODO: Add form group styles */
  /* HINT: Add margin-bottom */
  margin-bottom: 20px;
}

.form-label {
  /* TODO: Add form label styles */
  /* HINT: Use display, margin, and font-weight */
  display: block;
  margin-bottom: 8px;
  font-weight: 600;

}

.form-input {
  /* TODO: Add form input styles */
  /* HINT: Use width, padding, border, border-radius, font-size, transition */
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  /* TODO: Add focus styles for form inputs */
  /* HINT: Use outline, border-color, and box-shadow */
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(67, 97, 238, 0.5);
}

.form-select {
  /* TODO: Add form select styles */
  /* HINT: Similar to form-input, with additional background-color */
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  background-color: var(--card-bg);
  
}

.form-textarea {
  /* TODO: Add textarea styles */
  /* HINT: Similar to form-input, with additional min-height and resize properties */
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  min-height: 100px;
  resize: vertical;
}

/* Table Styles */
.table-container {
  /* TODO: Add table container styles */
  /* HINT: Use overflow-x and margin */
  overflow-x: auto;
  margin: 20px 0;
}

.table {
  /* TODO: Add table styles */
  /* HINT: Use width, border-collapse, border-spacing */
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table th,
.table td {
  /* TODO: Add table cell styles */
  /* HINT: Use padding, text-align, border-bottom */
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  /* TODO: Add table header styles */
  /* HINT: Use background-color, font-weight, cursor */
  background-color: var(--light-gray);
  font-weight: 600;
  cursor: pointer;
}

.table th:hover {
  /* TODO: Add hover styles for table headers */
  /* HINT: Change background-color */
  background-color: var(--primary);
  color: var(--white);
}

.table tr {
  /* TODO: Add table row styles */
  /* HINT: Use transition */
  transition: var(--transition);
}

.table tr:hover {
  /* TODO: Add hover styles for table rows */
  /* HINT: Change background-color with rgba for transparency */
  background-color: rgba(67, 97, 238, 0.1);
}

/* Badge Styles */
.badge {
  /* TODO: Add badge styles */
  /* HINT: Use display, padding, border-radius, font-size, font-weight, and margin-left */
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.badge-primary {
  /* TODO: Add primary badge styles */
  /* HINT: Use background-color and color */
  background-color: var(--primary);
  color: var(--white);
}

.badge-success {
  /* TODO: Add success badge styles */
  /* HINT: Use background-color and color */
  background-color: var(--success);
  color: var(--white);
}

.badge-warning {
  /* TODO: Add warning badge styles */
  /* HINT: Use background-color and color */
  background-color: var(--warning);
  color: var(--white);
}

/* Alert Styles */
.alert {
  /* TODO: Add alert styles */
  /* HINT: Use padding, border-radius, margin-bottom, display, align-items, and justify-content */
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert i {
  /* TODO: Add icon styles in alerts */
  /* HINT: Use margin-right and font-size */
  margin-right: 10px;
  font-size: 1.2rem;
}

.alert-content {
  /* TODO: Add alert content styles */
  /* HINT: Use display and align-items */
  display: flex;
  align-items: center;
}

.alert-close {
  /* TODO: Add alert close button styles */
  /* HINT: Use cursor and font-weight */
  cursor: pointer;
  font-weight: bold;
}

.alert-success {
  /* TODO: Add success alert styles */
  /* HINT: Use background-color, color, and border-left */
  background-color: #d4edda;
  color: #155724;
  border-left: 5px solid #28a745;
}

.alert-warning {
  /* TODO: Add warning alert styles */
  /* HINT: Use background-color, color, and border-left */
  background-color: #fff3cd;
  color: #856404;
  border-left: 5px solid #ffc107;
}

.alert-info {
  /* TODO: Add info alert styles */
  /* HINT: Use background-color, color, and border-left */
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 5px solid #17a2b8;
}

/* Navigation Styles */
.nav {
  /* TODO: Add navigation styles */
  /* HINT: Use display, background-color, border-radius, overflow, and margin-bottom */
  display: flex;
  background-color: var(--card-bg);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.nav-item {
  /* TODO: Add navigation item styles */
  /* HINT: Use padding, color, text-decoration, transition */
  padding: 10px 15px;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.nav-item:hover {
  /* TODO: Add hover styles for nav items */
  /* HINT: Change background-color */
  background-color: var(--light-gray);
}

.nav-item.active {
  /* TODO: Add styles for active nav item */
  /* HINT: Use background-color and font-weight */
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

/* Progress Bar Styles */
.progress {
  /* TODO: Add progress bar container styles */
  /* HINT: Use height, background-color, border-radius, margin, and overflow */
  height: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  /* TODO: Add progress bar styles */
  /* HINT: Use height, border-radius, and transition */
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-primary {
  /* TODO: Add primary progress bar styles */
  /* HINT: Use background-color */
  background-color: var(--primary);
}

.progress-success {
  /* TODO: Add success progress bar styles */
  /* HINT: Use background-color */
  background-color: var(--success);
}

/* Pagination Styles */
.pagination {
  /* TODO: Add pagination styles */
  /* HINT: Use display, list-style, padding, and margin */
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  /* TODO: Add page item styles */
  /* HINT: Use margin-right */
  margin-right: 5px;
}

.page-link {
  /* TODO: Add page link styles */
  /* HINT: Use display, padding, border, border-radius, color, text-decoration, transition, and cursor */
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.page-link:hover {
  /* TODO: Add hover styles for page links */
  /* HINT: Change background-color */
  background-color: var(--light-gray);
}

.page-item.active .page-link {
  /* TODO: Add styles for active page link */
  /* HINT: Use background-color, color, and border-color */
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Breadcrumb Styles */
.breadcrumb {
  /* TODO: Add breadcrumb styles */
  /* HINT: Use display, list-style, padding, and margin */
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  /* TODO: Add breadcrumb item styles */
  /* HINT: Use display and align-items */
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  /* TODO: Add separator for breadcrumb items */
  /* HINT: Use content, margin, and color */
  content: ">";
  margin: 0 8px;
  color: var(--gray);
}

.breadcrumb-link {
  /* TODO: Add breadcrumb link styles */
  /* HINT: Use color, text-decoration, and cursor */
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb-link:hover {
  /* TODO: Add hover styles for breadcrumb links */
  /* HINT: Add text-decoration */
  text-decoration: underline;
}

.breadcrumb-item.active {
  /* TODO: Add styles for active breadcrumb item */
  /* HINT: Use color */
  color: var(--dark);
}

/* Tooltip Styles */
.tooltip {
  /* TODO: Add tooltip styles */
  /* HINT: Use position, display, border-bottom, and cursor */
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--dark);
  cursor: help;
}

.tooltip .tooltip-text {
  /* TODO: Add tooltip text styles */
  /* HINT: Use visibility, width, background-color, color, text-align, border-radius, padding, position, z-index, bottom, left, margin-left, opacity, and transition */
  visibility: hidden;
  width: 120px;
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  border-radius: 5px;
  padding: 5px 0;
  position: absolute;
  z-index: 1000;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
  /* TODO: Add tooltip arrow styles */
  /* HINT: Use content, position, top, left, margin-left, border-width, border-style, and border-color */
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  /* TODO: Add hover styles for tooltip */
  /* HINT: Change visibility and opacity */
  visibility: visible;
  opacity: 1;
}

/* Accordion Styles */
.accordion {
  /* TODO: Add accordion styles */
  /* HINT: Use margin */
  margin: 20px 0;
}

.accordion-item {
  /* TODO: Add accordion item styles */
  /* HINT: Use border, border-radius, margin-bottom, and overflow */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  /* TODO: Add accordion header styles */
  /* HINT: Use padding, background-color, cursor, display, justify-content, align-items, and font-weight */
  padding: 15px 20px;
  background-color: var(--light-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.accordion-content {
  /* TODO: Add accordion content styles */
  /* HINT: Use padding, max-height, overflow, and transition */
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  /* TODO: Add styles for active accordion content */
  /* HINT: Use padding and max-height */
  padding: 15px 20px;
  max-height: 200px;
}

/* Modal Styles */
.modal {
  /* TODO: Add modal styles */
  /* HINT: Use display, position, top/left, width, height, background-color, z-index, justify-content, and align-items */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  /* TODO: Add modal content styles */
  /* HINT: Use background-color, border-radius, width, max-width, padding, and box-shadow */
  background-color: var(--card-bg);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.modal-header {
  /* TODO: Add modal header styles */
  /* HINT: Use display, justify-content, align-items, and margin-bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-title {
  /* TODO: Add modal title styles */
  /* HINT: Use font-size and color */
  font-size: 1.5rem;
  color: var(--dark);
}

.modal-close {
  /* TODO: Add modal close button styles */
  /* HINT: Use background, border, font-size, cursor, and color */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Tabs Styles */
.tabs {
  /* TODO: Add tabs container styles */
  /* HINT: Use margin */
  margin: 20px 0;
}

.tab-header {
  /* TODO: Add tab header styles */
  /* HINT: Use display and border-bottom */
  display: flex;
  border-bottom: 2px solid var(--border-color);
}

.tab-link {
  /* TODO: Add tab link styles */
  /* HINT: Use padding, cursor, transition, and border-bottom */
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-link:hover {
  /* TODO: Add hover styles for tab links */
  /* HINT: Change color */
  color: var(--primary);
}

.tab-link.active {
  /* TODO: Add styles for active tab link */
  /* HINT: Use color and border-bottom */
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  /* TODO: Add tab content styles */
  /* HINT: Use padding */
  padding: 20px 0;
}

.tab-pane {
  /* TODO: Add tab pane styles */
  /* HINT: Use display property */
  display: none;
}

.tab-pane.active {
  /* TODO: Add styles for active tab pane */
  /* HINT: Change display */
  display: block;
}

/* Dropdown Styles */
.dropdown {
  /* TODO: Add dropdown styles */
  /* HINT: Use position and display */
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  /* TODO: Add dropdown toggle styles */
  /* HINT: Use padding, background-color, color, border, border-radius, cursor, display, and align-items */
  padding: 10px 15px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-toggle::after {
  /* TODO: Add dropdown toggle indicator */
  /* HINT: Use content, margin-left, and font-size */
  content: "";
  margin-left: 5px;
  font-size: 0.8rem;
}

.dropdown-menu {
  /* TODO: Add dropdown menu styles */
  /* HINT: Use position, top, left, background-color, border-radius, box-shadow, min-width, z-index, and display */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  border-radius: 5px;
  box-shadow: var(--card-shadow);
  min-width: 160px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show {
  /* TODO: Add styles for visible dropdown menu */
  /* HINT: Change display */
  display: block;
}

.dropdown-item {
  /* TODO: Add dropdown item styles */
  /* HINT: Use padding, display, color, text-decoration, and transition */
  padding: 10px 15px;
  display: block;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  /* TODO: Add hover styles for dropdown items */
  /* HINT: Change background-color */
  background-color: var(--light-gray);
}

/* Toast Styles */

.toast-container {
  /* TODO: Add toast container styles */
  /* HINT: Use position, bottom, right, and z-index */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  /* TODO: Add toast styles */
  /* HINT: Use padding, background-color, border-radius, box-shadow, margin-bottom, display, align-items, justify-content, min-width, transform, opacity, and transition */
  padding: 15px 20px;
  background-color: var(--card-bg);
  border-radius: 5px;
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  /* TODO: Add styles for visible toast */
  /* HINT: Use transform and opacity */
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  /* TODO: Add success toast styles */
  /* HINT: Use border-left */
  border-left: 5px solid var(--success);
}

.toast-warning {
  /* TODO: Add warning toast styles */
  /* HINT: Use border-left */
  border-left: 5px solid var(--warning);
}

.toast-close {
  /* TODO: Add toast close button styles */
  /* HINT: Use cursor and font-weight */
  cursor: pointer;
  font-weight: 600;
  padding: 0 5px;
}

/* Code Editor Styles */
.code-editor {
  /* TODO: Add code editor styles */
  /* HINT: Use background-color, border-radius, padding, margin, font-family, color, and overflow-x */
  background-color: var(--light-gray);
  border-radius: 5px;
  padding: 15px;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
  color: var(--dark);
  overflow-x: auto;
}

.code-comment {
  /* TODO: Add code comment styles */
  /* HINT: Use color */
  color: var(--gray);
}

.code-selector {
  /* TODO: Add code selector styles */
  /* HINT: Use color */
  color: var(--primary);
}

.code-property {
  /* TODO: Add code property styles */
  /* HINT: Use color */
  color: var(--dark);
}

.code-value {
  /* TODO: Add code value styles */
  /* HINT: Use color */
  color: var(--info);
}

/* Theme Selector */

/* ⬇⬇⬇ Classes were not implemented!!! ⬇⬇⬇ */

.theme-selector {
  /* TODO: Add theme selector styles */
  /* HINT: Use position, top, right, and z-index */
}

.theme-btn {
  /* TODO: Add theme button styles */
  /* HINT: Use padding, background-color, color, border, border-radius, and cursor */
}

/* Animation Classes */

.fade-in {
  /* TODO: Add fade-in animation */
  /* HINT: Use animation property */
}

.slide-in {
  /* TODO: Add slide-in animation */
  /* HINT: Use animation property */
}

.bounce {
  /* TODO: Add bounce animation */
  /* HINT: Use animation property */
}

@keyframes fadeIn {
  /* TODO: Add fadeIn keyframes */
  /* HINT: Define from and to states with opacity */
}

@keyframes slideIn {
  /* TODO: Add slideIn keyframes */
  /* HINT: Define from and to states with transform and opacity */
}

@keyframes bounce {
  /* TODO: Add bounce keyframes */
  /* HINT: Define keyframe percentages with transform */
}
/* ⬆⬆⬆ Classes were not implemented!!! ⬆⬆⬆ */

/* Panel Header with close button */
.panel-header {
  /* TODO: Add panel header styles */
  /* HINT: Use display, justify-content, align-items, margin-bottom, border-bottom, and padding-bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.panel-close {
  /* TODO: Add panel close button styles */
  /* HINT: Use background, border, font-size, cursor, color, and transition */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
}

.panel-close:hover {
  /* TODO: Add hover styles for panel close button */
  /* HINT: Use color and transform */
  color: var(--primary);
  transform: scale(1.2);
}

/* Pull tab that appears on the left edge when panel is closed */
.panel-pull-tab {
  /* TODO: Add panel pull tab styles */
  /* HINT: Use position, top, left, transform, background-color, color, padding, border-radius, cursor, box-shadow, z-index, display, align-items, justify-content, and transition */
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: var(--light-gray);
  color: var(--dark);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.panel-pull-tab:hover {
  /* TODO: Add hover styles for panel pull tab */
  /* HINT: Use padding-right and background-color */
  padding-right: 15px;
  background-color: var(--primary);
}

/* Customization Panel */
.customization-panel {
  /* TODO: Add customization panel styles */
  /* HINT: Use position, top, left, width, height, background-color, box-shadow, padding, overflow-y, transform, transition, and z-index */
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.customization-panel.open {
  /* TODO: Add styles for open customization panel */
  /* HINT: Use transform */
  transform: translateX(0);
}

.panel-toggle {
  /* TODO: Add panel toggle styles */
  /* HINT: Use position, top, right, z-index, padding, background-color, color, border, border-radius, and cursor */
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  padding: 5px 10px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.color-option {
  /* TODO: Add color option styles */
  /* HINT: Use width, height, border-radius, display, margin, cursor, and border */
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option.active {
  /* TODO: Add active color option styles */
  /* HINT: Use border-color */
  border-color: var(--dark);
}

/* Interactive Widgets */
.interactive-widgets {
  /* TODO: Add interactive widgets container styles */
  /* HINT: Use display, grid-template-columns, gap, and margin-bottom */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.widget {
  /* TODO: Add widget styles */
  /* HINT: Use background-color, border-radius, box-shadow, padding, display, and transition */
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  transition: var(--transition);
}

.widget:hover {
  /* TODO: Add hover styles for widgets */
  /* HINT: Use transform and box-shadow */
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.widget i {
  /* TODO: Add widget icon styles */
  /* HINT: Use font-size, color, and margin-right */
  font-size: 2rem;
  color: var(--primary);
  margin-right: 15px;
}

.widget-content {
  /* TODO: Add widget content styles */
  /* HINT: Use flex property */
  flex: 1;
}

.widget h3 {
  /* TODO: Add widget heading styles */
  /* HINT: Use margin-top, margin-bottom, color, and font-size */
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* TODO: Add responsive styles for mobile */
  /* HINT: Adjust component-grid, btn-group, nav, and tab-header */

  .component-grid {
    /* Change grid to single column */
    grid-template-columns: 1fr;
  }

  .btn-group {
    /* Stack buttons vertically */
    flex-direction: column;
    gap: 10px;
  }

  .section .btn {
    /* Space between the stacked buttons */
    margin-bottom: 8px;
  }

  .nav {
    /* Make nav items stack vertically */
    flex-direction: column;
  }

  .tab-header {
    /* Make tab links stack vertically */
    flex-direction: column;
  }

  .interactive-widgets {
    /* Change widgets to single column */
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .breadcrumb {
    display: flex;
    flex-direction: column;
  }

  .pagination {
    display: flex;
    justify-content: center;
  }
}

/* ========== PRESERVED WIDGET STYLES ========== */

/* Clock Widget */
#clock {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 10px 0;
}

.clock-toggle {
  display: flex;
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
  width: fit-content;
}

.clock-toggle-btn {
  padding: 5px 10px;
  background-color: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.clock-toggle-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

/* Analog Clock */
#analog-clock-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

#analog-clock {
  width: 150px;
  height: 150px;
}

#date {
  color: var(--gray);
}

/* Calendar Widget */
#current-month {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  /* width: 30px; */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
}

.calendar-day.current {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

.calendar-day.day-name {
  font-weight: bold;
  color: var(--dark);
}

/* Mood Widget */
.mood-tracker {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}

.mood-emoji {
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mood-emoji:hover {
  transform: scale(1.2);
}

#mood-response {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  height: 20px;
}

/* Dark theme overrides for widgets */
.dark-theme .widget {
  background-color: var(--card-bg);
}

.dark-theme #date,
.dark-theme #mood-response {
  color: var(--text-color);
  opacity: 0.8;
}

/* Footer Styles */
.footer {
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  padding: 0 20px;
}

.footer p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

/* Dark theme override for footer */
.dark-theme .footer {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* Challenge Instructions Section Styling */
.instruction-section {
  border-left: 4px solid var(--primary);
  background-color: rgba(67, 97, 238, 0.05);
  position: relative;
}

.instruction-section h2 {
  color: var(--primary);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.instruction-section ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.instruction-section li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 10px;
}

.instruction-section li::marker {
  color: var(--primary);
  font-weight: 600;
}

.instruction-section strong {
  color: var(--primary);
  font-weight: 600;
}

.instruction-section p:last-child {
  background-color: rgba(67, 97, 238, 0.1);
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 3px solid var(--primary);
}

/* Dark theme overrides */
.dark-theme .instruction-section {
  background-color: rgba(123, 104, 238, 0.1);
}

.dark-theme .instruction-section p:last-child {
  background-color: rgba(76, 201, 240, 0.1);
}
