/* Brain Dumping TO_DO_LIST Styles */
body {
    font-family: 'Pretendard', 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

/* Step Box Styles */
.step-box {
    background-color: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.step-title {
    font-weight: bold;
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-instruction {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 3px solid #667eea;
}

/* Section Headers */
.section-header {
    color: #444;
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    background-color: #f0f0f0;
    padding: 12px 16px;
    border-left: 5px solid #667eea;
    border-radius: 4px;
}

/* Priority Colors */
.priority-urgent {
    background-color: #ffe6e6;
    border-left: 4px solid #ff4444;
}

.priority-important {
    background-color: #fff9e6;
    border-left: 4px solid #ffbb33;
}

.priority-later {
    background-color: #e6f7ff;
    border-left: 4px solid #33b5e5;
}

.priority-letgo {
    background-color: #f5f5f5;
    border-left: 4px solid #999999;
}

/* Task Item Styles */
.task-item {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.task-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

.badge-urgent {
    background-color: #ffe6e6;
    color: #d32f2f;
}

.badge-important {
    background-color: #fff9e6;
    color: #f57c00;
}

.badge-later {
    background-color: #e6f7ff;
    color: #1976d2;
}

/* TOP 3 Styles */
.top3-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.top3-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    margin-right: 12px;
}

.top3-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.top3-detail {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* Statistics Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stat-total { color: #3f51b5; }
.stat-completed { color: #4caf50; }
.stat-rate { color: #9c27b0; }

/* Input Styles */
.brain-dump-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.brain-dump-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-success {
    background: #4caf50;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Footer Note */
.footer-note {
    margin-top: 32px;
    padding: 20px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.footer-note strong {
    color: #333;
}

.footer-note ul {
    margin: 12px 0;
    padding-left: 24px;
}

.footer-note li {
    margin-bottom: 8px;
}

/* Time Slot Badge */
.time-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
}

/* Checkbox Styles */
.custom-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .top3-item {
        padding: 16px;
    }
    
    .top3-title {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    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;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 16px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
}
