/* 전문적인 비즈니스 색상 팔레트 */
:root {
    /* 메인 브랜드 컬러 - 신뢰감 있는 블루 톤 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-dark: #1e40af;
    
    /* 보조 컬러 - 차분한 그레이 톤 */
    --secondary-color: #64748b;
    --secondary-light: #f1f5f9;
    --secondary-dark: #475569;
    
    /* 상태 컬러 - 더욱 절제된 비즈니스 톤 */
    --success-color: #0f766e;
    --success-light: #f0fdfa;
    --danger-color: #b91c1c;
    --danger-light: #fef2f2;
    --warning-color: #92400e;
    --warning-light: #fefbf2;
    --info-color: #0369a1;
    --info-light: #f0f9ff;
    
    /* 중성적인 상태 컬러 */
    --neutral-color: #6b7280;
    --neutral-light: #f9fafb;
    --pending-color: #374151;
    --pending-light: #f3f4f6;
    
    /* 배경 컬러 */
    --light-bg: #f8fafc;
    --white-bg: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    
    /* 텍스트 컬러 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 테두리 컬러 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 폰트 */
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 디자인 시스템 */
    --border-radius: 0.5rem;
    --border-radius-sm: 0.375rem;
    --border-radius-lg: 0.75rem;
    
    /* 그림자 - 더 세련된 효과 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-bg);
    color: var(--text-secondary);
    font-family: var(--bs-font-sans-serif);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.navbar {
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 유틸리티 */
.section {
    padding: 5rem 0;
}
.section-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background-color: var(--white-bg);
    text-align: center;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
.hero-section p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 정보 카드 */
.info-card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.info-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 폼 스타일 */
.form-control {
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

.input-group-alternative {
    transition: box-shadow .15s ease;
    border: 0;
    box-shadow: var(--shadow-sm);
}

.input-group-alternative .form-control {
    border: 0;
    box-shadow: none;
    padding: 0.75rem 1rem;
}

.input-group-alternative .input-group-text {
    border: 0;
    background-color: var(--white-bg);
    padding: 0.75rem 1rem;
}

/* 문의 섹션 */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white-bg);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}
.contact-section h2 {
    font-weight: 700;
}
.contact-section .btn-light,
.contact-section .btn-outline-light {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.contact-section .btn-light:hover {
    transform: translateY(-2px);
}
.contact-section .btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: var(--white-bg);
    color: var(--primary-color);
}

/* 커스텀 마진 클래스 */
.mb-6 {
    margin-bottom: 3.5rem !important;
}

/* 업로드 페이지 전용 스타일 */
.upload-container {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white-bg) 100%);
    min-height: calc(100vh - 200px);
}

.upload-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.upload-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-bg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.upload-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.upload-header h2 {
    color: var(--white-bg);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.upload-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.section-card {
    background: var(--white-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.section-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.section-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
}

.section-header .d-flex {
    align-items: center;
}

.section-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.section-body {
    padding: 1.5rem;
}

.step-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary-color);
    color: var(--white-bg);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.credit-display {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.credit-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--gray-50);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: scale(1.02);
}

.consent-section {
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.consent-content {
    max-height: 400px;
    overflow-y: auto;
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
}

.consent-checkboxes {
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.consent-checkbox {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    transition: all 0.2s ease;
}

.consent-checkbox:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.consent-checkbox input:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.submit-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white-bg) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white-bg);
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.btn-submit:disabled {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 폼 컨트롤 개선 */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 배지 스타일 */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-sm);
}

.badge.bg-light {
    background-color: var(--gray-100) !important;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 알림 스타일 */
.alert {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.alert-light {
    background-color: var(--gray-50);
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.alert-danger {
    background-color: var(--danger-light);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger-color);
}

/* 전문적인 버튼 스타일 */
.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #0284c7;
    border-color: #0284c7;
    color: white;
}

.btn-outline-info {
    color: var(--info-color);
    border-color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-secondary {
    background-color: var(--neutral-color);
    border-color: var(--neutral-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

.btn-outline-secondary {
    color: var(--neutral-color);
    border-color: var(--neutral-color);
}

.btn-outline-secondary:hover {
    background-color: var(--neutral-color);
    border-color: var(--neutral-color);
    color: white;
}

/* 상태 배지 개선 */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
}

/* 테이블 개선 */
.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--gray-50);
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .upload-header {
        padding: 2rem 1.5rem;
    }
    
    .upload-header h2 {
        font-size: 1.75rem;
    }
    
    .section-body {
        padding: 1rem;
    }
    
    .consent-content {
        max-height: 300px;
    }
}