html {
  height: 100%;
  width: 100%;
  font-family: "Titillium Web", sans-serif;
}

body {
  min-height: 100%;
  min-width: 100%;
  background-color: lightgreen;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 45px;
}

button {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #007acc;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}

#main-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.3);
  padding: 15px 20px 18px 18px;
  border-radius: 5px;
  box-shadow: 2px 5px 5px #333;
}

#list {
  margin: 10px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.75);
  padding: 15px 20px 18px 18px;
  border-radius: 5px;
  box-shadow: 2px 5px 5px #333;
}

/* VIP SIMPLE PREMIUM HEADER - FIXED */
.vip-header {
  position: relative;
  text-align: center;
  margin: 50px 0 20px 0;
  padding: 60px 0 40px 0;
}

.vip-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  position: relative;
  text-transform: uppercase;
  display: inline-block;
}

.vip-title::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
  animation: shine 3s ease-in-out infinite;
}

/* VIP Dinosaur */
.dino-vip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 45px;
  animation: vipDino 6s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  z-index: 10;
}

/* VIP Underline */
.vip-underline {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
  animation: vipDraw 2s ease-out 0.5s forwards;
}

/* VIP Badge - FIXED POSITION */
.vip-badge {
  font-size: 1rem;
  color: #e74c3c;
  font-weight: 600;
  animation: badgePulse 2s infinite;
  vertical-align: super;
  margin-left: 2px;
}

/* STATISTICS - ENHANCED STYLING */
.stats-container {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  margin: 0 auto 25px auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 90%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  display: block;
  font-size: 26px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
  font-size: 12px;
  color: #2c3e50;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes vipDino {
  0%, 100% { 
    transform: translateX(-200px) scale(1);
    filter: hue-rotate(0deg);
  }
  25% { 
    transform: translateX(-100px) scale(1.1);
  }
  50% { 
    transform: translateX(0px) scale(1);
    filter: hue-rotate(180deg);
  }
  75% { 
    transform: translateX(100px) scale(1.1);
  }
  100% { 
    transform: translateX(200px) scale(1);
    filter: hue-rotate(360deg);
  }
}

@keyframes vipDraw {
  0% { 
    width: 0;
    opacity: 0;
  }
  50% {
    width: 120%;
    opacity: 1;
  }
  100% { 
    width: 100%;
    opacity: 1;
  }
}

@keyframes shine {
  0%, 100% { 
    opacity: 0.3;
    width: 100px;
  }
  50% { 
    opacity: 1;
    width: 150px;
  }
}

@keyframes badgePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.7;
  }
  50% { 
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Subtle background effect */
.vip-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* TASK STYLES */
.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin-left: 8px;
}

.priority-high { background-color: red; }
.priority-medium { background-color: orange; }
.priority-low { background-color: green; }

li {
  transition: all 0.3s ease;
}

li:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* SORT TOOLBAR */
#sort-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  margin-top: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 2px 5px 5px #333;
}

#sort-toolbar h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.sort-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sort-buttons button {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sort-buttons button:hover {
  background-color: #555;
}

/* TASK ITEMS */
li.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.task-content {
  flex-grow: 1;
  padding-right: 10px;
}

.task-controls {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.action-menu {
  background: none;
  border: none;
  font-size: 18px;
  color: black;
  cursor: pointer;
  margin-left: 10px;
}

.action-dropdown {
  position: absolute;
  top: 30px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  min-width: 120px;
}

.action-dropdown button {
  display: block;
  width: 100%;
  background-color: #007acc; 
  color: white;              
  border: none;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
  transition: background-color 0.3s ease;
}

.action-dropdown button:hover {
  background-color: #005fa3; 
}

.task-item {
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FORM STYLES */
#create-task-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.25);
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #888;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.85);
}

#add-task-btn {
  background: #007acc;
  border: none;
  color: white;
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: center;
  width: 50%;
}

#add-task-btn:hover {
  background: #005fa3;
}

/* MYTASKALYPSE ANIMATIONS */
.writing-pencil {
  font-size: 24px;
  margin-right: 5px;
  animation: writingMotion 1.5s infinite ease-in-out;
  display: inline-block;
}

.task-icon {
  font-size: 24px;
  margin-right: 10px;
  animation: pulse 2s infinite, rotate 4s infinite linear;
  display: inline-block;
}

