/*
 * 파일명: webtools_pages.css
 * 위치: /assets/css/webtools_pages.css
 * 기능: 웹툴 페이지 전용 공통 스타일시트
 * 작성일: 2025-07-23
 * 수정일: 2025-07-23
 */

/* ===================================
 * 웹툴 페이지 기본 레이아웃
 * =================================== */
.webtools-main {
    min-height: calc(100vh - 160px);
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.webtools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
 * 웹툴 헤더 섹션
 * =================================== */
.webtools-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.webtools-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.webtools-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem; 
    font-size: 2rem; 
    line-height: 1.2;
}

.webtools-subtitle {
    color: #6c757d;
    font-size: 1rem; 
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ===================================
 * 웹툴 카드 (메인 컨텐츠 영역)
 * =================================== */
.webtools-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem; 
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.webtools-card-body {
    padding: 2rem;
}

/* ===================================
 * 웹툴 폼 스타일링
 * =================================== */
.webtools-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.webtools-form .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.webtools-input-label {
    display: inline-block;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    border: 1px solid #ced4da;
}

.webtools-input-label i {
    margin-right: 0.5rem;
    color: #0066ff;
}

.webtools-form .form-select,
.webtools-form .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.webtools-form .form-select:focus,
.webtools-form .form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.webtools-form .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.webtools-form .input-group .form-control {
    border-right: none;
}

.webtools-form .btn-search {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #ffffff;
    border: 2px solid #0066ff;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.webtools-form .btn-search:hover {
    background: linear-gradient(135deg, #0052cc 0%, #004080 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.3);
}

/* ===================================
 * 결과 영역 스타일링
 * =================================== */
.webtools-result {
    margin-top: 2rem;
}

.webtools-result .alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.webtools-result .alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.webtools-result .alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-left: 4px solid #f44336;
}

.webtools-result .card {
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.webtools-result .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.webtools-result .card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.webtools-result .card-body {
    padding: 1.5rem;
}

/* ===================================
 * 타임라인 스타일링 (배송조회용)
 * =================================== */
.webtools-timeline {
    position: relative;
    padding: 1rem 0;
}

.webtools-timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
}

.webtools-timeline-item:before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0066ff 0%, #e9ecef 100%);
}

.webtools-timeline-item:after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0066ff;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.webtools-timeline-item:last-child:before {
    display: none;
}

.webtools-timeline-item:first-child:after {
    background: #10b981;
}

.webtools-timeline-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.webtools-timeline-location {
    font-weight: 600;
    color: #374151;
    margin: 0.25rem 0;
}

.webtools-timeline-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ===================================
 * 광고 영역 스타일링
 * =================================== */
.webtools-ad {
    margin: 2rem 0;
    text-align: center;
    min-height: 250px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* ===================================
 * 로딩 스피너
 * =================================== */
.webtools-loading {
    text-align: center;
    padding: 2rem;
}

.webtools-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.webtools-loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===================================
 * 반응형 최적화
 * =================================== */
@media (max-width: 768px) {
    .webtools-main {
        padding: 1rem 0;
    }
    
    .webtools-container {
        padding: 0 10px;
    }
    
    .webtools-header {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .webtools-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .webtools-title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .webtools-subtitle {
        font-size: 0.9rem;
    }
	
	.webtools-card {
        margin-bottom: 1rem;
    }
    
    .webtools-card-body {
        padding: 1.5rem;
    }
    
    .webtools-form {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .webtools-form .input-group {
        display: block;
    }
    
    .webtools-form .input-group .form-control {
        width: 100%;
        margin-bottom: 0.75rem;
        border-radius: 8px !important;
        border-right: 2px solid #dee2e6;
    }
    
    .webtools-form .input-group .btn {
        width: 100%;
        border-radius: 8px !important;
    }
    
    .webtools-timeline-item {
        padding-left: 2.5rem;
    }
    
    .webtools-timeline-item:before {
        left: 1rem;
    }
    
    .webtools-timeline-item:after {
        left: 0.75rem;
        width: 10px;
        height: 10px;
    }
    
    .webtools-result .card-body {
        padding: 1rem;
    }
    
    .webtools-ad {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .webtools-container {
        padding: 0 8px;
    }
    
    .webtools-header {
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
    }
    
    .webtools-icon {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .webtools-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .webtools-subtitle {
        font-size: 0.85rem;
    }
    
    .webtools-card-body {
        padding: 1rem;
    }
    
    .webtools-form {
        padding: 1rem;
    }
    
    .webtools-form .form-select,
    .webtools-form .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .webtools-form .btn-search {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .webtools-result .card-header {
        padding: 0.75rem 1rem;
    }
    
    .webtools-result .card-body {
        padding: 0.75rem;
    }
}