@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
  --primary-color: #4a90e2;
  --secondary-color: #f5f5f5;
  --accent-color: #ff6b6b;
  --text-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.3);
  --glass-shadow-inset: inset 0 0 12px rgba(255, 255, 255, 0.6);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: linear-gradient(135deg, #89CFF0 0%, #1E90FF 50%, #00BFFF 100%);
  min-height: 100vh;
  direction: rtl;
  color: var(--text-color);
  margin: 0;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.6;
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
}

.app-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin: 20px 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.app-title i {
  color: #212b36;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-title span {
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-container {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 80px 20px 20px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 100;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.app-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-highlight);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
  z-index: -1;
  opacity: 0.5;
}

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

#app {
  max-width: 600px;
  width: 90%;
  margin: 40px auto;
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 30px;
  transition: var(--transition);
}

#app:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 20px;
  margin: 0 0 30px 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  gap: 30px;
  padding: 0 20px;
}

.header-actions .action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* Changed from 50% to 8px for square with rounded corners */
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-actions .action-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.app-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.bubble-button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 25px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: 'Vazirmatn', sans-serif;
}

.bubble-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  z-index: -1;
  border-radius: 10px;
  transition: var(--transition);
  opacity: 0.8;
}

.bubble-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
}

.bubble-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bubble-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

.bubble-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  z-index: -1;
  border-radius: 15px;
}

.bubble-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.task-input-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.task-input-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  z-index: -1;
  border-radius: 20px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.task-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.task-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.task-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.priority-buttons {
  display: flex;
  gap: 12px;
  margin: 5px 0 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.priority-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.priority-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.priority-btn.active {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

.priority-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
  z-index: -1;
  border-radius: 10px;
  transition: var(--transition);
  opacity: 0.8;
}

.priority-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.priority-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.priority-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

/* Priority button specific styles */
.priority-btn.low {
  background: rgba(200, 255, 200, 0.7);
  border: 1px solid rgba(100, 200, 100, 0.3);
  color: #0a6e0a;
}

.priority-btn.low.active {
  background: rgba(150, 255, 150, 0.9);
  border: 1px solid rgba(50, 200, 50, 0.5);
  color: #0a6e0a;
  box-shadow: 0 0 0 2px rgba(100, 255, 100, 0.5);
}

.priority-btn.medium {
  background: rgba(255, 235, 150, 0.7);
  border: 1px solid rgba(200, 170, 50, 0.3);
  color: #8c6a1a;
}

.priority-btn.medium.active {
  background: rgba(255, 220, 100, 0.9);
  border: 1px solid rgba(200, 150, 50, 0.5);
  color: #8c6a1a;
  box-shadow: 0 0 0 2px rgba(255, 200, 50, 0.5);
}

.priority-btn.high {
  background: rgba(255, 180, 180, 0.7);
  border: 1px solid rgba(200, 50, 50, 0.3);
  color: #8c1a1a;
}

.priority-btn.high.active {
  background: rgba(255, 150, 150, 0.9);
  border: 1px solid rgba(200, 50, 50, 0.5);
  color: #8c1a1a;
  box-shadow: 0 0 0 2px rgba(255, 100, 100, 0.5);
}

.priority-btn.active {
  transform: translateY(2px);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.priority-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  z-index: -1;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.priority-btn.active::before {
  opacity: 1;
}

.priority-btn.low {
  background: rgba(168, 230, 207, 0.8);
  border: 1px solid var(--glass-border);
  color: #1a5d3f;
}

.priority-btn.medium {
  background: rgba(255, 211, 182, 0.8);
  border: 1px solid var(--glass-border);
  color: #8c4a1a;
}

.priority-btn.high {
  background: rgba(255, 170, 165, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #8c1a1a;
}

.task-list {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  list-style: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Webkit (Chrome, Safari, newer versions of Opera) */
.task-list::-webkit-scrollbar {
  width: 6px;
}

.task-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
  margin: 5px 0;
}

.task-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.task-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
    --glass-bg: rgba(255, 255, 255, 0.35);
  }
  
  body {
    padding: 8px 4px;
    background-size: 300% 300%;
    -webkit-tap-highlight-color: transparent;
  }

  .app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 8px 20px;
  }

  .app-title {
    font-size: 1.5rem;
    margin: 10px 0 15px;
    padding: 8px 0;
    border-radius: 12px;
  }

  .task-list {
    padding: 8px 4px;
    gap: 8px;
    max-height: 75vh;
    margin: 8px auto;
    border-radius: 12px;
  }

  .task-item {
    padding: 12px 12px;
    gap: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .task-item:active {
    transform: scale(0.98);
  }

  .task-content {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .task-actions {
    gap: 6px;
  }

  .action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .action-btn i {
    font-size: 1rem;
  }

  .priority-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }

  .priority-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
    flex: 1;
    min-width: 28%;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
  }
  
  .priority-btn:active {
    transform: scale(0.96);
  }

  .task-input-container {
    padding: 12px 8px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .task-input {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .task-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
  }

  #confirm-task {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-top: 10px;
    width: 100%;
    background: rgba(74, 144, 226, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .task-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
  }

  .task-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
  }

  .add-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .add-button:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
  }

  .priority-buttons {
    gap: 8px;
    margin-top: 4px;
  }

  .priority-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .priority-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
}