.animated-title {
  background: linear-gradient(45deg, #007acc, #00cc88, #ff6b6b, #ffd93d);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
}

@keyframes writingMotion {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(5px) rotate(-5deg); }
  50% { transform: translateX(10px) rotate(0deg); }
  75% { transform: translateX(5px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #b2f7b2, #ffb2b2);
  color: #222;
  text-align: center;
  padding: 4px 0;
  font-size: 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer-text {
  max-width: 90%;
  margin: 0 auto;
}

footer a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}

footer a:hover {
  text-decoration: underline;
}

#quote-text {
  display: block;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 2px;
  line-height: 1.3;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#quote-author {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
  #add-task-btn {
    width: 100%;
  }
  #main-content h1 {
    font-size: 2rem;
    padding: 50px 0 25px 0;
  }
  .dino {
    font-size: 30px;
  }
  .vip-title {
    font-size: 2.5rem;
  }
}
/* FIX DROPDOWN COLLISION WITH HOVER EFFECT */
li.task-item {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

li.task-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2; /* Keep it low so dropdown can overlap */
}

/* IMPORTANT: Make sure dropdown has higher z-index */
.action-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100; /* Higher than task item */
  min-width: 120px;
  display: none;
}

.action-dropdown.show {
  display: block;
}

/* When dropdown is open, prevent the hover effect from interfering */
li.task-item:has(.action-dropdown.show):hover {
  z-index: 1; /* Keep it low when dropdown is open */
}
/* ==================== PREMIUM SIDEBAR STYLES ==================== */
/* SIDEBAR LAYOUT - MORE SPACIOUS */
.app-layout {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 80vh;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 25px 0;
}

.main-area {
  flex: 1;
  min-width: 0;
  padding: 25px 0;
}

/* SIDEBAR SECTIONS - MORE BREATHING ROOM */
.stats-sidebar {
  background: rgba(255, 255, 255, 0.18);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-around;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-sidebar:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.quick-actions-sidebar, .due-soon-sidebar, .tip-sidebar {
  background: rgba(255, 255, 255, 0.18);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-actions-sidebar:hover, .due-soon-sidebar:hover, .tip-sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.quick-actions-sidebar h3, .due-soon-sidebar h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #2c3e50;
  text-align: center;
  font-weight: 600;
}

/* ENHANCED STAT ITEMS */
.stats-sidebar .stat-item {
  text-align: center;
  padding: 0 15px;
}

.stats-sidebar .stat-number {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 5px;
}

.stats-sidebar .stat-label {
  font-size: 13px;
  color: #2c3e50;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* SIDEBAR BUTTONS - MORE SPACIOUS */
.sidebar-btn {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid #007acc;
  color: #007acc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.sidebar-btn:hover {
  background: #007acc;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 122, 204, 0.3);
}

/* DUE SOON ITEMS - MORE SPACIOUS */
.due-list {
  max-height: 200px;
  overflow-y: auto;
}

.due-item {
  background: rgba(255, 255, 255, 0.25);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border-left: 4px solid #e74c3c;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.due-item:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(5px);
}

.due-item small {
  color: #7f8c8d;
  font-weight: 600;
}

/* TIP SECTION - ENHANCED */
.tip-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
}

.tip-icon {
  font-size: 24px;
  animation: glow 2s infinite;
  flex-shrink: 0;
  margin-top: 2px;
}

#tip-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2c3e50;
  font-weight: 500;
}

/* MAIN CONTENT AREA - MORE SPACIOUS */
#main-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.25);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 100%;
  margin: 0;
}

#list {
  margin: 15px 0;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.3);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: 100%;
}

/* FORM STYLES - MORE SPACIOUS */
#create-task-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #888;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.9);
}

#add-task-btn {
  background: #007acc;
  border: none;
  color: white;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: center;
  width: 60%;
  font-weight: 600;
}

#add-task-btn:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 122, 204, 0.3);
}

/* SORT TOOLBAR - MORE SPACIOUS */
#sort-toolbar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: 100%;
}

#sort-toolbar h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.sort-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.sort-buttons button {
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 8px;
  background-color: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.sort-buttons button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* TASK ITEMS - MORE SPACIOUS */
.task-item {
  background: #fff;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.task-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE DESIGN - IMPROVED */
@media (max-width: 1024px) {
  .app-layout {
    gap: 20px;
    padding: 0 15px;
  }
  
  .sidebar {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
    padding: 15px 0;
  }
  
  .main-area {
    order: 1;
    padding: 15px 0;
  }
  
  .stats-sidebar {
    padding: 20px;
  }
  
  .stats-sidebar .stat-number {
    font-size: 28px;
  }
  
  #main-content {
    padding: 20px;
  }
  
  #list {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .app-layout {
    padding: 0 5px;
  }
  
  .stats-sidebar {
    flex-direction: column;
    gap: 15px;
  }
  
  .stats-sidebar .stat-item {
    padding: 10px 0;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  #add-task-btn {
    width: 100%;
  }
}

/* SCROLLBAR STYLING FOR DUE LIST */
.due-list::-webkit-scrollbar {
  width: 6px;
}

.due-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.due-list::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.5);
  border-radius: 3px;
}

