/* 대시보드 페이지 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

/* 로딩 스크린 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* 대시보드 컨테이너 */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 헤더 */
.dashboard-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.logo i {
    font-size: 24px;
    color: #3b82f6;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* index.html의 userMenuBtn 특별 스타일링 */
#userMenuBtn {
    border: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04), 
                0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

#userMenuBtn:hover {
    border-color: #d1d5db !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 
                0 1px 4px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px) !important;
}

#userMenuBtn:focus {
    outline: 1px solid #94a3b8 !important;
    outline-offset: 2px !important;
    border-color: #cbd5e1 !important;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

/* 메인 콘텐츠 */
.dashboard-main {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 환영 섹션 */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    color: white;
}

.welcome-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-content p {
    font-size: 16px;
    opacity: 0.9;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* 통계 섹션 */
.stats-section {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* 카드 공통 스타일 */
.dashboard-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-title i {
    color: #3b82f6;
}

.card-action {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card-action:hover {
    background: #f8fafc;
    color: #2563eb;
}

.card-content {
    padding: 24px;
}

/* 프로필 카드 */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.profile-item span {
    color: #1e293b;
    font-size: 14px;
}

.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.level-badge.level-01 {
    background: #fef3c7;
    color: #92400e;
}

.level-badge.level-02 {
    background: #eff6ff;
    color: #3b82f6;
}

.level-badge.level-03 {
    background: #dcfce7;
    color: #166534;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* 사용량 카드 */
.usage-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.usage-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.usage-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 12px;
    color: #64748b;
}

/* 부서 정보 카드 */
.department-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.department-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.detail-item i {
    color: #3b82f6;
    width: 16px;
}

/* 활동 카드 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-item.loading {
    justify-content: center;
    color: #64748b;
    font-style: italic;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.activity-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* 에러 토스트 */
.error-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-body {
    padding: 16px 24px;
    text-align: center;
}

.modal-body p {
    color: #64748b;
    margin: 0;
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .dashboard-main {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 16px;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .welcome-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .welcome-content h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-content {
        height: 56px;
    }
    
    .user-name {
        display: none;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .quick-action-btn {
        flex-direction: row;
        gap: 12px;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 12px;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

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

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

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.readonly-field {
    padding: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readonly-field span {
    font-size: 14px;
    color: #374151;
}

/* 모달 표시 애니메이션 */
.modal {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content {
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* 버튼 로딩 상태 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .readonly-field {
        padding: 10px;
    }
}

/* 설정 모달 스타일 */
.settings-modal-content {
    width: 90%;
    max-width: 520px; /* 700px에서 520px로 축소 */
    max-height: 85vh; /* 90vh에서 85vh로 축소 */
    overflow-y: auto;
}

#settingsModal .modal-body {
    display: flex !important;
    gap: 0;
    align-items: flex-start;
    margin-bottom: 0 !important;
    padding: 16px 20px; /* 패딩 축소 */
}

/* 설정 탭 네비게이션 */
#settingsModal .settings-tabs {
    display: flex !important;
    flex-direction: column !important;
    border-right: 2px solid #e5e7eb;
    margin-right: 16px; /* 24px에서 16px로 축소 */
    margin-bottom: 0;
    gap: 2px; /* 4px에서 2px로 축소 */
    min-width: 140px; /* 160px에서 140px로 축소 */
    border-bottom: none;
}

#settingsModal .settings-tab {
    background: none;
    border: none;
    padding: 10px 12px; /* 12px 16px에서 축소 */
    cursor: pointer;
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px; /* 8px에서 6px로 축소 */
    border-radius: 6px 0 0 6px !important; /* 8px에서 6px로 축소 */
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    width: 100%;
    font-size: 14px; /* 폰트 크기 명시적 설정 */
}

#settingsModal .settings-tab:hover {
    color: #3b82f6;
    background: #f8fafc;
}

#settingsModal .settings-tab.active {
    color: #3b82f6;
    background: white;
    border-right: 2px solid #3b82f6 !important;
    border-bottom: none !important;
    margin-right: -2px;
    margin-bottom: 0 !important;
}

.settings-tab i {
    font-size: 14px; /* 16px에서 14px로 축소 */
}

/* 설정 탭 콘텐츠 */
#settingsModal .settings-tab-content {
    display: none !important;
    flex: 1;
    padding-right: 8px; /* 오른쪽 패딩 추가 */
}

#settingsModal .settings-tab-content.active {
    display: block !important;
}

.settings-section {
    padding: 0;
}

.settings-section h4 {
    color: #1f2937;
    font-size: 16px; /* 18px에서 16px로 축소 */
    font-weight: 600;
    margin-bottom: 16px; /* 20px에서 16px로 축소 */
    padding-bottom: 6px; /* 8px에서 6px로 축소 */
    border-bottom: 1px solid #e5e7eb;
}

/* 비밀번호 폼 스타일 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 20px에서 16px로 축소 */
}

#settingsModal .form-group {
    margin-bottom: 0; /* 기본 마진 제거 */
}

