/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 헤더 스타일 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* 현재 배정 정보 */
.current-assignment-info h4 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.current-assignment-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.current-assignment-info i {
    margin-right: 8px;
    color: #6c757d;
}

/* 통계 정보 */
.assignment-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
}

.stat-item h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 테이블 스타일 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 1rem 0.75rem;
    background-color: #343a40;
    color: white;
    border: none;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    text-align: center;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e3f2fd !important;
    cursor: pointer;
}

/* 버튼 스타일 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e084eb 0%, #e44a60 100%);
    color: white;
}

/* 상태 배지 */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-assigned {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-poor {
    background-color: #ffebee;
    color: #c62828;
}

.status-skipped {
    background-color: #f8d7da;
    color: #721c24;
}

/* 청소 상태 불량 버튼 */
.btn-poor-quality {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.btn-poor-quality:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    color: white;
}

/* 구역 카드 */
.area-card {
    border-left: 4px solid;
}

.area-1 { border-left-color: #ff6b6b; }
.area-2 { border-left-color: #4ecdc4; }
.area-3 { border-left-color: #45b7d1; }
.area-4 { border-left-color: #f9ca24; }
.area-5 { border-left-color: #a55eea; }
.area-6 { border-left-color: #26de81; }
.area-7 { border-left-color: #fd79a8; }

/* 진행 바 */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--success-color);
    border-radius: 4px;
}

/* 모달 스타일 */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px !important;
    border-top: 1px solid #dee2e6;
}

/* 폼 스타일 */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* 섹션 간격 */
section {
    margin-bottom: 3rem !important;
}

/* 로딩 스피너 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .assignment-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .current-assignment-info h4 {
        font-size: 1.5rem;
    }
    
    .stat-item h5 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .current-assignment-info h4 {
        font-size: 1.3rem;
    }
    
    .assignment-stats {
        padding: 1rem;
    }
    
    .stat-item h5 {
        font-size: 1.1rem;
    }
    
    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* 애니메이션 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}