Files
jaryo/styles.css
COMTREE 9422439a51
Some checks failed
Deploy to Vercel / deploy (push) Has been cancelled
Deploy to Railway / deploy (push) Has been cancelled
fix: improve mobile responsive design for file list table
- Add comprehensive responsive design for multiple screen sizes (1024px, 768px, 480px, 320px, 280px)
- Implement horizontal scrolling with touch support for table overflow
- Optimize column widths and font sizes for each breakpoint
- Add visual scroll hints for mobile users
- Ensure proper viewport utilization with calc() functions
- Fix table layout issues on extreme small screens (280px)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 16:45:31 +09:00

1953 lines
36 KiB
CSS

* {
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;
width: 100%;
box-sizing: border-box;
}
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 !important;
font-size: 2.5rem;
margin-bottom: 10px;
}
header p {
color: #666;
font-size: 1.1rem;
}
.admin-link {
margin-top: 15px;
}
.admin-btn {
display: inline-block;
padding: 8px 16px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}
.admin-btn:hover {
background: #5a67d8;
transform: translateY(-1px);
}
/* 페이지네이션 스타일 */
.auth-section {
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 15px;
}
.auth-form {
background: rgba(255, 255, 255, 0.9);
padding: 25px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
.auth-form h3 {
margin-bottom: 20px;
color: #4a5568;
font-size: 1.4rem;
text-align: center;
}
.auth-form input {
width: 100%;
padding: 12px 15px;
margin-bottom: 15px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
}
.auth-form input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.auth-toggle {
text-align: center;
margin-top: 15px;
color: #666;
font-size: 0.9rem;
}
.auth-toggle a {
color: #667eea;
text-decoration: none;
font-weight: 500;
}
.auth-toggle a:hover {
text-decoration: underline;
}
.connection-status {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.8);
padding: 8px 12px;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
}
.status-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
font-size: 1.2rem;
}
.status-indicator.online {
color: #48bb78;
}
.status-indicator.offline {
color: #ed8936;
}
.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);
}
.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);
}
.add-btn {
background: #48bb78 !important;
}
.add-btn:hover {
background: #38a169 !important;
}
/* 파일 추가 섹션 스타일 */
.add-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-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.form-header h2 {
color: #4a5568;
margin: 0;
font-size: 1.8rem;
}
.toggle-btn {
padding: 8px 16px;
background: #e53e3e;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.toggle-btn:hover {
background: #c53030;
}
.add-form {
display: grid;
gap: 20px;
}
.form-actions {
display: flex;
gap: 15px;
margin-top: 10px;
}
.submit-btn {
flex: 1;
padding: 12px 20px;
background: #48bb78;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.3s ease;
}
.submit-btn:hover {
background: #38a169;
transform: translateY(-1px);
}
.cancel-btn {
padding: 12px 20px;
background: #e2e8f0;
color: #4a5568;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.3s ease;
}
.cancel-btn:hover {
background: #cbd5e0;
}
.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;
}
.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);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.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: #667eea;
font-weight: 700;
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-list {
display: flex;
flex-direction: column;
gap: 4px;
max-height: 120px;
overflow-y: auto;
}
.attachment-item-public {
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-public:hover {
background: #e2e8f0;
border-color: #cbd5e1;
transform: translateY(-1px);
}
/* 기존 스타일 유지 (하위 호환성) */
.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: 0.9rem;
min-width: 16px;
text-align: center;
flex-shrink: 0;
}
.attachment-file-info {
display: flex;
flex-direction: column;
gap: 1px;
flex: 1;
min-width: 0;
margin-left: 0;
}
.attachment-file-name {
flex: 1;
font-size: 0.75rem;
color: #475569;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;
}
.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;
}
/* 액션 버튼 */
.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-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;
}
/* 페이지네이션 스타일 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 30px;
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.page-btn {
padding: 12px 20px;
border: 2px solid #e2e8f0;
border-radius: 8px;
background: white;
color: #4a5568;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.3s ease;
min-width: 80px;
}
.page-btn:hover:not(:disabled) {
border-color: #667eea;
color: #667eea;
background: #f0f4ff;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
.page-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
color: #9ca3af;
transform: none;
box-shadow: none;
}
#pageInfo {
font-weight: 700;
color: #4a5568;
font-size: 1.2rem;
background: linear-gradient(135deg, #667eea, #764ba2);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding: 8px 16px;
border: 2px solid #667eea;
border-radius: 8px;
background-color: rgba(102, 126, 234, 0.1);
min-width: 80px;
text-align: center;
}
/* 상세보기 페이지 스타일 */
.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;
}
.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-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;
}
.back-btn {
width: 100%;
justify-content: center;
}
.attachment-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.download-single-btn {
align-self: stretch;
text-align: center;
}
}
.file-list {
display: grid;
gap: 20px;
}
.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;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
font-weight: 500;
}
.download-btn:hover {
background: #2f855a;
transform: translateY(-1px);
}
.no-files {
color: #a0aec0;
font-style: italic;
font-size: 0.9rem;
}
.file-attachments {
margin-top: 10px;
padding: 8px 12px;
background: rgba(59, 130, 246, 0.1);
border-radius: 6px;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.file-attachments strong {
color: #1e40af;
margin-right: 8px;
}
.attachment {
display: inline-block;
background: rgba(59, 130, 246, 0.2);
color: #1e40af;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.85rem;
margin: 2px;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #666;
}
.empty-state p {
font-size: 1.2rem;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
}
.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%);
}
}
/* 테이블 반응형 스타일 */
@media (max-width: 1024px) {
.board-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -20px;
padding: 15px;
background: white;
border-radius: 0;
}
.board-table {
min-width: 650px;
width: max-content;
}
.col-title {
min-width: 150px;
max-width: 200px;
}
.col-attachment {
width: 150px;
min-width: 150px;
}
}
@media (max-width: 768px) {
.container {
padding: 15px 10px;
}
.list-section {
padding: 20px 10px;
margin: 0;
}
.board-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -10px;
padding: 10px;
background: white;
border-radius: 8px;
border: 1px solid #e2e8f0;
box-shadow: none;
position: relative;
}
.board-table {
min-width: 580px;
font-size: 0.8rem;
width: max-content;
}
.board-table th,
.board-table td {
padding: 6px 4px;
font-size: 0.8rem;
}
.col-no { width: 35px; min-width: 35px; }
.col-category { width: 60px; min-width: 60px; }
.col-title { min-width: 120px; max-width: 160px; }
.col-attachment { width: 140px; min-width: 140px; }
.col-date { width: 80px; min-width: 80px; }
.col-actions { width: 80px; min-width: 80px; }
.board-title {
font-size: 0.85rem;
padding: 2px 4px;
line-height: 1.3;
}
.category-badge {
font-size: 0.7rem;
padding: 3px 6px;
}
.attachment-list {
display: flex;
flex-direction: column;
gap: 3px;
max-height: 50px;
overflow-y: auto;
}
.attachment-item-public {
padding: 2px 4px;
font-size: 0.7rem;
gap: 3px;
}
.download-single-btn {
padding: 2px 5px;
font-size: 0.7rem;
}
.action-btn {
padding: 3px 6px;
font-size: 0.75rem;
}
}
@media (max-width: 480px) {
.container {
padding: 8px 5px;
max-width: 100%;
}
.list-section {
padding: 15px 5px;
margin: 0;
border-radius: 8px;
}
.board-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -5px;
padding: 8px;
border-radius: 6px;
background: white;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border: 1px solid #e2e8f0;
position: relative;
width: calc(100vw - 10px);
max-width: calc(100vw - 10px);
}
.board-table {
min-width: 480px;
font-size: 0.7rem;
border-radius: 4px;
width: max-content;
table-layout: fixed;
}
.board-table th,
.board-table td {
padding: 4px 2px;
font-size: 0.7rem;
text-align: center;
word-break: break-word;
overflow-wrap: break-word;
}
.col-no { width: 25px; min-width: 25px; max-width: 25px; }
.col-category { width: 40px; min-width: 40px; max-width: 40px; }
.col-title { width: 120px; min-width: 120px; max-width: 120px; text-align: left; }
.col-attachment { width: 100px; min-width: 100px; max-width: 100px; }
.col-date { width: 60px; min-width: 60px; max-width: 60px; }
.col-actions { width: 50px; min-width: 50px; max-width: 50px; }
.board-title {
font-size: 0.8rem;
line-height: 1.2;
padding: 2px;
}
.category-badge {
font-size: 0.65rem;
padding: 2px 5px;
}
.attachment-list {
max-height: 40px;
gap: 2px;
}
.attachment-item-public {
padding: 1px 3px;
font-size: 0.65rem;
gap: 2px;
}
.download-single-btn {
padding: 1px 4px;
font-size: 0.65rem;
min-width: 30px;
}
.action-btn {
padding: 2px 4px;
font-size: 0.7rem;
}
header h1 {
font-size: 1.8rem;
}
header p {
font-size: 1rem;
}
/* 페이지네이션 반응형 */
.pagination {
gap: 8px;
padding: 12px;
flex-wrap: wrap;
justify-content: center;
margin: 0 -10px;
border-radius: 8px;
}
.page-btn {
padding: 6px 10px;
min-width: 50px;
font-size: 0.85rem;
}
#pageInfo {
font-size: 0.9rem;
order: -1;
width: 100%;
text-align: center;
margin-bottom: 8px;
padding: 6px 12px;
}
/* 스크롤 힌트 추가 */
.board-container::after {
content: "← 좌우로 스와이프하세요 →";
position: sticky;
right: 0;
bottom: 0;
background: rgba(102, 126, 234, 0.1);
color: #667eea;
padding: 4px 8px;
font-size: 0.7rem;
text-align: center;
border-radius: 4px;
margin-top: 5px;
display: block;
}
}
/* 320px 이하 극소형 화면 대응 */
@media (max-width: 320px) {
body {
overflow-x: hidden;
}
.container {
padding: 2px 0;
max-width: 100vw;
overflow-x: hidden;
width: 100vw;
}
.list-section {
padding: 8px 2px;
margin: 0;
border-radius: 4px;
overflow-x: hidden;
}
.board-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -2px;
padding: 3px;
border-radius: 3px;
background: white;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
border: 1px solid #e2e8f0;
position: relative;
width: calc(100vw - 4px);
max-width: calc(100vw - 4px);
box-sizing: border-box;
}
.board-table {
min-width: 350px;
font-size: 0.6rem;
border-radius: 2px;
width: 350px;
table-layout: fixed;
border-collapse: collapse;
}
.board-table th,
.board-table td {
padding: 2px 1px;
font-size: 0.6rem;
text-align: center;
word-break: break-word;
overflow-wrap: break-word;
line-height: 1.1;
vertical-align: middle;
border: none;
}
.col-no { width: 18px; min-width: 18px; max-width: 18px; }
.col-category { width: 30px; min-width: 30px; max-width: 30px; }
.col-title { width: 90px; min-width: 90px; max-width: 90px; text-align: left; }
.col-attachment { width: 70px; min-width: 70px; max-width: 70px; }
.col-date { width: 45px; min-width: 45px; max-width: 45px; }
.col-actions { width: 35px; min-width: 35px; max-width: 35px; }
.board-title {
font-size: 0.7rem;
line-height: 1.1;
padding: 1px 2px;
}
.category-badge {
font-size: 0.6rem;
padding: 1px 3px;
}
.attachment-list {
max-height: 30px;
gap: 1px;
}
.attachment-item-public {
padding: 1px 2px;
font-size: 0.6rem;
gap: 1px;
}
.download-single-btn {
padding: 1px 3px;
font-size: 0.6rem;
min-width: 25px;
}
.action-btn {
padding: 1px 3px;
font-size: 0.65rem;
}
header h1 {
font-size: 1.5rem;
}
header p {
font-size: 0.9rem;
}
.pagination {
gap: 5px;
padding: 8px;
margin: 0 -2px;
border-radius: 4px;
}
.page-btn {
padding: 4px 8px;
min-width: 40px;
font-size: 0.8rem;
}
#pageInfo {
font-size: 0.8rem;
padding: 4px 8px;
}
.board-container::after {
content: "← 스와이프 →";
font-size: 0.6rem;
padding: 2px 4px;
}
}
/* 280px 이하 초극소형 화면 대응 */
@media (max-width: 280px) {
body {
overflow-x: hidden;
}
.container {
padding: 1px 0;
max-width: 100vw;
overflow-x: hidden;
width: 100vw;
box-sizing: border-box;
}
.list-section {
padding: 5px 1px;
margin: 0;
border-radius: 3px;
overflow-x: hidden;
}
.board-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -1px;
padding: 2px;
border-radius: 2px;
background: white;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
border: 1px solid #e2e8f0;
position: relative;
width: calc(100vw - 2px);
max-width: calc(100vw - 2px);
box-sizing: border-box;
}
.board-table {
min-width: 320px;
font-size: 0.55rem;
border-radius: 2px;
width: 320px;
table-layout: fixed;
border-collapse: collapse;
}
.board-table th,
.board-table td {
padding: 1px 0;
font-size: 0.55rem;
text-align: center;
word-break: break-word;
overflow-wrap: break-word;
line-height: 1.0;
vertical-align: middle;
border: none;
}
.col-no { width: 15px; min-width: 15px; max-width: 15px; }
.col-category { width: 25px; min-width: 25px; max-width: 25px; }
.col-title { width: 80px; min-width: 80px; max-width: 80px; text-align: left; }
.col-attachment { width: 60px; min-width: 60px; max-width: 60px; }
.col-date { width: 40px; min-width: 40px; max-width: 40px; }
.col-actions { width: 30px; min-width: 30px; max-width: 30px; }
.board-title {
font-size: 0.6rem;
line-height: 1.0;
padding: 1px;
}
.category-badge {
font-size: 0.5rem;
padding: 1px 2px;
}
.attachment-list {
max-height: 25px;
gap: 1px;
}
.attachment-item-public {
padding: 0 1px;
font-size: 0.5rem;
gap: 1px;
}
.download-single-btn {
padding: 1px 2px;
font-size: 0.5rem;
min-width: 20px;
}
.action-btn {
padding: 1px 2px;
font-size: 0.6rem;
}
header h1 {
font-size: 1.3rem;
}
header p {
font-size: 0.8rem;
}
.board-container::after {
content: "← →";
font-size: 0.5rem;
padding: 1px 2px;
}
}