#settingsModal .form-group label {
    display: block;
    font-size: 13px; /* 14px에서 13px로 축소 */
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px; /* 8px에서 6px로 축소 */
}

#settingsModal .form-group input,
#settingsModal .form-group textarea,
#settingsModal .form-group select {
    width: 100%;
    padding: 8px 10px; /* 10px 12px에서 축소 */
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px; /* 14px에서 13px로 축소 */
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 40px; /* 50px에서 40px로 축소 */
}

.password-toggle {
    position: absolute;
    right: 10px; /* 12px에서 10px로 축소 */
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 13px; /* 폰트 크기 축소 */
}

.password-toggle:hover {
    color: #374151;
    background: #f3f4f6;
}

/* 비밀번호 강도 표시 */
.password-strength {
    margin-top: 6px; /* 8px에서 6px로 축소 */
}

.strength-bar {
    width: 100%;
    height: 4px; /* 6px에서 4px로 축소 */
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.medium {
    background: #f59e0b;
}

.strength-fill.strong {
    background: #10b981;
}

.strength-text {
    font-size: 11px; /* 12px에서 11px로 축소 */
    color: #6b7280;
    font-weight: 500;
}

/* 비밀번호 요구사항 */
.password-requirements {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px; /* 8px에서 6px로 축소 */
    padding: 12px; /* 16px에서 12px로 축소 */
    margin-top: 6px; /* 8px에서 6px로 축소 */
}

.password-requirements h5 {
    color: #374151;
    font-size: 13px; /* 14px에서 13px로 축소 */
    font-weight: 600;
    margin-bottom: 8px; /* 12px에서 8px로 축소 */
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* 6px에서 4px로 축소 */
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 6px; /* 8px에서 6px로 축소 */
    font-size: 12px; /* 13px에서 12px로 축소 */
    color: #6b7280;
    transition: all 0.3s ease;
}

.password-requirements li.met {
    color: #10b981;
}

.password-requirements li i {
    width: 10px; /* 12px에서 10px로 축소 */
    font-size: 9px; /* 10px에서 9px로 축소 */
}

.password-requirements li.met i {
    color: #10b981;
}

/* 비밀번호 일치 표시 */
.form-help {
    font-size: 12px; /* 기본 폰트 크기 축소 */
    margin-top: 4px;
}

.form-help.match {
    color: #10b981;
}

.form-help.no-match {
    color: #ef4444;
}

/* 탈퇴 관련 스타일 최적화 */
.withdrawal-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px; /* 8px에서 6px로 축소 */
    padding: 12px; /* 16px에서 12px로 축소 */
    margin-bottom: 16px; /* 20px에서 16px로 축소 */
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 6px; /* 8px에서 6px로 축소 */
    margin-bottom: 8px; /* 12px에서 8px로 축소 */
}

.warning-header i {
    color: #d97706;
    font-size: 14px; /* 16px에서 14px로 축소 */
}

.warning-header h5 {
    color: #92400e;
    font-size: 14px; /* 폰트 크기 명시적 설정 */
    font-weight: 600;
    margin: 0;
}

.warning-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* 간격 축소 */
}

.warning-list li {
    font-size: 12px; /* 13px에서 12px로 축소 */
    color: #92400e;
    padding-left: 12px;
    position: relative;
}

.warning-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: bold;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 20px에서 16px로 축소 */
}

