:root {
            --primary-color: #4a90e2;
            --secondary-color: #f5f7fa;
            --accent-color: #ffa500;
            --text-color: #333;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .container {
            background-color: var(--secondary-color);
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow-color);
            width: 95%;
            max-width: 450px;
            padding: 30px;
            animation: fadeIn 0.5s ease-out;
        }

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

        h1 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 30px;
            font-size: 32px;
            font-weight: bold;
        }

        .input-group {
            margin-bottom: 25px;
        }

        #task-input {
            border-radius: 25px 0 0 25px;
            border: 2px solid var(--primary-color);
            padding: 12px 20px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        #task-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        }

        #add-task {
            border-radius: 0 25px 25px 0;
            background-color: var(--primary-color);
            border: 2px solid var(--primary-color);
            color: white;
            padding: 12px 25px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        #add-task:hover {
            background-color: #3a7bbf;
            border-color: #3a7bbf;
        }

        .task-item {
            background-color: white;
            border-radius: 15px;
            margin-bottom: 15px;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .task-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px var(--shadow-color);
        }

        .task-item.completed {
            background-color: #e9ecef;
            text-decoration: line-through;
            color: #6c757d;
        }

        .task-item.high-priority {
            border-left: 5px solid var(--accent-color);
        }

        .task-actions {
            display: flex;
            gap: 10px;
        }

        .task-actions button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            padding: 5px;
            border-radius: 50%;
        }

        .complete-btn { color: #28a745; }
        .edit-btn { color: #ffc107; }
        .delete-btn { color: #dc3545; }
        .priority-btn { color: var(--accent-color); }

        .complete-btn:hover,
        .edit-btn:hover,
        .delete-btn:hover,
        .priority-btn:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .empty-list {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            margin-top: 30px;
            animation: fadeIn 0.5s ease-out;
        }

        #task-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            font-size: 14px;
            color: #6c757d;
        }

        #filter-sort {
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
        }
        
.select-hide {
    display: none;
}

.select-items {
    position: absolute;
    background-color: #f6f6f6;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

        .custom-select {
            position: relative;
            display: inline-block;
            width: 48%;
        }

        .custom-select select {
            display: none;
        }

        .select-selected {
            background-color: var(--primary-color);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            cursor: pointer;
            user-select: none;
        }

        .select-selected:after {
            position: absolute;
            content: "";
            top: 14px;
            right: 10px;
            width: 0;
            height: 0;
            border: 6px solid transparent;
            border-color: #fff transparent transparent transparent;
        }

        .select-selected.select-arrow-active:after {
            border-color: transparent transparent #fff transparent;
            top: 7px;
        }

        .select-items {
            position: absolute;
            background-color: #f6f6f6;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 99;
            border-radius: 0 0 15px 15px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .select-items div {
            color: var(--text-color);
            padding: 8px 16px;
            cursor: pointer;
            user-select: none;
        }

        .select-items div:hover, .same-as-selected {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .shake {
            animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
            transform: translate3d(0, 0, 0);
        }

        @keyframes shake {
            10%, 90% { transform: translate3d(-1px, 0, 0); }
            20%, 80% { transform: translate3d(2px, 0, 0); }
            30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
            40%, 60% { transform: translate3d(4px, 0, 0); }
        }

        #confetti {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal h2 {
  margin-top: 0;
  color: #333;
}

.modal-buttons {
  text-align: right;
  margin-top: 20px;
}

.modal-buttons button {
  margin-left: 10px;
}

#modal-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.hidden {
  display: none;
}

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.alert.show {
  opacity: 1;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}