/* ===== Week Dashboard Styles ===== */

/* Dark Mode Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

html[data-theme="dark"] {
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #4b5563;
}

/* Force Dark Mode for Modal */
html[data-theme="dark"] .modal-dialog {
    background: #1f2937 !important;
}

html[data-theme="dark"] .modal-header {
    background: #1f2937 !important;
    border-bottom-color: #4b5563 !important;
}

html[data-theme="dark"] .modal-body {
    background: #1f2937 !important;
}

html[data-theme="dark"] .modal-footer {
    background: #1f2937 !important;
    border-top-color: #4b5563 !important;
}

html[data-theme="dark"] .modal-title {
    color: #f9fafb !important;
}

html[data-theme="dark"] .modal-close {
    color: #d1d5db !important;
}

html[data-theme="dark"] .modal-close:hover {
    background: #374151 !important;
    color: #f9fafb !important;
}

/* Week Banner */
.week-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.week-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.week-banner::after {
    content: '';
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 2;
    opacity: 0.3;
}

.week-banner .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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="1.2" fill="rgba(255,255,255,0.18)"/><circle cx="30" cy="70" r="0.8" fill="rgba(255,255,255,0.12)"/></svg>');
    animation: float 20s infinite linear;
    z-index: 3;
}

.week-banner .banner-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><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" fill="rgba(255,255,255,0.15)" fill-opacity="0.6"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 4;
}

.week-banner .banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.week-banner .banner-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.week-banner .banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}

.week-banner .banner-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Week Types Section */
.week-types-section {
    padding: 2rem 0;
    background: var(--bg-secondary, #f5f5f5);
}

.week-types-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.week-type-card {
    position: relative;
    background: var(--bg-primary, white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid var(--border-color, transparent);
}

.week-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #06b6d4;
}

.week-type-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.week-type-card:hover .card-glow {
    opacity: 1;
}

.week-type-card .type-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.week-type-card .type-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.week-type-card .type-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.week-type-card .type-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.week-type-card .type-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #06b6d4;
    font-size: 0.9rem;
    font-weight: 500;
}

.week-type-card .type-action {
    text-align: center;
    color: #06b6d4;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.week-type-card:hover .type-action {
    transform: translateX(-5px);
}

/* Category Selection */
.category-selection {
    padding: 2rem 0;
    background: var(--bg-secondary, #f5f5f5);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #20C9D7;
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.back-btn:hover {
    background: #1BB5C4;
    transform: translateX(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 215, 0.3);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary, white);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color, transparent);
}

.category-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #06b6d4;
}

.category-option .option-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #06b6d4;
    color: white;
    font-size: 1.2rem;
}

.category-option .option-content {
    flex: 1;
}

.category-option .option-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.25rem 0;
}

.category-option .option-content p {
    color: var(--text-secondary, #6b7280);
    margin: 0;
    font-size: 0.9rem;
}

.category-option .option-arrow {
    color: #06b6d4;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-option:hover .option-arrow {
    transform: translateX(-5px);
}

/* New Category Form */
.new-category-form {
    padding: 2rem 0;
    background: var(--bg-secondary, #f5f5f5);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.category-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-primary, white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Force Dark Mode for Form Controls */
html[data-theme="dark"] .form-control {
    background: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

html[data-theme="dark"] .form-control:focus {
    background: #374151 !important;
    color: #f9fafb !important;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important;
}

.form-control::placeholder {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #9ca3af !important;
}

.form-control:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-control option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

html[data-theme="dark"] .form-control option {
    background: #374151 !important;
    color: #f9fafb !important;
}

/* Force Dark Mode for Task Cards */
html[data-theme="dark"] .task-card {
    background: #374151 !important;
    border-color: #4b5563 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .task-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .task-title {
    color: #f9fafb !important;
}

html[data-theme="dark"] .task-description {
    color: #d1d5db !important;
}

html[data-theme="dark"] .task-meta,
html[data-theme="dark"] .task-date,
html[data-theme="dark"] .task-time {
    color: #9ca3af !important;
}

/* Force Dark Mode for Form Labels and Groups */
html[data-theme="dark"] .form-label {
    color: #f9fafb !important;
}

html[data-theme="dark"] .form-group {
    background: transparent !important;
}

html[data-theme="dark"] .form-row {
    background: transparent !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

input[type="color"].form-control {
    height: 45px;
    padding: 0.25rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #06b6d4;
    color: white;
}

.btn-primary:hover {
    background: #0891b2;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Week Days Section */
.week-days-section {
    padding: 2rem 0;
    background: var(--bg-secondary, #f5f5f5);
}

.days-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.days-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.week-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.week-day-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary, white);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color, transparent);
}

.week-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #06b6d4;
}

.week-day-card .day-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #06b6d4;
    color: white;
    font-size: 1.2rem;
}

.week-day-card .day-content {
    flex: 1;
}

.week-day-card .day-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.25rem 0;
}

.week-day-card .day-content p {
    color: var(--text-secondary, #6b7280);
    margin: 0;
    font-size: 0.9rem;
}

.week-day-card .day-arrow {
    color: #06b6d4;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.week-day-card:hover .day-arrow {
    transform: translateX(-5px);
}

/* Tasks Section */
.tasks-section {
    padding: 2rem 0;
    background: var(--bg-secondary, #f5f5f5);
}

.tasks-header {
    background: linear-gradient(135deg, #2A45B0, #1E3A8A);
    border-radius: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.tasks-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tasks-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: center;
    flex: 1;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #20C9D7;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-task-btn:hover {
    background: #1BB5C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 215, 0.3);
}

.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.task-card {
    background: var(--bg-primary, white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.task-card.pinned {
    border-left-color: #f59e0b;
}

.task-card.completed {
    opacity: 0.7;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-checkbox.checked {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.task-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pin-btn {
    background: #f59e0b;
    color: white;
}

.pin-btn.pinned {
    background: #10b981;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.task-title.strikethrough {
    text-decoration: line-through;
    color: var(--text-secondary, #6b7280);
}

.task-description {
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.task-priority.priority-low {
    background: #dcfce7;
    color: #166534;
}

.task-priority.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.task-priority.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.task-duration,
.task-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.8rem;
}

.task-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.8rem;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Add Task Form */
.add-task-form {
    padding: 2rem 0;
    background: #f5f5f5;
}

.task-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary, white);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001 !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-primary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    background: var(--bg-primary);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-primary);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #6b7280);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0% { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
    100% { text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .week-types-container {
        grid-template-columns: 1fr;
    }
    
    .category-options {
        grid-template-columns: 1fr;
    }
    
    .week-days-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tasks-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .tasks-header h3 {
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .back-btn {
        order: 2;
        justify-content: center;
    }
    
    .add-task-btn {
        order: 3;
        justify-content: center;
    }
}
html[data-theme="dark"] .task-form {
    background: #1f2937 !important;
    border-color: #4b5563 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .task-form .form-label {
    color: #f9fafb !important;
}
.tasks-header button, 
.tasks-header .btn {
    position: relative; /* اگه لازم بود */
    z-index: 10; /* بالاتر از لایه ::before */
}

.tasks-header::before {
    pointer-events: none; /* این باعث میشه کلیک به دکمه اصلی برسه */
}