/* Day Section Banner */
.day-banner {
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.banner-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="white"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="white"/></svg>') bottom center/cover no-repeat;
    animation: wave 20s ease-in-out infinite;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .banner-content {
        text-align: right;
    }
}

.banner-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.banner-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .banner-icon {
        margin: 0;
    }
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.banner-description {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
}

/* Day Types Section */
.day-types-section {
    padding: 0.5rem 0;
    background: transparent;
    min-height: auto;
}

.day-types-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .day-types-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.day-type-card {
    background: var(--bg-primary, white);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.day-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-500), var(--teal-500));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.day-type-card:hover::before {
    transform: scaleX(1);
}

.day-type-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--cyan-500);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--cyan-400), var(--teal-400));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.day-type-card:hover .card-glow {
    opacity: 1;
}

.card-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    opacity: 0;
    transition: opacity 0.3s ease;
}

.day-type-card:hover .card-particles {
    opacity: 1;
}

.type-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.type-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.type-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.day-type-card:nth-child(1) .type-icon {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
}

.day-type-card:nth-child(2) .type-icon {
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
}

.day-type-card:nth-child(3) .type-icon {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.day-type-card:hover .type-icon {
    transform: scale(1.1);
    animation: bounce 2s infinite;
}

.day-type-card:hover .type-action {
    background: var(--cyan-500);
    color: white;
    transform: scale(1.1);
}

.day-type-card:hover .icon-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
}

/* Urgent Card Special Styles */
.urgent-card {
    border-color: var(--orange-500);
}

.urgent-card:hover {
    border-color: var(--orange-400);
}

.urgent-glow {
    background: linear-gradient(135deg, var(--orange-400), var(--red-400));
}

