.user-management-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

.create-user-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    margin-bottom: 24px;
}

.close-error {
    margin-left: auto;
    background: none;
    border: none;
    color: #c53030;
    cursor: pointer;
    font-size: 16px;
}

.access-denied {
    text-align: center;
    padding: 64px 24px;
    color: #718096;
}

.access-denied h2 {
    color: #2d3748;
    margin-bottom: 16px;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.user-form-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 4px;
}

.close-modal:hover {
    color: #2d3748;
}

/* 폼 스타일 */
.user-form-modal form {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

/* 권한 설정 섹션 */
.permissions-section {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.permissions-section h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.permission-category {
    background: #f7fafc;
    border-radius: 8px;
    padding: 16px;
}

.permission-category h4 {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.permission-item input {
    margin: 0;
    width: auto;
}

.permission-item:hover {
    color: #2d3748;
}

/* 폼 액션 버튼 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.submit-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.cancel-btn {
    padding: 12px 32px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

/* 사용자 테이블 */
.users-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.users-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.users-table tr:hover {
    background: #f7fafc;
}

/* 배지 스타일 */
.role-badge,
.access-badge,
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin { background: #fed7d7; color: #c53030; }
.role-system { background: #fbb6ce; color: #b83280; }
.role-leader { background: #bee3f8; color: #2b6cb0; }
.role-support { background: #c6f6d5; color: #2f855a; }
.role-user { background: #e2e8f0; color: #4a5568; }

.access-manager { background: #fed7d7; color: #c53030; }
.access-leader { background: #bee3f8; color: #2b6cb0; }
.access-worker { background: #c6f6d5; color: #2f855a; }
.access-viewer { background: #faf089; color: #744210; }

.status-badge.active { background: #c6f6d5; color: #2f855a; }
.status-badge.inactive { background: #fed7d7; color: #c53030; }

/* 액션 버튼 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.edit-btn,
.toggle-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #bee3f8;
    color: #2b6cb0;
}

.edit-btn:hover {
    background: #90cdf4;
}

.toggle-btn.deactivate {
    background: #fed7d7;
    color: #c53030;
}

.toggle-btn.activate {
    background: #c6f6d5;
    color: #2f855a;
}

.toggle-btn:hover {
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 64px 24px;
    color: #718096;
    font-size: 16px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .user-management-page {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        font-size: 12px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 6px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
    }
}






















