🎯 문제 해결: - 빠른 작업 카드들이 가운데 몰려있고 양쪽에 과도한 여백 발생 - 화면 공간 활용도가 낮아 사용자 경험 저하 📐 레이아웃 최적화: 1. 메인 컨테이너 확장: - 최대 너비: 1400px → 1600px (200px 확장) - 좌우 패딩: var(--space-6) → var(--space-4) (축소) - 더 넓은 콘텐츠 영역 확보 2. 카드 그리드 개선: - 카드 간격: var(--space-4) → var(--space-6) (확대) - 전체 너비 활용: width: 100%, max-width: none - 4개 카드가 화면 전체에 균등 분배 ✅ 개선 효과: - 양쪽 여백 최소화로 공간 효율성 극대화 - 카드들이 화면 전체에 균등하게 분산 - 더 넓은 클릭 영역으로 사용성 향상 - 시각적 균형감 개선 📱 반응형 호환성: - 기존 태블릿/모바일 반응형 디자인 유지 - 데스크톱에서만 확장된 레이아웃 적용 - 모든 디바이스에서 최적화된 경험 🎨 시각적 개선: - 카드 간 적절한 간격으로 가독성 향상 - 전체적인 레이아웃 밸런스 개선 - 프리미엄 느낌의 넓은 공간 활용 결과: 화면 공간을 효율적으로 활용하는 최적화된 레이아웃 테스트: http://localhost:20000/pages/dashboard/group-leader.html
1065 lines
20 KiB
CSS
1065 lines
20 KiB
CSS
/* ✅ modern-dashboard.css - 모던 대시보드 전용 스타일 */
|
|
|
|
/* ========== 대시보드 레이아웃 ========== */
|
|
.dashboard-container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
|
|
}
|
|
|
|
/* ========== 헤더 ========== */
|
|
.dashboard-header {
|
|
background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
|
|
color: var(--text-inverse);
|
|
padding: var(--space-4) var(--space-6);
|
|
box-shadow: var(--shadow-lg);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header-left .brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-bold);
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: var(--text-sm);
|
|
opacity: 0.9;
|
|
margin: 0;
|
|
font-weight: var(--font-normal);
|
|
}
|
|
|
|
.header-center .current-time {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: var(--radius-full);
|
|
padding: var(--space-3) var(--space-4);
|
|
text-align: center;
|
|
}
|
|
|
|
.time-label {
|
|
display: block;
|
|
font-size: var(--text-xs);
|
|
opacity: 0.8;
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
.time-value {
|
|
display: block;
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-bold);
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.header-right .user-profile {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: var(--radius-full);
|
|
padding: var(--space-2) var(--space-4);
|
|
cursor: pointer;
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.user-profile:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--primary-300);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-bold);
|
|
color: var(--primary-800);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: var(--text-xs);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.profile-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: var(--space-2);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-xl);
|
|
border: 1px solid var(--border-light);
|
|
min-width: 200px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: var(--transition-normal);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.user-profile:hover .profile-menu,
|
|
.profile-menu:hover {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3) var(--space-4);
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
font-size: var(--text-sm);
|
|
cursor: pointer;
|
|
transition: var(--transition-fast);
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: var(--gray-50);
|
|
}
|
|
|
|
.menu-item:first-child {
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
}
|
|
|
|
.menu-item:last-child {
|
|
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
}
|
|
|
|
.logout-btn {
|
|
color: var(--error-600);
|
|
border-top: 1px solid var(--border-light);
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: var(--error-50);
|
|
}
|
|
|
|
/* ========== 메인 콘텐츠 ========== */
|
|
.dashboard-main {
|
|
flex: 1;
|
|
padding: var(--space-8) var(--space-4);
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ========== 요약 섹션 ========== */
|
|
.summary-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.summary-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.summary-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
|
|
}
|
|
|
|
.summary-card .card-body {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.summary-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: var(--radius-xl);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: var(--text-2xl);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.summary-icon.success {
|
|
background: var(--success-100);
|
|
color: var(--success-700);
|
|
}
|
|
|
|
.summary-icon.primary {
|
|
background: var(--primary-100);
|
|
color: var(--primary-700);
|
|
}
|
|
|
|
.summary-icon.warning {
|
|
background: var(--warning-100);
|
|
color: var(--warning-700);
|
|
}
|
|
|
|
.summary-icon.error {
|
|
background: var(--error-100);
|
|
color: var(--error-700);
|
|
}
|
|
|
|
.summary-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.summary-title {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
color: var(--text-secondary);
|
|
margin: 0 0 var(--space-2) 0;
|
|
}
|
|
|
|
.summary-value {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-1);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
.value-number {
|
|
font-size: var(--text-3xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.value-unit {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.summary-change {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
font-size: var(--text-xs);
|
|
font-weight: var(--font-medium);
|
|
margin: 0;
|
|
}
|
|
|
|
.summary-change.positive {
|
|
color: var(--success-600);
|
|
}
|
|
|
|
.summary-change.negative {
|
|
color: var(--error-600);
|
|
}
|
|
|
|
.summary-change.neutral {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.change-icon {
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* ========== 콘텐츠 섹션 ========== */
|
|
.content-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.content-card {
|
|
height: fit-content;
|
|
}
|
|
|
|
.col-span-2 {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.date-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.date-input {
|
|
padding: var(--space-2) var(--space-3);
|
|
border: 1px solid var(--border-medium);
|
|
border-radius: var(--radius-md);
|
|
font-size: var(--text-sm);
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.date-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-500);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
/* ========== 작업 현황 섹션 ========== */
|
|
.work-status-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.work-status-container,
|
|
.work-status-container-enhanced {
|
|
min-height: 400px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.work-status-container-enhanced {
|
|
background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--border-light);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.work-status-container-enhanced::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, var(--primary-500), var(--primary-600), var(--secondary-500));
|
|
}
|
|
|
|
.loading-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-4);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ========== 빠른 작업 섹션 ========== */
|
|
.quick-actions-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.quick-actions-grid-full {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: var(--space-6);
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.quick-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.quick-action-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-4);
|
|
padding: var(--space-8);
|
|
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
|
|
border-radius: var(--radius-2xl);
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border: 2px solid transparent;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
min-height: 180px;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.quick-action-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
|
|
background-size: 300% 100%;
|
|
animation: gradientShift 3s ease-in-out infinite;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.quick-action-card::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
@keyframes gradientShift {
|
|
0%, 100% { background-position: 0% 50%; }
|
|
50% { background-position: 100% 50%; }
|
|
}
|
|
|
|
.quick-action-card:hover::before,
|
|
.quick-action-card:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
.quick-action-card:hover {
|
|
background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
|
|
box-shadow:
|
|
0 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
0 10px 10px -5px rgba(0, 0, 0, 0.04),
|
|
0 0 0 1px rgba(59, 130, 246, 0.1);
|
|
transform: translateY(-8px) scale(1.02);
|
|
border-color: rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.action-icon-large {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
|
|
border-radius: var(--radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2.5rem;
|
|
flex-shrink: 0;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow:
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.06),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.action-icon-large::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.quick-action-card:hover .action-icon-large {
|
|
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
|
|
transform: scale(1.15) rotate(5deg);
|
|
box-shadow:
|
|
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
0 4px 6px -2px rgba(0, 0, 0, 0.05),
|
|
0 0 0 3px rgba(59, 130, 246, 0.1),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
}
|
|
|
|
.quick-action-card:hover .action-icon-large::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.action-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.action-content h3 {
|
|
font-size: 1.125rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
color: #1f2937;
|
|
line-height: 1.3;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.action-content p {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.quick-action-card:hover .action-content h3 {
|
|
color: #1e40af;
|
|
}
|
|
|
|
.quick-action-card:hover .action-content p {
|
|
color: #374151;
|
|
}
|
|
|
|
.action-arrow {
|
|
position: absolute;
|
|
top: var(--space-4);
|
|
right: var(--space-4);
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
|
|
border-radius: var(--radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1rem;
|
|
color: #6b7280;
|
|
opacity: 0;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
transform: translateX(-10px) scale(0.8);
|
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.quick-action-card:hover .action-arrow {
|
|
opacity: 1;
|
|
transform: translateX(0) scale(1);
|
|
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
|
|
color: white;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.admin-only {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.admin-only.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* 반응형 빠른 작업 */
|
|
@media (max-width: 1024px) {
|
|
.quick-actions-grid-full {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.quick-actions-grid-full,
|
|
.quick-actions-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.quick-action-card {
|
|
min-height: 140px;
|
|
padding: var(--space-6);
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.action-icon-large {
|
|
width: 60px;
|
|
height: 60px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.quick-action-card:hover .action-icon-large {
|
|
transform: scale(1.1) rotate(3deg);
|
|
}
|
|
|
|
.action-content h3 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.action-content p {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.work-status-container-enhanced {
|
|
min-height: 300px;
|
|
}
|
|
|
|
.action-arrow {
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 0.875rem;
|
|
}
|
|
}
|
|
|
|
/* ========== 작업자 섹션 ========== */
|
|
.workers-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.view-controls {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.workers-container {
|
|
min-height: 200px;
|
|
}
|
|
|
|
/* ========== 푸터 ========== */
|
|
.dashboard-footer {
|
|
background: var(--bg-primary);
|
|
border-top: 1px solid var(--border-light);
|
|
padding: var(--space-6);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.footer-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer-text {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: var(--space-6);
|
|
}
|
|
|
|
.footer-link {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
transition: var(--transition-fast);
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: var(--primary-600);
|
|
}
|
|
|
|
/* ========== 토스트 알림 ========== */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: var(--space-6);
|
|
right: var(--space-6);
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.toast {
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-xl);
|
|
border: 1px solid var(--border-light);
|
|
padding: var(--space-4);
|
|
min-width: 300px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
animation: slideInRight var(--transition-normal) ease-out;
|
|
}
|
|
|
|
.toast.success {
|
|
border-left: 4px solid var(--success-500);
|
|
}
|
|
|
|
.toast.error {
|
|
border-left: 4px solid var(--error-500);
|
|
}
|
|
|
|
.toast.warning {
|
|
border-left: 4px solid var(--warning-500);
|
|
}
|
|
|
|
.toast.info {
|
|
border-left: 4px solid var(--info-500);
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* ========== 작업 현황 스타일 ========== */
|
|
.work-status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.project-status-card {
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-4);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.project-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.project-name {
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-semibold);
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.work-count {
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.project-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: var(--text-xs);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-value.error {
|
|
color: var(--error-600);
|
|
}
|
|
|
|
/* ========== 작업자 카드 스타일 ========== */
|
|
.workers-grid {
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.worker-card {
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.worker-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.worker-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.worker-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--primary-100);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-bold);
|
|
color: var(--primary-700);
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.worker-avatar.small {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.worker-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.worker-name {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
margin: 0 0 var(--space-1) 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.worker-job {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.worker-status {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.worker-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.stat {
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.stat.error .stat-value {
|
|
color: var(--error-600);
|
|
}
|
|
|
|
/* ========== 테이블 스타일 ========== */
|
|
.workers-table {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.table th {
|
|
background: var(--gray-50);
|
|
padding: var(--space-4);
|
|
text-align: left;
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.table td {
|
|
padding: var(--space-4);
|
|
border-bottom: 1px solid var(--border-light);
|
|
font-size: var(--text-sm);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.table tr:hover {
|
|
background: var(--gray-50);
|
|
}
|
|
|
|
.worker-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
/* ========== 빈 상태 및 오류 상태 ========== */
|
|
.empty-state,
|
|
.error-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-12);
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-icon,
|
|
.error-icon {
|
|
font-size: var(--text-5xl);
|
|
margin-bottom: var(--space-4);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state h3,
|
|
.error-state h3 {
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-semibold);
|
|
margin: 0 0 var(--space-2) 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.empty-state p,
|
|
.error-state p {
|
|
font-size: var(--text-sm);
|
|
margin: 0 0 var(--space-4) 0;
|
|
max-width: 400px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ========== 토스트 스타일 보완 ========== */
|
|
.toast-icon {
|
|
font-size: var(--text-lg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toast-message {
|
|
flex: 1;
|
|
font-size: var(--text-sm);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toast-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: var(--text-lg);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
transition: var(--transition-fast);
|
|
}
|
|
|
|
.toast-close:hover {
|
|
background: var(--gray-100);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ========== 반응형 디자인 ========== */
|
|
@media (max-width: 1024px) {
|
|
.grid-cols-4 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.dashboard-main {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.header-content {
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.header-center,
|
|
.header-right {
|
|
order: 3;
|
|
}
|
|
|
|
.grid-cols-4,
|
|
.grid-cols-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.summary-card .card-body {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-content {
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.dashboard-header {
|
|
padding: var(--space-3) var(--space-4);
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.user-info {
|
|
display: none;
|
|
}
|
|
|
|
.toast-container {
|
|
left: var(--space-4);
|
|
right: var(--space-4);
|
|
}
|
|
|
|
.toast {
|
|
min-width: auto;
|
|
}
|
|
}
|