.urgent-icon {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.urgent-action {
    background: var(--orange-500);
    color: white;
}

.urgent-card:hover .urgent-action {
    background: var(--orange-400);
    transform: scale(1.2);
    animation: pulse 1s infinite;
}

.type-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.type-description {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.875rem;
}

.type-example {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: inline-block;
}

/* Category Selection */
.category-selection {
    padding: 0.5rem 0;
    background: transparent;
    min-height: auto;
}

.category-container {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.back-button {
    width: 3rem;
    height: 3rem;
    background: var(--cyan-100);
    color: var(--cyan-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--cyan-200);
    transform: scale(1.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-option {
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    transform: translateX(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--cyan-500);
}

.option-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.option-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.option-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* New Category Form */
.new-category-form {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 60vh;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.color-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.selected {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Tasks Section */
.tasks-section {
    padding: 0.5rem 0;
    background: transparent;
    min-height: auto;
    width: 100%;
}

.tasks-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tasks Grid */
#tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

/* Task Card */
.task-card {
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid transparent;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-card.pinned {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.task-card.completed {
    opacity: 0.7;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: #6b7280;
}

/* Task Header */
.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--cyan-500, #06b6d4);
    border-color: var(--cyan-500, #06b6d4);
    color: white;
}

.task-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.task-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.pin-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.pin-btn.pinned {
    background: #f59e0b;
    color: white;
}

.edit-btn {
    background: #dbeafe;
    color: #2563eb;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
}

.task-actions button:hover {
    transform: scale(1.1);
}

/* Task Content */
.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.task-description {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.task-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-low {
    background: #dcfce7;
    color: #166534;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.task-duration,
.task-date,
.task-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.task-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #6b7280);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--cyan-300, #67e8f9);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1f2937);
}

.empty-state p {
    font-size: 0.875rem;
}

.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.tasks-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.task-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.task-checkbox.checked {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.task-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-priority.low {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.task-priority.medium {
    background: var(--yellow-100);
    color: var(--yellow-700);
}

.task-priority.high {
    background: var(--red-100);
    color: var(--red-700);
}

.task-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Add Task Form */
.add-task-form {
    padding: 4rem 0;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.task-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login Notification */
.login-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.notification-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.notification-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.notification-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.notification-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.notification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.notification-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .day-types-container {
        grid-template-columns: 1fr;
    }
    
    .tasks-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .notification-actions {
        flex-direction: column;
    }
}

/* Add Task Form - Popup Style */
.add-task-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.add-task-form .container {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.add-task-form .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.add-task-form .form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.add-task-form .close-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.add-task-form .close-button:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.add-task-form .form-container {
    padding: 2rem;
}

.add-task-form .form-group {
    margin-bottom: 1.5rem;
}

.add-task-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.add-task-form .form-group input,
.add-task-form .form-group textarea,
.add-task-form .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.add-task-form .form-group input:focus,
.add-task-form .form-group textarea:focus,
.add-task-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.add-task-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.add-task-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-task-form .btn-primary {
    background: var(--primary-color);
    color: white;
}

.add-task-form .btn-primary:hover {
    background: var(--primary-dark);
}

.add-task-form .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.add-task-form .btn-secondary:hover {
    background: var(--bg-tertiary);
}

.add-task-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.add-task-form .checkbox-label input[type="checkbox"] {
    display: none;
}

.add-task-form .checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.add-task-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.add-task-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.125rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Success and Error Notifications */
.success-notification,
.error-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.success-notification .notification-content {
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.error-notification .notification-content {
    background: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.success-notification .notification-icon,
.error-notification .notification-icon {
    font-size: 1.25rem;
}

.success-notification .notification-text,
.error-notification .notification-text {
    flex: 1;
}

.success-notification .notification-text p,
.error-notification .notification-text p {
    margin: 0;
    font-weight: 500;
}

/* Urgent Tasks Section */
.urgent-tasks-section {
    padding: 0.5rem 0;
    background: transparent;
    min-height: auto;
}

.urgent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 1.5rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.urgent-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.urgent-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: urgentPulse 2s infinite;
}

.urgent-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.urgent-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.btn-urgent {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-urgent:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.urgent-tasks-container {
    max-width: 1200px;
    margin: 0 auto;
}

.urgent-tasks-list {
    display: grid;
    gap: 1.5rem;
}

.urgent-task-item {
    background: var(--bg-primary);
    border: 2px solid #fecaca;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.urgent-task-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #f87171;
}

.urgent-task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 1rem 1rem 0 0;
}

.urgent-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.urgent-task-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.urgent-bell {
    color: #ef4444;
    font-size: 1.25rem;
    animation: bellShake 1s infinite;
}

.pinned-icon {
    color: #f59e0b;
    font-size: 1rem;
    margin-left: 0.5rem;
    animation: pinnedPulse 2s infinite;
}

.urgent-task-priority {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.urgent-task-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.urgent-task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.urgent-task-actions {
    display: flex;
    gap: 0.5rem;
}

.urgent-task-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.urgent-task-btn.complete {
    background: #10b981;
    color: white;
}

.urgent-task-btn.complete:hover {
    background: #059669;
}

.urgent-task-btn.edit {
    background: #3b82f6;
    color: white;
}

.urgent-task-btn.edit:hover {
    background: #2563eb;
}

.urgent-task-btn.delete {
    background: #ef4444;
    color: white;
}

.urgent-task-btn.delete:hover {
    background: #dc2626;
}

/* Urgent Animations */
@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

@keyframes bellShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .urgent-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .urgent-title-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .urgent-title {
        font-size: 1.5rem;
    }
    
    .urgent-task-item {
        padding: 1rem;
    }
    
    .urgent-task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .urgent-task-actions {
        flex-wrap: wrap;
    }
}

/* Additional Animations */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Icon Picker Styling */
.icon-picker-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-picker-btn {
    background: var(--cyan-500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.icon-picker-btn:hover {
    background: var(--cyan-600);
    transform: translateY(-1px);
}

.icon-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-align: center;
}

.icon-preview i {
    font-size: 1.5rem;
    color: var(--cyan-500);
}

/* Icon Picker Modal */
.icon-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-picker-content {
    background: var(--bg-primary, white);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-secondary, #f8f9fa);
}

.icon-picker-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.close-icon-picker {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.close-icon-picker:hover {
    background: #f3f4f6;
    color: #374151;
}

.icon-picker-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary, white);
}

.icon-item:hover {
    border-color: var(--cyan-500);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.icon-item.selected {
    border-color: var(--cyan-500);
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.icon-item i {
    font-size: 1.5rem;
    color: var(--cyan-500);
    margin-bottom: 0.5rem;
}

.icon-item span {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    word-break: break-all;
}
.tasks-header button, 
.tasks-header .btn {
    position: relative; /* اگه لازم بود */
    z-index: 10; /* بالاتر از لایه ::before */
}

.tasks-header::before {
    pointer-events: none; /* این باعث میشه کلیک به دکمه اصلی برسه */
}