/* 근태 검증 관리 시스템 - 개선된 스타일 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #333; line-height: 1.6; min-height: 100vh; } /* 뒤로가기 버튼 */ .back-btn { background: rgba(255,255,255,0.95); color: #667eea; border: 3px solid #667eea; padding: 12px 24px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; transition: all 0.3s ease; box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2); } .back-btn:hover { background: #667eea; color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3); } /* 페이지 헤더 */ .page-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 16px; padding: 2.5rem; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); } /* 메인 카드 */ .main-card { background: white; border-radius: 16px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); transition: all 0.3s ease; } .main-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); } .loading-card { background: white; border-radius: 16px; padding: 3rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); text-align: center; } /* 캘린더 헤더 */ .calendar-header { display: flex; align-items: center; justify-content: between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f0f0; } .nav-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 12px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); } .nav-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4); } /* 월간 요약 */ .summary-section { margin-bottom: 2rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); border-radius: 16px; border: 1px solid rgba(102, 126, 234, 0.2); } .summary-title { text-align: center; font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 1rem; } .summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .summary-card { background: white; border-radius: 12px; padding: 1.5rem; text-align: center; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); border: 2px solid transparent; } .summary-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } .summary-card.normal { border-color: #10b981; } .summary-card.warning { border-color: #f59e0b; } .summary-card.error { border-color: #ef4444; } .summary-number { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; } .summary-card.normal .summary-number { color: #10b981; } .summary-card.warning .summary-number { color: #f59e0b; } .summary-card.error .summary-number { color: #ef4444; } .summary-label { font-size: 0.875rem; font-weight: 600; color: #666; } /* 요일 헤더 */ .weekday-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; margin-bottom: 1rem; } .weekday { padding: 1rem; text-align: center; font-size: 0.875rem; font-weight: 700; color: #64748b; background: #f8fafc; border-radius: 8px; } .weekday.sunday { color: #ef4444; } .weekday.saturday { color: #3b82f6; } /* 캘린더 그리드 */ .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; margin-bottom: 2rem; } .calendar-day { position: relative; min-height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; background: white; border: 2px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .calendar-day.hover-enabled:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); border-color: #3b82f6; } .calendar-day.selected { transform: scale(1.05); z-index: 10; border-color: #3b82f6; box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3); } .calendar-day.loading-state { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-color: #3b82f6; animation: loading-pulse 1.5s infinite; } @keyframes loading-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .calendar-day.error-state { background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%); border-color: #ef4444; color: #991b1b; } .calendar-day.normal { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border-color: #10b981; color: #064e3b; } .calendar-day.needs-review { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-color: #f59e0b; color: #92400e; } .calendar-day.missing { background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%); border-color: #ef4444; color: #991b1b; } .calendar-day.no-data { background: #f9fafb; border-color: #e5e7eb; color: #9ca3af; position: relative; } .calendar-day.no-data::after { content: "클릭하여 확인"; position: absolute; bottom: 4px; font-size: 10px; color: #6b7280; opacity: 0; transition: opacity 0.3s; } .calendar-day.no-data.hover-enabled:hover::after { opacity: 1; } .status-dot { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; } .status-dot.pulse { animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } .status-dot.normal { background: #10b981; } .status-dot.warning { background: #f59e0b; } .status-dot.error { background: #ef4444; } /* 범례 */ .legend { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; } .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #64748b; } .legend-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .legend-dot.normal { background: #10b981; } .legend-dot.warning { background: #f59e0b; } .legend-dot.error { background: #ef4444; } /* 빈 상태 */ .empty-state { text-align: center; padding: 4rem 2rem; } .empty-icon { font-size: 4rem; margin-bottom: 1.5rem; } .empty-title { font-size: 1.5rem; font-weight: 700; color: #374151; margin-bottom: 1rem; } .empty-description { color: #6b7280; font-size: 1rem; max-width: 500px; margin: 0 auto; } /* 작업자 카드 */ .worker-card { background: white; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; border: 2px solid transparent; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } .worker-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } .worker-card.normal { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-color: #10b981; } .worker-card.needs-review { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #f59e0b; } .worker-card.missing { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); border-color: #ef4444; } .worker-header { display: flex; justify-content: between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(0, 0, 0, 0.1); } .worker-info { display: flex; align-items: center; gap: 1rem; } .worker-avatar { width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: #374151; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .worker-name { font-size: 1.25rem; font-weight: 700; color: #374151; } .worker-id { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; } .status-badge { font-size: 1.5rem; filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1)); } /* 데이터 행 */ .data-section { background: rgba(255, 255, 255, 0.7); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; } .data-row { display: flex; justify-content: between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .data-row:last-child { border-bottom: none; } .data-label { font-weight: 600; color: #4b5563; } .data-value { font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-weight: 700; font-size: 1rem; } .difference-positive { color: #dc2626; background: rgba(220, 38, 38, 0.1); padding: 0.25rem 0.75rem; border-radius: 6px; font-weight: 700; } .difference-negative { color: #2563eb; background: rgba(37, 99, 235, 0.1); padding: 0.25rem 0.75rem; border-radius: 6px; font-weight: 700; } /* 버튼 */ .btn-primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); display: inline-flex; align-items: center; gap: 0.5rem; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4); } .btn-secondary { background: #6b7280; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3); } .btn-secondary:hover { background: #4b5563; transform: translateY(-2px); } .edit-btn { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.875rem; width: 100%; margin-top: 1rem; } .edit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); } .delete-btn { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; margin-left: 0.5rem; } .delete-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3); } /* 필터 */ .filter-container { display: flex; justify-content: between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f0f0; } .filter-select { background: white; border: 2px solid #e5e7eb; border-radius: 8px; padding: 0.75rem 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .filter-select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } /* 모달 */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); display: flex; justify-content: center; align-items: center; z-index: 1000; animation: fadeIn 0.3s ease; } .modal.hidden { display: none; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background: white; border-radius: 20px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(-50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1.5rem; border-radius: 20px 20px 0 0; display: flex; justify-content: between; align-items: center; } .modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 700; } .close-btn { background: rgba(255, 255, 255, 0.2); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .close-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } .modal-body { padding: 1.5rem; } .modal-footer { display: flex; justify-content: flex-end; gap: 1rem; padding: 1.5rem; border-top: 2px solid #f0f0f0; background: #f8fafc; border-radius: 0 0 20px 20px; } /* 폼 요소 */ .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: #374151; font-size: 0.875rem; } .form-input { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; } .form-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1rem; resize: vertical; min-height: 80px; transition: all 0.3s ease; } .form-textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } /* 메시지 */ .message { padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 600; border: 2px solid transparent; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } .message.success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border-color: #10b981; } .message.error { background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%); color: #991b1b; border-color: #ef4444; } .message.warning { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border-color: #f59e0b; } .message.loading { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border-color: #3b82f6; } /* 로딩 스피너 */ .loading-spinner { width: 32px; height: 32px; border: 3px solid #e5e7eb; border-top: 3px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* 애니메이션 */ .fade-in { animation: fadeInUp 0.5s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* 반응형 디자인 */ @media (max-width: 768px) { .summary-grid { grid-template-columns: 1fr; gap: 1rem; } .calendar-day { min-height: 60px; font-size: 0.875rem; } .worker-header { flex-direction: column; gap: 1rem; text-align: center; } .legend { flex-direction: column; gap: 1rem; } .modal-content { width: 95%; margin: 1rem; } .main-card { padding: 1.5rem; } .page-header { padding: 2rem; } } @media (max-width: 480px) { .calendar-day { min-height: 50px; font-size: 0.75rem; } .summary-card { padding: 1rem; } .summary-number { font-size: 1.5rem; } .worker-card { padding: 1rem; } .modal-body, .modal-footer { padding: 1rem; } }