.task-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  z-index: -1;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.task-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  border-radius: 0 12px 12px 0;
}

.task-item:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-item:active {
  transform: translateY(0) translateZ(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.task-item.low::before {
  background-color: #a8e6cf;
}

.task-item.medium::before {
  background-color: #ffd3b6;
}

.task-item.high::before {
  background-color: #ffaaa5;
}

.task-content {
  flex: 1;
  margin: 0 12px;
  padding: 2px 0;
  position: relative;
  word-break: break-word;
  padding-right: 20px; /* Space for read more button */
}

.task-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  max-height: 3em;
  transition: all 0.3s ease;
  position: relative;
}

.task-content.expanded .task-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
  display: block;
}

.read-more {
  position: absolute;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9) 30%);
  padding-right: 5px;
  color: #1e88e5;
  cursor: pointer;
  font-size: 0.9em;
  padding-left: 20px;
  padding-right: 0;
  border: none;
  outline: none;
  background: none;
  font-family: 'Vazirmatn', sans-serif;
}

.read-more:hover {
  text-decoration: underline;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-right: auto;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.task-item:hover .task-actions {
  opacity: 1;
  transform: translateX(0);
}

.task-item:hover .task-text {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.task-text.strikethrough {
  position: relative;
  color: #888;
  display: inline;
  padding-right: 0;
}

.task-text.strikethrough::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background-color: #666;
  opacity: 0.7;
  animation: strike 0.3s ease-out forwards;
  transform-origin: right;
}

@keyframes strike {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.task-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  z-index: -1;
  opacity: 0.7;
  transition: var(--transition);
}

.task-button:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.task-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.task-button.delete {
  color: #e74c3c;
}

.task-button.edit {
  color: #3498db;
}

.task-button.complete {
  color: #2ecc71;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--primary-color);
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--glass-shadow-inset);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  z-index: -1;
  border-radius: 12px;
}

.action-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.5);
}

.completed {
  text-decoration: line-through;
  opacity: 0.7;
}

/* استایل ابر تاریخ */
.date-cloud {
  position: fixed;
  top: 20px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.date-cloud i {
  color: #4a90e2;
  font-size: 1.2rem;
}

/* انیمیشن ملایم برای ابر تاریخ */
@keyframes float {
  0% { transform: translateX(50%) translateY(0); }
  50% { transform: translateX(50%) translateY(-5px); }
  100% { transform: translateX(50%) translateY(0); }
}

.date-cloud {
  animation: float 6s ease-in-out infinite;
}

/* استایل‌های لیست وظایف */
.task-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 60vh; /* ارتفاع حداکثری بر اساس ارتفاع صفحه */
  min-height: 100px; /* حداقل ارتفاع برای لیست */
  overflow-y: auto; /* فعال کردن اسکرول عمودی */
  padding: 10px 15px 10px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; /* اسکرول نرم در دستگاه‌های لمسی */
}

/* استایل برای نمایش بهتر در موبایل */
@media (max-width: 768px) {
  .task-list {
    max-height: 50vh;
  }
}

/* استایل‌دهی اسکرول بار برای مرورگرهای مبتنی بر وبکیت (کروم، اج، اپرا) */
.task-list::-webkit-scrollbar {
  width: 6px;
}

.task-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.task-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.task-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* استایل‌های آیتم‌های لیست وظایف */
.task-item {
  min-height: 60px; /* حداقل ارتفاع برای هر آیتم */
  flex-shrink: 0; /* جلوگیری از فشرده شدن آیتم‌ها */
  transition: all 0.3s ease;
}

/* استایل پیام "کارهای بیشتر" */
.more-tasks-message {
  text-align: center;
  padding: 15px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-top: 10px;
  backdrop-filter: blur(5px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* استایل‌های حالت خالی */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
  padding: 40px 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
  transition: all 0.3s ease;
}

.empty-state:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.2);
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.empty-icon .material-icons {
  font-size: 40px;
  color: #4a90e2;
}

.empty-state h3 {
  margin: 15px 0 10px;
  color: #333;
  font-size: 1.3rem;
}

.empty-state p {
  margin-bottom: 25px;
  color: #666;
  font-size: 0.95rem;
}

.add-first-task {
  margin-top: 15px;
  background: rgba(74, 144, 226, 0.9) !important;
  color: white !important;
  border: none !important;
  padding: 12px 25px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
  transition: all 0.3s ease !important;
}

.add-first-task:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
  background: rgba(74, 144, 226, 1) !important;
}

/* انیمیشن‌ها */
@keyframes bubble {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.task-item {
  animation: bubble 0.3s ease-out forwards;
}

.task-item.completed {
  animation: pop 0.5s ease-out forwards;
}

/* ابرهای متحرک در پس‌زمینه */
.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.7;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: moveClouds 50s linear infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
}

.cloud::before {
  width: 60%;
  height: 60%;
  top: -30%;
  right: 20%;
}

.cloud::after {
  width: 40%;
  height: 40%;
  bottom: -20%;
  right: 40%;
}

@keyframes moveClouds {
  0% { 
    transform: translateX(-150%) translateZ(0); 
  }
  100% { 
    transform: translateX(150%) translateZ(0);
  }
}