.withdrawal-confirmation {
    margin-top: 12px; /* 16px에서 12px로 축소 */
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px; /* 10px에서 8px로 축소 */
    cursor: pointer;
    font-size: 13px; /* 14px에서 13px로 축소 */
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 추후 구현 메시지 */
.coming-soon {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 30px 15px; /* 40px 20px에서 축소 */
    background: #f8fafc;
    border-radius: 6px; /* 8px에서 6px로 축소 */
    border: 1px dashed #d1d5db;
    font-size: 14px;
}

/* 모달 푸터 최적화 */
#settingsModal .modal-footer {
    padding: 12px 20px 16px; /* 패딩 축소 */
    display: flex;
    gap: 8px; /* 12px에서 8px로 축소 */
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

#settingsModal .btn {
    padding: 8px 16px; /* 10px 20px에서 축소 */
    border: none;
    border-radius: 6px; /* 8px에서 6px로 축소 */
    font-size: 13px; /* 14px에서 13px로 축소 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 설정 모달 반응형 디자인 */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        margin: 10px auto; /* 20px에서 10px로 축소 */
        max-width: none;
        max-height: 90vh; /* 모바일에서는 더 많은 공간 활용 */
    }
    
    #settingsModal .modal-body {
        flex-direction: column !important;
        gap: 16px; /* 20px에서 16px로 축소 */
        padding: 12px 16px; /* 패딩 축소 */
    }
    
    #settingsModal .settings-tabs {
        flex-direction: row !important;
        border-right: none !important;
        border-bottom: 2px solid #e5e7eb !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important; /* 20px에서 16px로 축소 */
        min-width: auto !important;
        gap: 0 !important;
        overflow-x: auto; /* 탭이 많을 경우 스크롤 가능 */
    }
    
    #settingsModal .settings-tab {
        border-radius: 6px 6px 0 0 !important; /* 모바일에서는 위쪽 둥글게 */
        padding: 8px 12px; /* 패딩 축소 */
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    #settingsModal .settings-tab.active {
        border-right: none !important;
        border-bottom: 2px solid #3b82f6 !important;
        margin-right: 0;
    }
    
    #settingsModal .settings-tab-content {
        padding-right: 0 !important;
    }
    
    .password-requirements ul {
        grid-template-columns: 1fr; /* 모바일에서는 세로로 배치 */
    }
    
    .withdrawal-form .form-group {
        margin-bottom: 0;
    }
    
    #settingsModal .modal-footer {
        flex-direction: column; /* 모바일에서는 세로로 배치 */
        gap: 8px;
        padding: 12px 16px;
    }
    
    #settingsModal .btn {
        width: 100%; /* 모바일에서는 전체 너비 */
        padding: 10px 16px; /* 터치하기 쉽게 패딩 증가 */
    }
}

@media (max-width: 480px) {
    .settings-modal-content {
        width: 98%;
        margin: 5px auto;
        max-height: 95vh; /* 매우 작은 화면에서는 거의 전체 화면 활용 */
    }
    
    #settingsModal .modal-body {
        padding: 8px 12px; /* 더 작은 패딩 */
        gap: 12px;
    }
    
    #settingsModal .settings-tabs {
        margin-bottom: 12px !important;
    }
    
    #settingsModal .settings-tab {
        padding: 6px 8px; /* 더 작은 패딩 */
        font-size: 12px;
    }
    
    .settings-tab i {
        font-size: 12px;
    }
    
    .settings-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .password-form {
        gap: 12px;
    }
    
    .password-requirements {
        padding: 8px;
    }
    
    .withdrawal-warning {
        padding: 8px;
    }
} 

/* 설정 모달 헤더 최적화 */
#settingsModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px; /* 패딩 조정 */
    border-bottom: 1px solid #e5e7eb;
    text-align: left; /* center에서 left로 변경 */
}

#settingsModal .modal-header h3 {
    font-size: 18px; /* 20px에서 18px로 축소 */
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1; /* 남은 공간 차지 */
}

/* 설정 모달 닫기 버튼 최적화 */
#settingsModal .modal-close-btn {
    background: none;
    border: none;
    font-size: 16px; /* 18px에서 16px로 조정 */
    color: #64748b;
    cursor: pointer;
    padding: 8px; /* 4px에서 8px로 증가 - 클릭 영역 확대 */
    border-radius: 6px; /* 4px에서 6px로 증가 */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* 고정 너비 */
    height: 32px; /* 고정 높이 */
    flex-shrink: 0; /* 크기 고정 */
}

#settingsModal .modal-close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
    transform: scale(1.05); /* 호버시 살짝 확대 */
}

#settingsModal .modal-close-btn:active {
    transform: scale(0.95); /* 클릭시 살짝 축소 */
}

#settingsModal .modal-close-btn i {
    font-size: 14px; /* 아이콘 크기 명시적 설정 */
}

/* 모바일에서 닫기 버튼 최적화 */
@media (max-width: 768px) {
    #settingsModal .modal-header {
        padding: 16px 16px 12px; /* 모바일 패딩 */
    }
    
    #settingsModal .modal-header h3 {
        font-size: 16px; /* 모바일에서 더 작게 */
    }
    
    #settingsModal .modal-close-btn {
        width: 36px; /* 모바일에서 터치하기 쉽게 더 크게 */
        height: 36px;
        padding: 10px;
    }
    
    #settingsModal .modal-close-btn i {
        font-size: 16px; /* 모바일에서 아이콘 더 크게 */
    }
}

@media (max-width: 480px) {
    #settingsModal .modal-header {
        padding: 12px 12px 8px; /* 매우 작은 화면에서 패딩 축소 */
    }
    
    #settingsModal .modal-header h3 {
        font-size: 15px;
    }
    
    #settingsModal .modal-close-btn {
        width: 40px; /* 매우 작은 화면에서 더 크게 */
        height: 40px;
        padding: 12px;
    }
} 