/* =====================
   오늘 하루 뷰 스타일
   ===================== */

#today-container {
    width: 100%;
    height: 100%;
    display: none;
    padding: 16px;
    overflow-y: auto;
}

/* 헤더 */
.today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.today-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.today-header-date {
    font-size: 16px;
    font-weight: 600;
}

.today-header-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.today-header-actions {
    display: flex;
    gap: 8px;
}

.today-quick-add-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.today-quick-add-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 섹션 그리드 */
.today-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.today-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    min-height: 200px;
}

.today-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.today-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.today-section-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: normal;
}

/* 섹션별 스타일 */
#today-urgent .today-section-header {
    color: #c62828;
    border-color: #ef5350;
}

#today-urgent {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

#today-today .today-section-header {
    color: #e65100;
    border-color: #ff9800;
}

#today-today {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

#today-upcoming .today-section-header {
    color: #1565c0;
    border-color: #42a5f5;
}

#today-upcoming {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

#today-someday .today-section-header {
    color: #616161;
    border-color: #9e9e9e;
}

#today-someday {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Task 목록 */
.today-task-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Task 아이템 */
.today-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

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

#today-urgent .today-task {
    border-left-color: #ef5350;
}

#today-today .today-task {
    border-left-color: #ff9800;
}

#today-upcoming .today-task {
    border-left-color: #42a5f5;
}

#today-someday .today-task {
    border-left-color: #9e9e9e;
}

/* 체크박스 */
.today-checkbox {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.today-checkbox:hover {
    border-color: #1a73e8;
    background: #f0f7ff;
}

.today-checkbox svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.today-checkbox:active svg {
    opacity: 1;
}

/* Task 컨텐츠 */
.today-task-content {
    flex: 1;
    min-width: 0;
}

.today-task-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.today-task-meta {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.today-task-due {
    display: flex;
    align-items: center;
    gap: 2px;
}

.today-task-due::before {
    content: '📅';
}

/* 태그 */
.today-task-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.today-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.today-tag.urgent {
    background: #ffebee;
    color: #c62828;
}

.today-tag.important {
    background: #e3f2fd;
    color: #1565c0;
}

.today-tag.pmi {
    background: #f3e5f5;
    color: #9c27b0;
}

.today-tag.personal {
    background: #fff3e0;
    color: #ef6c00;
}

.today-tag.hashtag {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Empty 상태 */
.today-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 30px 20px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 더 보기 버튼 */
.today-more-btn {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.today-more-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* =====================
   빠른 추가 모달
   ===================== */

.today-quick-add-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.2s ease;
}

.today-quick-add-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.today-quick-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.today-quick-add-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.today-quick-add-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.today-quick-input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    outline: none;
}

.today-quick-options {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.today-quick-tag {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.today-quick-tag:hover {
    border-color: #1a73e8;
    background: #f0f7ff;
}

.today-quick-tag.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.today-quick-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
}

.today-quick-cancel,
.today-quick-save {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.today-quick-cancel {
    background: white;
    color: #666;
}

.today-quick-cancel:hover {
    background: #f0f0f0;
}

.today-quick-save {
    background: #1a73e8;
    color: white;
}

.today-quick-save:hover {
    background: #1557b0;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 모바일 반응형 */
@media (max-width: 768px) {
    #today-container {
        padding: 8px;
    }

    .today-header {
        margin-bottom: 12px;
        padding: 10px 12px;
    }

    .today-header-date {
        font-size: 14px;
    }

    .today-quick-add-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .today-quick-add-btn span:last-child {
        display: none;
    }

    .today-sections {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .today-section {
        padding: 12px;
        min-height: 150px;
    }

    .today-section-header {
        margin-bottom: 8px;
    }

    .today-task-list {
        max-height: 300px;
    }

    .today-task {
        padding: 10px;
    }

    .today-quick-add-modal {
        width: 95%;
    }
}

/* =====================
   드래그 앤 드롭 스타일
   ===================== */

.today-task.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.today-section {
    transition: all 0.2s ease;
}

.today-section.drag-over {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3),
                0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 섹션별 drag-over 색상 */
#today-urgent.drag-over {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.4),
                0 8px 20px rgba(198, 40, 40, 0.2);
}

#today-today.drag-over {
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.4),
                0 8px 20px rgba(230, 81, 0, 0.2);
}

#today-upcoming.drag-over {
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.4),
                0 8px 20px rgba(21, 101, 192, 0.2);
}

#today-someday.drag-over {
    box-shadow: 0 0 0 3px rgba(97, 97, 97, 0.4),
                0 8px 20px rgba(97, 97, 97, 0.2);
}

/* 드래그 가능한 Task에 커서 표시 */
.today-task[draggable="true"] {
    cursor: grab;
}

.today-task[draggable="true"]:active {
    cursor: grabbing;
}