.due-list::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.7);
}
/* ==================== FLOATING ACTION BUTTON ==================== */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007acc, #00cc88);
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fabPulse 2s infinite;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(0, 122, 204, 0.6);
}

.fab.hidden {
  display: none;
}

@keyframes fabPulse {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
  }
  50% { 
    box-shadow: 0 6px 25px rgba(0, 122, 204, 0.8), 0 0 0 10px rgba(0, 122, 204, 0.1);
  }
}

/* ==================== FAB FORM CONTAINER ==================== */
.fab-form-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1001;
  animation: formSlideIn 0.3s ease-out;
}

.fab-form-container.hidden {
  display: none;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form inside FAB container */
.fab-form-container #create-task-form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

.fab-form-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab-form-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

/* Responsive design for FAB form */
@media (max-width: 500px) {
  .fab-form-container {
    width: calc(100vw - 60px);
    right: 15px;
    bottom: 15px;
  }
  
  .fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}
/* ==================== FLOATING ACTION BUTTON - TOP RIGHT ==================== */
.fab {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007acc, #00cc88);
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fabPulse 2s infinite;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(0, 122, 204, 0.6);
}

.fab.hidden {
  display: none;
}

@keyframes fabPulse {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
  }
  50% { 
    box-shadow: 0 6px 25px rgba(0, 122, 204, 0.8), 0 0 0 10px rgba(0, 122, 204, 0.1);
  }
}

/* ==================== FAB FORM CONTAINER - TOP RIGHT ==================== */
.fab-form-container {
  position: fixed;
  top: 100px; /* Positioned below the FAB */
  right: 30px;
  width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1001;
  animation: formSlideIn 0.3s ease-out;
}

.fab-form-container.hidden {
  display: none;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== ADJUSTED VIP HEADER - HIGHER POSITION ==================== */
.vip-header {
  position: relative;
  text-align: center;
  margin: 20px 0 15px 0; /* Reduced top margin from 50px to 20px */
  padding: 40px 0 30px 0; /* Reduced padding to make it more compact */
}

.vip-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 3rem; /* Slightly smaller font */
  font-weight: 300;
  letter-spacing: 3px;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  position: relative;
  text-transform: uppercase;
  display: inline-block;
}

/* Adjust the dinosaur position for the higher header */
.dino-vip {
  position: absolute;
  top: -5px; /* Adjusted for higher header */
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px; /* Slightly smaller */
  animation: vipDino 6s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  z-index: 10;
}

/* Adjust underline position */
.vip-underline {
  position: absolute;
  bottom: 15px; /* Adjusted for higher header */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
  animation: vipDraw 2s ease-out 0.5s forwards;
}

/* Adjust background effect for higher header */
.vip-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; /* Slightly smaller */
  height: 100px; /* Slightly smaller */
  background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  animation: bgPulse 4s ease-in-out infinite;
}

/* Make sure main content starts higher */
#main-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.25);
  padding: 20px 25px; /* Reduced padding */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 100%;
  margin: 10px 0; /* Reduced margin */
}

/* Adjust app layout to account for higher header */
.app-layout {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 10px auto; /* Reduced top margin */
  padding: 0 20px;
  min-height: 70vh; /* Slightly reduced */
}

/* Form inside FAB container */
.fab-form-container #create-task-form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

.fab-form-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab-form-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

