/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 헤더 */
.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.user-name {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.server-status {
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-time {
    color: #666;
    font-size: 0.9rem;
}

/* 메인 컨텐츠 */
.admin-main {
    flex: 1;
    padding: 0;
    width: 100%;
}

/* 관리자 레이아웃 */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 140px);
}

/* 사이드바 */
.admin-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav {
    padding: 0 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h4 {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0.3rem;
}

.nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
    border-left: 3px solid #667eea;
}

/* 제휴사 등 서브메뉴가 있는 항목 */
.nav-item-has-sub {
    margin-bottom: 0.3rem;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item-has-sub.expanded .nav-submenu {
    max-height: 120px;
}

.nav-submenu li {
    margin-bottom: 0.2rem;
}

.nav-sub-link {
    padding: 0.55rem 1rem 0.55rem 1.5rem !important;
    font-size: 0.88rem !important;
    border-left: 2px solid rgba(102, 126, 234, 0.25);
    margin-left: 0.5rem;
}

.nav-sub-link:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    border-left-color: #667eea;
}

.nav-sub-link.active {
    background: rgba(102, 126, 234, 0.15) !important;
    border-left: 3px solid #667eea;
}

/* 메인 컨텐츠 영역 */
.admin-content {
    flex: 1;
    padding: 2rem;
    background: rgba(248, 249, 250, 0.5);
    overflow-y: auto;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

/* 페이지 헤더 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.page-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.page-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 대시보드 카드들 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.card-content h3 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-number {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* 크롤링 페이지 스타일 */
.crawling-dashboard {
    display: grid;
    gap: 2rem;
}

.crawling-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-text {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.crawling-settings {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.crawling-settings h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.crawling-log {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.crawling-log h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.log-container {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-entry {
    color: #00ff00;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0;
}

.log-entry.error {
    color: #ff4444;
}

.log-entry.warning {
    color: #ffaa00;
}

.log-entry.info {
    color: #00aaff;
}

/* 액션 버튼 스타일 */
.action-btn.start {
    background: #28a745;
    color: white;
}

.action-btn.stop {
    background: #dc3545;
    color: white;
}

.action-btn.start:hover {
    background: #218838;
}

.action-btn.stop:hover {
    background: #c82333;
}

/* 타일 컨테이너 */
#tile-container {
    min-height: 400px;
}

/* 에러 메시지 */
.error-message {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-message p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.retry-btn {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #5a6fd8;
}

/* 개요 탭 */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-container {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.chart-container h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 사용자 탭 */
.users-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.refresh-btn {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: #5a6fd8;
}

.users-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

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

.users-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

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

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* 분석 탭 */
.analyses-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.analyses-list {
    display: grid;
    gap: 1rem;
}

.analysis-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.analysis-item:hover {
    transform: translateX(5px);
}

/* 설정 탭 */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.settings-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    width: 100%;
}

.setting-item label {
    font-weight: 500;
    color: #333;
}

.setting-input, .setting-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    width: 200px;
}

.setting-input:focus, .setting-select:focus {
    outline: none;
    border-color: #667eea;
}

.setting-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn.export {
    background: #28a745;
    color: white;
}

.action-btn.clear {
    background: #dc3545;
    color: white;
}

.action-btn.backup {
    background: #17a2b8;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 푸터 */
.admin-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    text-align: center;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 크롤링 탭 스타일 */
.crawling-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: #e9ecef;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #dee2e6;
    color: #495057;
}

.tab-button.active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.crawling-tab-content {
    display: none;
}

.crawling-tab-content.active {
    display: block;
}

/* 크롤링 UI 스타일 - 개선된 버전 */
.crawling-settings {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.crawling-settings h3 {
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-section {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin: 0 0 1.5rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.setting-item.url-input {
    margin-bottom: 1.5rem;
}

.setting-item label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.setting-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

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

.setting-input.url-input-field {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
}

.setting-input.selector-input {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    font-size: 1.1rem;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
}

.setting-help {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.setting-input:required {
    border-left: 4px solid #667eea;
}

.setting-input:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.setting-input:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.setting-input select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.setting-input select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* 선택자 설정 스타일 */
.selector-settings {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0 -2rem;
    padding: 2rem;
}

.selector-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.selector-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.selector-item:last-child {
    margin-bottom: 0;
}

.selector-group {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.selector-group:last-child {
    margin-bottom: 0;
}

.selector-group h5 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.selector-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.selector-item label {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

.selector-examples {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.example-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.selector-examples code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* URL 미리보기 스타일 */
.url-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0 -2rem;
    padding: 2rem;
}

.preview-container {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.preview-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: #6c757d;
}

.preview-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.preview-text {
    font-size: 0.9rem;
}

.preview-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.preview-item:last-child {
    margin-bottom: 0;
}

.preview-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preview-url {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    display: block;
    border: 1px solid #e9ecef;
    color: #495057;
}

.preview-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.preview-time {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
}

/* 다중 URL 입력 스타일 */
.url-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-input-row .input-group {
    flex: 1;
}

.add-url-btn {
    padding: 0.875rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-url-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.remove-url-btn {
    padding: 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-url-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* 크롤링 컨트롤 버튼 스타일 */
.crawling-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

.crawling-controls .action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.crawling-controls .action-btn.start {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.crawling-controls .action-btn.start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.crawling-controls .action-btn.stop {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.crawling-controls .action-btn.stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.crawling-controls .action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 크롤링 로그 섹션 스타일 */
.crawling-log-section {
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.crawling-log-section h3 {
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.info {
    color: #17a2b8;
}

.log-entry.success {
    color: #28a745;
}

.log-entry.error {
    color: #dc3545;
}

.log-entry.warning {
    color: #ffc107;
}

/* 데이터 테이블 스타일 */
.crawled-data-table {
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table-header h3 {
    margin: 0;
    color: #495057;
}

.table-controls {
    display: flex;
    gap: 0.5rem;
}

.action-btn.refresh {
    background: #17a2b8;
    color: white;
}

.action-btn.export {
    background: #28a745;
    color: white;
}

.action-btn.clear {
    background: #dc3545;
    color: white;
}

.table-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.stat-value {
    font-weight: 600;
    color: #667eea;
}

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

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    margin: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 마이페이지 */
#mypage-section {
    background-color: #4C9AFF;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    text-decoration: none;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-item {
    animation: fadeInUp 0.5s ease-out;
}

.selector-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        padding: 1rem 0;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .nav-section {
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .nav-menu {
        display: flex;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .crawling-cards {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-controls {
        width: 100%;
        justify-content: stretch;
    }
    
    .search-input, .filter-select, .refresh-btn {
        flex: 1;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .setting-input, .setting-select {
        width: 100%;
    }
}