* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } header { background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } header h1 { color: #667eea; font-size: 2.5rem; margin-bottom: 10px; } header p { color: #666; font-size: 1.1rem; } /* 관리자 로그인 스타일 */ .login-section { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; } .login-form { background: rgba(255, 255, 255, 0.9); padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; } .login-form h3 { text-align: center; margin-bottom: 20px; color: #4a5568; font-size: 1.4rem; } .login-form .form-group { margin-bottom: 15px; } .login-form input { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; } .login-form input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .login-btn { width: 100%; padding: 12px 20px; background: #667eea; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; } .login-btn:hover { background: #5a67d8; transform: translateY(-1px); } .login-btn:disabled { background: #cbd5e0; cursor: not-allowed; transform: none; } .admin-section { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; } .admin-info { display: flex; align-items: center; gap: 15px; background: rgba(72, 187, 120, 0.1); padding: 12px 20px; border-radius: 8px; border: 1px solid rgba(72, 187, 120, 0.3); } .admin-info span { color: #2f855a; font-weight: 500; } .connection-status { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; } .connection-status.online { background: rgba(72, 187, 120, 0.1); color: #2f855a; } .logout-btn { padding: 6px 12px; background: #e53e3e; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; } .logout-btn:hover { background: #c53030; } .public-link { margin-top: 10px; } .public-btn { display: inline-block; padding: 8px 16px; background: #48bb78; color: white; text-decoration: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; } .public-btn:hover { background: #38a169; transform: translateY(-1px); } .auth-section { margin-top: 20px; display: flex; justify-content: center; align-items: center; } .auth-buttons { display: flex; gap: 10px; } .auth-btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; font-weight: 500; background: #667eea; color: white; } .auth-btn:hover { background: #5a67d8; transform: translateY(-1px); } .user-info { display: flex; align-items: center; gap: 15px; background: rgba(72, 187, 120, 0.1); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(72, 187, 120, 0.3); } .user-info span { color: #2f855a; font-weight: 500; } .auth-switch { text-align: center; margin-top: 15px; color: #666; } .auth-switch a { color: #667eea; text-decoration: none; font-weight: 500; } .auth-switch a:hover { text-decoration: underline; } .loading { text-align: center; padding: 20px; color: #666; } .loading p { margin: 0; font-style: italic; } .offline-mode { background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; color: #856404; } /* 게스트 모드 스타일 */ .guest-mode { background: linear-gradient(135deg, #a8e6cf, #88d8a3); color: #2d3436; padding: 15px 20px; border-radius: 8px; margin: 20px 0; border: 2px solid #00b894; box-shadow: 0 2px 10px rgba(0, 184, 148, 0.2); } /* 데이터베이스 모드 스타일 */ .database-mode { background: linear-gradient(135deg, #81ecec, #74b9ff); color: #2d3436; padding: 15px 20px; border-radius: 8px; margin: 20px 0; border: 2px solid #0984e3; box-shadow: 0 2px 10px rgba(9, 132, 227, 0.2); } .database-mode-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .database-info { font-weight: 500; color: #0984e3; } /* 로그인 필요 모드 스타일 */ .auth-required-mode { background: linear-gradient(135deg, #fdcb6e, #e17055); color: #2d3436; padding: 15px 20px; border-radius: 8px; margin: 20px 0; border: 2px solid #e17055; box-shadow: 0 2px 10px rgba(225, 112, 85, 0.2); } .auth-required-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .auth-info { font-weight: 500; color: #d63031; } .guest-mode-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .guest-login-btn { background: #00b894; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; } .guest-login-btn:hover { background: #00a085; transform: translateY(-1px); } .read-only-badge { background: #74b9ff; color: white; padding: 6px 12px; border-radius: 15px; font-size: 0.8em; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; margin-left: auto; } .sync-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; } .sync-status.online { background: rgba(72, 187, 120, 0.1); color: #2f855a; } .sync-status.offline { background: rgba(255, 193, 7, 0.1); color: #856404; } .sync-status.syncing { background: rgba(102, 126, 234, 0.1); color: #4c51bf; } .search-section { background: rgba(255, 255, 255, 0.95); padding: 20px; border-radius: 15px; margin-bottom: 30px; display: flex; gap: 15px; align-items: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); flex-wrap: wrap; } .search-section input, .search-section select { padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; flex: 1; min-width: 200px; } .search-section input:focus, .search-section select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .search-section button { padding: 12px 20px; background: #667eea; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: all 0.3s ease; white-space: nowrap; } .search-section button:hover { background: #5a67d8; transform: translateY(-2px); } .form-section { background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .form-section h2 { color: #4a5568; margin-bottom: 25px; font-size: 1.8rem; } /* 탭 스타일 */ .section-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 2px solid #e2e8f0; } .tab-btn { padding: 12px 24px; border: none; background: transparent; color: #6b7280; font-size: 1rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s ease; } .tab-btn:hover { color: #667eea; background: rgba(102, 126, 234, 0.1); } .tab-btn.active { color: #667eea; border-bottom-color: #667eea; background: rgba(102, 126, 234, 0.1); } .tab-content { display: none; } .tab-content.active { display: block; } /* 카테고리 관리 스타일 */ .category-list-section { margin-top: 40px; padding-top: 30px; border-top: 2px solid #e2e8f0; } .category-list-section h3 { color: #4a5568; margin-bottom: 20px; font-size: 1.4rem; } .category-list { display: grid; gap: 10px; } .category-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; transition: all 0.3s ease; } .category-item:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); } .category-info { display: flex; align-items: center; gap: 15px; flex: 1; } .category-name { font-weight: 600; color: #374151; font-size: 1.1rem; } .category-count { background: #667eea; color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 500; } .category-actions { display: flex; gap: 8px; } .category-btn { padding: 6px 12px; border: none; border-radius: 4px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; } .category-edit-btn { background: #3b82f6; color: white; } .category-edit-btn:hover { background: #2563eb; transform: translateY(-1px); } .category-delete-btn { background: #ef4444; color: white; } .category-delete-btn:hover { background: #dc2626; transform: translateY(-1px); } .category-default { opacity: 0.7; } .category-default .category-delete-btn { background: #9ca3af; cursor: not-allowed; } .category-default .category-delete-btn:hover { background: #9ca3af; transform: none; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #4a5568; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; font-family: inherit; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group small { color: #666; font-size: 0.9rem; margin-top: 5px; display: block; } .form-buttons { display: flex; gap: 15px; margin-top: 25px; } .form-buttons button { padding: 12px 25px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-weight: 600; } #submitBtn { background: #48bb78; color: white; } #submitBtn:hover { background: #38a169; transform: translateY(-2px); } #cancelBtn { background: #e2e8f0; color: #4a5568; } #cancelBtn:hover { background: #cbd5e0; transform: translateY(-2px); } .list-section { background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; } .list-header h2 { color: #4a5568; font-size: 1.8rem; } .sort-options select { padding: 10px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; cursor: pointer; } /* 게시판 스타일 */ .board-container { background: rgba(255, 255, 255, 0.95); border-radius: 12px; padding: 20px; margin-top: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .board-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .board-table thead { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .board-table th { padding: 12px; text-align: center; font-weight: 600; font-size: 0.95rem; border-right: 1px solid rgba(255, 255, 255, 0.2); } .board-table th:last-child { border-right: none; } .board-table tbody tr { border-bottom: 1px solid #e5e7eb; transition: background-color 0.2s ease; } .board-table tbody tr:hover { background-color: #f8fafc; } .board-table tbody tr:last-child { border-bottom: none; } .board-table td { padding: 8px 12px; text-align: center; vertical-align: middle; font-size: 0.9rem; line-height: 1.4; } /* 컬럼 너비 설정 */ .col-no { width: 60px; } .col-category { width: 100px; } .col-title { width: auto; min-width: 200px; text-align: left; } .col-attachment { width: 220px; text-align: center; } .col-date { width: 120px; } .col-actions { width: 150px; } /* 제목 스타일 */ .board-title { color: #374151; font-weight: 500; text-decoration: none; cursor: pointer; display: block; padding: 4px 6px; border-radius: 4px; transition: all 0.2s ease; } .board-title:hover { background-color: #e0e7ff; color: #4f46e5; } /* 카테고리 배지 */ .category-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 500; color: white; } .category-문서 { background: #3b82f6; } .category-이미지 { background: #10b981; } .category-동영상 { background: #f59e0b; } .category-프레젠테이션 { background: #ef4444; } .category-기타 { background: #6b7280; } /* 첨부파일 아이콘 */ .attachment-icon { font-size: 1.2rem; color: #10b981; } .attachment-icons { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 0.85rem; line-height: 1.2; max-height: 100px; overflow-y: auto; padding: 2px; } .attachment-file-item { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; padding: 3px 4px; border-radius: 3px; transition: background-color 0.2s ease; justify-content: center; white-space: nowrap; } .attachment-file-item:hover { background-color: #f0f9ff; } .attachment-file-icon { font-size: 1.1rem; width: auto; text-align: left; flex-shrink: 0; margin-right: 1px; } .attachment-file-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; margin-left: 0; } .attachment-file-name { font-weight: 500; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.8rem; } .attachment-file-size { color: #6b7280; font-size: 0.7rem; } .attachment-icon-clickable { cursor: pointer; transition: all 0.2s ease; padding: 2px; border-radius: 3px; } .attachment-icon-clickable:hover { background-color: #e0e7ff; transform: scale(1.1); } .no-attachment { color: #9ca3af; } /* 첨부파일 관리 스타일 */ .attachment-management { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; background: #f9fafb; gap: 20px; display: flex; flex-direction: column; } /* 섹션 제목 스타일 */ .section-title { font-size: 1rem; font-weight: 600; color: #374151; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; } /* 기존 첨부파일 섹션 */ .existing-attachments-section { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; } .existing-attachments { margin-top: 12px; } .no-existing-files { text-align: center; padding: 20px; color: #6b7280; font-style: italic; } .placeholder-text { font-size: 0.9rem; } /* 새 파일 추가 섹션 */ .new-attachments-section { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; } /* 드래그&드롭 영역 */ .file-drop-zone { border: 2px dashed #d1d5db; border-radius: 8px; padding: 30px 20px; text-align: center; background: #f8fafc; transition: all 0.3s ease; cursor: pointer; margin-top: 12px; } .file-drop-zone:hover { border-color: #3b82f6; background: #eff6ff; } .file-drop-zone.dragover { border-color: #3b82f6; background: #dbeafe; transform: scale(1.02); } .drop-zone-content { display: flex; flex-direction: column; align-items: center; gap: 12px; } .drop-zone-icon { font-size: 3rem; opacity: 0.6; } .drop-zone-text p { margin: 4px 0; color: #374151; } .or-text { color: #6b7280; font-size: 0.9rem; } .file-select-btn { background: #3b82f6; color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .file-select-btn:hover { background: #2563eb; transform: translateY(-1px); } .drop-zone-hint { margin-top: 8px; color: #6b7280; } /* 새 파일 미리보기 */ .new-files-preview { margin-top: 16px; display: none; } .new-files-preview.show { display: block; } .preview-file-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 6px; margin-bottom: 8px; transition: all 0.2s ease; } .preview-file-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; } .preview-file-icon { font-size: 1.2rem; flex-shrink: 0; } .preview-file-details { flex: 1; min-width: 0; } .preview-file-name { font-weight: 500; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .preview-file-size { color: #64748b; font-size: 0.85rem; } .preview-file-remove { background: #ef4444; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: all 0.2s ease; } .preview-file-remove:hover { background: #dc2626; } .attachment-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: white; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 8px; transition: all 0.2s ease; } .attachment-item:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); border-color: #3b82f6; } .attachment-info { display: flex; align-items: center; gap: 8px; flex: 1; } .attachment-icon { font-size: 1.2rem; } .attachment-details { display: flex; flex-direction: column; gap: 2px; flex: 1; } .attachment-name { font-weight: 500; color: #1f2937; font-size: 0.9rem; } .attachment-size { color: #6b7280; font-size: 0.75rem; } .attachment-actions { display: flex; gap: 5px; } .attachment-delete-btn { padding: 4px 8px; background: #ef4444; color: white; border: none; border-radius: 4px; font-size: 0.75rem; cursor: pointer; transition: all 0.2s ease; } .attachment-delete-btn:hover { background: #dc2626; transform: scale(1.05); } /* 기존 new-attachment-section 및 add-btn 스타일 제거됨 - 새로운 구조로 대체 */ .attachment-preview { display: none; margin-top: 10px; padding: 10px; background: white; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 0.85rem; color: #4b5563; } /* 액션 버튼 */ .action-buttons { display: flex; gap: 3px; justify-content: center; align-items: center; } .action-btn { padding: 4px 8px; border: none; border-radius: 3px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; } .btn-edit { background: #3b82f6; color: white; } .btn-edit:hover { background: #2563eb; transform: translateY(-1px); } .btn-delete { background: #ef4444; color: white; } .btn-delete:hover { background: #dc2626; transform: translateY(-1px); } .btn-download { background: #10b981; color: white; } .btn-download:hover { background: #059669; transform: translateY(-1px); } /* 빈 상태 */ .empty-state td { padding: 60px 20px; text-align: center; color: #6b7280; font-size: 1.1rem; } /* 상세보기 페이지 스타일 */ .detail-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); z-index: 1000; overflow-y: auto; } .detail-section { background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; } .detail-header h2 { color: #4a5568; font-size: 2rem; margin: 0; flex: 1; } .detail-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .edit-detail-btn { padding: 10px 20px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .edit-detail-btn:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .delete-detail-btn { padding: 10px 20px; background: #ef4444; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .delete-detail-btn:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); } .back-btn { padding: 12px 24px; background: #667eea; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; } .back-btn:hover { background: #5a67d8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .detail-content { display: grid; gap: 20px; } .detail-info { display: grid; gap: 25px; } .info-group { display: grid; gap: 10px; } .info-group label { font-weight: 600; color: #4a5568; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; } .info-value { padding: 15px; background: #f8fafc; border-radius: 8px; border: 2px solid #e2e8f0; font-size: 1rem; line-height: 1.6; } .info-value.description { min-height: 80px; white-space: pre-wrap; } .info-value.no-files { color: #9ca3af; font-style: italic; } .tags-container { display: flex; flex-wrap: wrap; gap: 8px; } .tag { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; border: none; } .attachments-list { display: grid; gap: 12px; margin-bottom: 20px; } .attachment-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: white; border-radius: 8px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; } .attachment-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-1px); } .attachment-icon { font-size: 1.5rem; min-width: 30px; text-align: center; } .attachment-info { display: flex; align-items: center; gap: 5px; justify-content: center; } .attachment-info .attachment-icon { font-size: 1.2rem; min-width: auto; } .attachment-count { font-size: 0.85rem; color: #6b7280; } /* 제목 링크 스타일 */ .title-link { color: #2563eb; text-decoration: none; font-weight: 600; } .title-link:hover { color: #1d4ed8; text-decoration: underline; } /* 관리자 페이지 첨부파일 목록 */ .attachment-list { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; } .attachment-item-admin { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #f8fafc; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; border: 1px solid #e2e8f0; } .attachment-item-admin:hover { background: #e2e8f0; border-color: #cbd5e1; transform: translateY(-1px); } .attachment-file-icon { font-size: 0.9rem; min-width: 16px; text-align: center; } .attachment-file-name { flex: 1; font-size: 0.75rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; } /* 모달 태그 스타일 */ .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .tag-item { display: inline-block; background: #e5e7eb; color: #374151; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; } .attachment-name { flex: 1; font-weight: 500; color: #374151; word-break: break-all; } .download-single-btn { background: #10b981; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; } .download-single-btn:hover { background: #059669; transform: scale(1.05); } .attachment-actions { padding-top: 15px; border-top: 1px solid #e5e7eb; text-align: center; } .download-all-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .download-all-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3); } /* 모바일 반응형 */ @media (max-width: 768px) { .detail-section { padding: 20px; margin: 10px; border-radius: 10px; } .detail-header { flex-direction: column; align-items: flex-start; } .detail-header h2 { font-size: 1.5rem; } .detail-actions { width: 100%; justify-content: stretch; } .detail-actions button { flex: 1; min-width: 0; } .back-btn { order: 3; width: 100%; justify-content: center; margin-top: 10px; } .attachment-item { flex-direction: column; align-items: flex-start; gap: 10px; } .download-single-btn { align-self: stretch; text-align: center; } } /* 파일 업로드 영역 */ .file-upload-area { position: relative; border: 2px dashed #d1d5db; border-radius: 8px; padding: 30px 20px; text-align: center; background: #f9fafb; transition: all 0.3s ease; cursor: pointer; } .file-upload-area:hover { border-color: #667eea; background: #f0f4ff; } .file-upload-area.drag-over { border-color: #667eea; background: #e0e7ff; transform: scale(1.02); } .file-upload-area input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } .upload-placeholder { pointer-events: none; } .upload-icon { font-size: 3rem; margin-bottom: 15px; } .upload-placeholder p { margin: 8px 0; color: #374151; } .upload-placeholder strong { color: #667eea; } .upload-placeholder small { color: #6b7280; font-size: 0.85rem; } /* 선택된 파일 목록 */ .selected-files { margin-top: 15px; } .file-item-preview { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; margin-bottom: 8px; background: white; border: 1px solid #e5e7eb; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .file-info { display: flex; align-items: center; flex: 1; } .file-icon { margin-right: 10px; font-size: 1.2rem; } .file-details { flex: 1; } .file-name { font-weight: 500; color: #374151; margin-bottom: 2px; } .file-size { font-size: 0.8rem; color: #6b7280; } .file-remove { background: #ef4444; color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .file-remove:hover { background: #dc2626; transform: scale(1.1); } .files-summary { margin-top: 10px; padding: 10px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 4px; font-size: 0.9rem; color: #0369a1; text-align: center; } .file-list { /* 기존 grid 스타일 비활성화 */ } .file-item { background: #f7fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: all 0.3s ease; position: relative; } .file-item:hover { border-color: #667eea; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15); } .file-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; gap: 15px; } .file-title { font-size: 1.3rem; font-weight: 600; color: #2d3748; margin-bottom: 5px; } .file-meta { display: flex; gap: 15px; font-size: 0.9rem; color: #666; margin-bottom: 10px; flex-wrap: wrap; align-items: center; } .file-meta span { white-space: nowrap; } .file-description { color: #4a5568; margin-bottom: 15px; line-height: 1.5; } .file-tags { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; } .tag { background: #e6fffa; color: #234e52; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; border: 1px solid #b2f5ea; } .file-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; } .file-actions button { padding: 8px 15px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; font-weight: 500; } .edit-btn { background: #3182ce; color: white; } .edit-btn:hover { background: #2c5282; } .delete-btn { background: #e53e3e; color: white; } .delete-btn:hover { background: #c53030; } .download-btn { background: #38a169; color: white; } .download-btn:hover { background: #2f855a; } .empty-state { text-align: center; padding: 60px 20px; color: #666; } .empty-state p { font-size: 1.2rem; } .modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); } #editCategoryModal { z-index: 10001; } .modal-content { background: white; margin: 5% auto; padding: 30px; border-radius: 15px; width: 90%; max-width: 600px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } .modal-content h2 { color: #4a5568; margin-bottom: 25px; font-size: 1.8rem; } .files-list { margin-top: 10px; } .file-attachment { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f7fafc; border-radius: 6px; margin-bottom: 5px; border: 1px solid #e2e8f0; } .file-attachment span { font-size: 0.9rem; color: #4a5568; } .remove-file { background: #e53e3e; color: white; border: none; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 0.8rem; } .remove-file:hover { background: #c53030; } .category-badge { background: #bee3f8; color: #2c5282; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; border: 1px solid #90cdf4; } @media (max-width: 768px) { .container { padding: 15px; } header h1 { font-size: 2rem; } .search-section { flex-direction: column; align-items: stretch; } .search-section input, .search-section select, .search-section button { width: 100%; min-width: auto; } .form-buttons { flex-direction: column; } .file-header { flex-direction: column; align-items: flex-start; } .file-actions { justify-content: flex-start; } .list-header { flex-direction: column; align-items: flex-start; } } @media (max-width: 480px) { .modal-content { margin: 10% auto; width: 95%; padding: 20px; } .file-actions { flex-direction: column; } .file-actions button { width: 100%; } .guest-mode-content { flex-direction: column; text-align: center; } .guest-login-btn { margin-top: 10px; } .notification { left: 10px; right: 10px; top: 10px; max-width: none; margin: 0; } .file-meta { gap: 8px; } .file-meta span { font-size: 0.8rem; } header h1 { font-size: 2rem; } } /* 알림 메시지 스타일 */ .notification { position: fixed; top: 20px; right: 20px; max-width: 400px; padding: 15px 20px; border-radius: 8px; color: white; font-weight: 500; z-index: 10000; animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s; animation-fill-mode: forwards; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); word-wrap: break-word; line-height: 1.5; white-space: pre-line; } .notification.success { background: linear-gradient(135deg, #48bb78, #38a169); border-left: 4px solid #2f855a; } .notification.error { background: linear-gradient(135deg, #f56565, #e53e3e); border-left: 4px solid #c53030; } .notification.info { background: linear-gradient(135deg, #4299e1, #3182ce); border-left: 4px solid #2c5282; } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } } /* 페이지네이션 스타일 */ .pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; padding: 20px 0; } .page-btn { padding: 10px 16px; border: 2px solid #667eea; background: white; color: #667eea; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; } .page-btn:hover:not(:disabled) { background: #667eea; color: white; transform: translateY(-1px); } .page-btn:disabled { background: #f3f4f6; color: #9ca3af; border-color: #d1d5db; cursor: not-allowed; transform: none; } #pageInfo { padding: 8px 12px; background: #f8fafc; border-radius: 6px; font-weight: 500; color: #4a5568; min-width: 60px; text-align: center; } /* 테이블 반응형 스타일 강화 */ @media (max-width: 1024px) { .board-table { font-size: 0.85rem; } .col-no { width: 50px; } .col-category { width: 80px; } .col-attachment { width: 180px; } .col-date { width: 100px; } .col-actions { width: 120px; } .action-btn { padding: 3px 6px; font-size: 0.75rem; } .attachment-file-name { font-size: 0.75rem; } .attachment-file-size { font-size: 0.65rem; } } @media (max-width: 768px) { .board-container { padding: 10px; overflow-x: auto; } .board-table { min-width: 700px; font-size: 0.8rem; } .board-table th, .board-table td { padding: 6px 8px; } .col-title { min-width: 180px; } .board-title { font-size: 0.9rem; line-height: 1.3; } .category-badge { font-size: 0.75rem; padding: 2px 6px; } .attachment-icons { max-height: 80px; font-size: 0.75rem; } .action-buttons { flex-direction: column; gap: 2px; } .action-btn { width: 100%; padding: 2px 4px; font-size: 0.7rem; } .pagination { flex-wrap: wrap; gap: 10px; } .page-btn { padding: 8px 12px; font-size: 0.8rem; } } @media (max-width: 480px) { .board-table { min-width: 600px; } .col-no { display: none; } .col-date { width: 80px; } .col-actions { width: 100px; } .board-table th:first-child, .board-table td:first-child { display: none; } } /* 모달 오버레이 및 상세보기 모달 스타일 */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background: white; border-radius: 15px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease; position: relative; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { padding: 25px 30px 15px; border-bottom: 2px solid #f1f5f9; display: flex; justify-content: between; align-items: center; } .modal-header h3 { margin: 0; color: #1e293b; font-size: 1.5rem; font-weight: 600; } .modal-close { background: none; border: none; font-size: 1.5rem; color: #64748b; cursor: pointer; padding: 5px; border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; margin-left: auto; } .modal-close:hover { background: #f1f5f9; color: #334155; } .modal-body { padding: 20px 30px; } .info-group { margin-bottom: 20px; } .info-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 8px; } .info-value { font-size: 0.95rem; color: #1f2937; line-height: 1.5; } .modal-footer { padding: 20px 30px 30px; border-top: 1px solid #f1f5f9; display: flex; gap: 10px; justify-content: flex-end; } .btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .btn-secondary { background: #e2e8f0; color: #475569; } .btn-secondary:hover { background: #cbd5e1; } .btn-primary { background: #3b82f6; color: white; } .btn-primary:hover { background: #2563eb; } .btn-danger { background: #ef4444; color: white; } .btn-danger:hover { background: #dc2626; } /* 모달 내 첨부파일 스타일 */ .attachments-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; } .attachment-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; } .attachment-name { flex: 1; font-weight: 500; color: #374151; word-break: break-all; } .download-single-btn { background: #10b981; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: background 0.2s ease; } .download-single-btn:hover { background: #059669; } .attachment-actions { margin-top: 15px; text-align: center; } .download-all-btn { background: #3b82f6; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s ease; } .download-all-btn:hover { background: #2563eb; } /* 탭 스타일 */ .section-tabs { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; } .tab-btn { background: none; border: none; padding: 12px 24px; font-size: 1rem; font-weight: 500; color: #718096; cursor: pointer; border-radius: 8px 8px 0 0; transition: all 0.3s ease; position: relative; } .tab-btn:hover { background: rgba(102, 126, 234, 0.1); color: #667eea; } .tab-btn.active { color: #667eea; background: white; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); } .tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #667eea; } .tab-content { display: none; } .tab-content.active { display: block; } /* 카테고리 관리 스타일 */ .category-list-section { margin-top: 30px; background: rgba(255, 255, 255, 0.9); padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .category-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; } .category-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 15px 20px; border-radius: 8px; border-left: 4px solid #667eea; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; } .category-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .category-name { font-weight: 500; color: #4a5568; font-size: 1.1rem; } .category-actions { display: flex; gap: 8px; } .btn-edit-category, .btn-delete-category { background: none; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 1.1rem; transition: all 0.3s ease; } .btn-edit-category { color: #3182ce; background: rgba(49, 130, 206, 0.1); } .btn-edit-category:hover { background: rgba(49, 130, 206, 0.2); transform: scale(1.1); } .btn-delete-category { color: #e53e3e; background: rgba(229, 62, 62, 0.1); } .btn-delete-category:hover { background: rgba(229, 62, 62, 0.2); transform: scale(1.1); } .empty-message { text-align: center; color: #718096; font-style: italic; padding: 40px; background: rgba(255, 255, 255, 0.7); border-radius: 8px; } /* 수정 모달 스타일 추가 */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); align-items: center; justify-content: center; } .modal h2 { margin-bottom: 20px; color: #4a5568; text-align: center; } /* 반응형 */ @media (max-width: 768px) { .section-tabs { flex-direction: column; gap: 0; } .tab-btn { border-radius: 0; } .category-item { flex-direction: column; align-items: flex-start; gap: 10px; } .category-actions { align-self: flex-end; } .modal-content { width: 95%; max-height: 95vh; } .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; } .modal-footer { flex-direction: column; } .btn { width: 100%; } } /* 로딩 오버레이 스타일 */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 9999; backdrop-filter: blur(3px); } .loading-content { background: white; padding: 40px 60px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); max-width: 90%; } .loading-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #2196F3; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-message { font-size: 16px; color: #333; font-weight: 500; margin-top: 15px; } /* 로딩 중 폼 비활성화 스타일 */ .loading-overlay + * form, .loading-overlay + * button { pointer-events: none; opacity: 0.6; transition: opacity 0.3s ease; }