/* Responsive design for FAB form */
@media (max-width: 500px) {
  .fab-form-container {
    width: calc(100vw - 60px);
    right: 15px;
    top: 80px; /* Adjusted for mobile */
  }
  
  .fab {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .vip-header {
    margin: 15px 0 10px 0; /* Even tighter on mobile */
    padding: 30px 0 20px 0;
  }
  
  .vip-title {
    font-size: 2.2rem;
  }
  
  .dino-vip {
    font-size: 30px;
    top: -3px;
  }
}

/* Ensure footer doesn't overlap with anything */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #b2f7b2, #ffb2b2);
  color: #222;
  text-align: center;
  padding: 4px 0;
  font-size: 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Form Labels */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.form-label.required::after {
  content: " *";
  color: #e74c3c;
}

/* Form Input Groups */
.form-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Ensure form rows maintain their flex layout */
.fab-form-container .form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

/* Make sure inputs fill their containers */
.fab-form-container .form-input-group input,
.fab-form-container .form-input-group select {
  width: 100%;
  box-sizing: border-box;
}
/* Adjust the dinosaur position to be above the line */
.dino-vip {
  position: absolute;
  top: -29px; /* Changed from -10px to -25px to position it higher */
  left: 50%;
  transform: translateX(-50%);
  font-size: 45px;
  animation: vipDino 6s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  z-index: 10;
}

/* Keep the header adjustments but ensure the dinosaur sits above */
.vip-header {
  position: relative;
  text-align: center;
  margin: 20px 0 15px 0;
  padding: 40px 0 30px 0;
}

/* Make sure the underline stays properly positioned */
.vip-underline {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
  animation: vipDraw 2s ease-out 0.5s forwards;
}
/* ==================== COLORFUL TASK CLOCK STYLES ==================== */
.task-clock {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 20px 25px;
  margin: 0 auto 25px auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  animation: clockGlow 3s ease-in-out infinite alternate;
  z-index: 5; /* Lower than VIP header */
}

/* Remove the problematic shine animation that was causing vertical issues */
.task-clock::before {
  display: none; /* Remove the shine effect */
}

.clock-time {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.clock-date {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.clock-greeting {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

/* Simplified glow animation */
@keyframes clockGlow {
  0% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  }
  100% {
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.6);
  }
}

/* Hover effects */
.task-clock:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
}

/* Keep the pulse animation for seconds but make it more subtle */
.clock-time::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffeb3b;
  border-radius: 50%;
  margin-left: 5px;
  animation: pulse 1s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

/* Ensure VIP header has higher z-index */
.vip-header {
  position: relative;
  z-index: 10; /* Higher than clock */
}

/* Make sure the neon line stays intact */
.vip-underline {
  position: absolute;
  z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
  .task-clock {
    padding: 18px 20px;
    margin-bottom: 20px;
    max-width: 280px;
  }
  
  .clock-time {
    font-size: 26px;
  }
  
  .clock-date {
    font-size: 14px;
  }
  
  .clock-greeting {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .task-clock {
    padding: 15px 18px;
    max-width: 250px;
  }
  
  .clock-time {
    font-size: 22px;
  }
}
/* ==================== FIX FOR SMALL SCREENS ONLY ==================== */
/* Add this to the end of your existing CSS */

@media (max-width: 1400px) {
  body {
    overflow-x: auto;
    min-width: 100%;
  }
  
  #main-content {
    min-width: 1200px;
  }
}

@media (max-width: 1200px) {
  #main-content {
    min-width: 1000px;
  }
  
  .app-layout {
    min-width: 1000px;
  }
}

/* Ensure full width utilization */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

#main-content {
  width: 100%;
  margin: 0 auto;
}

/* Fix any horizontal scroll issues */
body {
  overflow-x: auto;
}

/* Make sure background color is consistent */
body {
  background-color: lightgreen;
  background: lightgreen;
}
/* ==================== RESPONSIVE LAYOUT FIX ==================== */
/* Add this to the end of your existing CSS */

/* Remove any horizontal constraints */
body {
  overflow-x: hidden;
  width: 100vw;
  margin: 0;
  padding: 0;
}

#main-content {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* Make app layout fully responsive */
.app-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
  min-height: 80vh;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  min-width: 300px;
}

.main-area {
  flex: 1;
  min-width: 0; /* Allow it to shrink */
}

/* Ensure all containers use full available space */
.vip-header {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  /* KEEP ORIGINAL HEADER STYLING */
  position: relative;
  text-align: center;
  margin: 50px 0 20px 0;
  padding: 60px 0 40px 0;
}

/* KEEP ORIGINAL UNDERLINE STYLING */
.vip-underline {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
  animation: vipDraw 2s ease-out 0.5s forwards;
  max-width: 400px; /* Keep it contained under the text */
}

#sort-toolbar,
#list,
#create-task-form {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Make task items responsive */
.task-item {
  min-width: 0; /* Allow shrinking */
}

.task-content {
  min-width: 0;
  flex: 1;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1400px) {
  .app-layout {
    padding: 0 15px;
  }
}

@media (max-width: 1200px) {
  .app-layout {
    gap: 15px;
  }
  
  .sidebar {
    width: 280px;
    min-width: 250px;
  }
}

@media (max-width: 1024px) {
  .app-layout {
    flex-wrap: wrap;
  }
  
  .sidebar {
    width: 100%;
    min-width: 100%;
    order: 2;
  }
  
  .main-area {
    order: 1;
    width: 100%;
  }
  
  .stats-sidebar {
    flex-direction: row;
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 0 10px;
    gap: 10px;
  }
  
  #main-content {
    padding: 10px;
  }
  
  .vip-header {
    margin: 20px 0 15px 0;
    padding: 30px 0 20px 0;
  }
  
  .vip-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .app-layout {
    padding: 0 5px;
  }
  
  #main-content {
    padding: 5px;
  }
  
  .vip-title {
    font-size: 2rem;
  }
  
  .stats-sidebar {
    flex-direction: column;
    gap: 10px;
  }
  
  .stats-sidebar .stat-item {
    padding: 10px 0;
  }
}

/* Ensure no horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}