@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {margin:0; font-family:'Inter', '-apple-system-font', 'Malgun Gothic'; font-size:14px; background-color: #f8f9fa; color: #343a40;}
body, div, span, input, textarea, form, button {-moz-box-sizing: border-box; -webkit-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing:border-box;}

a {
    text-decoration:none;
}

/* 헤더 스타일 */
.header-wrapper {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    padding: 0;
}

.logo-link {
    display: block;
}

.logo-image {
    height: 36px;
    width: auto;
}

.nav-container {
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.nav-item {
    text-align: center;
    padding: 8px 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
    width: 100%;
    height: 100%;
}

.nav-link:hover {
    color: #03C75A;
}

.nav-link.active {
    color: #03C75A;
    font-weight: bold;
    padding-bottom: 3px;
}

.auth-container {
    text-align: right;
    padding: 10px;
    display: flex;
    align-items: center;
}

.user-name {
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-name:hover {
    background-color: #f0f0f0;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 8px;
    margin-left: 5px;
    vertical-align: middle;
    color: #777;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 120px;
    padding: 5px 0;
    margin: 5px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 15px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: left;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    box-sizing:border-box;
}

.dropdown-item:hover {
    color: #03C75A;
    background-color: #f8f9fa;
}

.auth-button {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    transition: all 0.3s;
}

.auth-button:hover {
    background-color: #e9e9e9;
}

.login-button {
    margin-right: 5px;
}

.logout-button {
    background-color: #f8f8f8;
}

.signup-button {
    background-color: #f8f8f8;
}

/* 공통 스타일 */
.container {max-width: 900px; margin: 0 auto; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);}
.form-title {text-align: center; margin-bottom: 30px; color: #2c3e50; font-size: 24px; font-weight: bold; padding-bottom: 15px; border-bottom: 2px solid #eee;}
.form-group {margin-bottom: 20px;}
.form-group label {display: block; margin-bottom: 8px; font-weight: bold;}
.form-control {width: 100%; padding: 10px; border: 1px solid #dee2e6; border-radius: 10px; font-size: 14px;}
.form-control:focus {border-color: #0d6efd; outline: none;}
.btn {display: inline-block; padding: 10px 20px; background: #0d6efd; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; text-align: center;}
.btn:hover {background: #0b5ed7;}
.btn-block {display: block; width: 100%;}
.text-center {text-align: center;}
.mt-3 {margin-top: 15px;}
.mb-3 {margin-bottom: 15px;}

/* 검색 페이지 스타일 */
.search-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-title {
    color: #03C75A; /* 네이버 색상 */
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.section-title {
    color: #03C75A;
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-left: 4px solid #03C75A;
    padding-left: 10px;
}

.search-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #eee;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 15px;
}

.input-hint {
    font-size: 12px;
    color: #777;
    margin: 0 0 10px 0;
    text-align: center;
    font-style: italic;
}

.search-column {
    flex: 1;
    min-width: 100px;
}

.search-full-width {
    width: 100%;
}

.input-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-group-header label {
    font-weight: bold;
    color: #555;
}

.input-group {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    width:100%;
}

.full-width {
    width: 100%;
}

.add-button {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: #02a64b;
}

.remove-button {
    background-color: transparent;
    border: none;
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-button:hover {
    color: #c82333;
}

.search-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.search-button {
    padding: 8px 15px;
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.search-button:hover {
    background-color: #02a64b;
}

.place-results {
    margin-top: 20px;
}

.place-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
}

.place-item h3 {
    font-size: 18px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.place-title {
    color: #03C75A;
    text-decoration: none;
    font-weight: bold;
}

.place-title:hover {
    text-decoration: underline;
}

.place-item p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.place-link {
    display: inline-block;
    margin-top: 10px;
    color: #03C75A;
    text-decoration: none;
    font-weight: bold;
}

.place-link:hover {
    text-decoration: underline;
}

.rank {
    display: inline-block;
    background-color: #03C75A;
    color: white;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-match {
    background-color: #ff6b6b;
}

.place-match {
    border-left: 4px solid #ff6b6b;
}

.place-match-badge {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 10px;
}

#loading {
    text-align: center;
    margin: 20px 0;
    color: #666;
}

#error-message {
    color: red;
    margin: 20px 0;
    padding: 10px;
    background-color: #ffeeee;
    border-radius: 4px;
    text-align: center;
}

#initial-message {
    text-align: center;
    margin: 50px 0;
    color: #666;
    font-size: 16px;
}

#result-info {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 5px;
}

/* 고정 저장 버튼 스타일 */
.save-button-fixed, .copy-button-fixed {
    position: fixed;
    right: 20px;
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    display: none; /* 기본적으로 숨김 */
    transition: all 0.3s ease;
}

.save-button-fixed {
    bottom: 20px;
}

.copy-button-fixed {
    bottom: 80px;
    background-color: #0d6efd;
}

.save-button-fixed:hover, .copy-button-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.save-button-fixed:hover {
    background-color: #02a64b;
}

.copy-button-fixed:hover {
    background-color: #0b5ed7;
}

.save-button-fixed:active, .copy-button-fixed:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.save-count {
    display: inline-block;
    background-color: white;
    color: #03C75A;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin-left: 8px;
    font-size: 14px;
}

#copy-count {color:#0d6efd;}

/* 저장된 플레이스 페이지 스타일 */
.saved-items {
    margin-top: 20px;
}

.place-group {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    position: relative;
}

.place-group-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    margin-bottom: 15px;
}

.delete-group-btn {
    background-color: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    padding: 0;
}

.delete-group-btn:hover {
    transform: rotate(90deg);
}

.place-group .saved-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.place-group .saved-items-container::after {
    content: "";
    flex: 0 0 300px;
    margin: 0 7.5px;
    visibility: hidden;
}

.saved-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 300px;
    margin: 0 0 15px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
}

.saved-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.saved-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.saved-item-header h3 {
    margin: 0;
    color: #03C75A;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}


.saved-item-details p {
    margin: 5px 0;
    color: #555;
}

.saved-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    text-align:right;
}

.rank-date {
    font-size: 12px;
    color: #777;
}

.place-group {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.place-name-title {
    color: #333;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #03C75A;
}

.rank-info {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.saved-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.delete-saved-btn {
    background-color: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    padding: 0;
}

.delete-saved-btn:hover {
    transform: rotate(90deg);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert a {
    font-weight: bold;
    text-decoration: none;
}

.alert-info a {
    color: #0a4b5c;
}

.alert-warning a {
    color: #6d5208;
}

/* 팝업 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #03C75A;
}

.popup-title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #03C75A;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
}

.popup-title a {
    font-weight:normal;
}

.popup-naver-link {
    font-size: 14px;
    color: #0d6efd;
    margin-left: 10px;
    text-decoration: none;
}

.popup-naver-link:hover {
    text-decoration: underline;
}

/* 체크박스 스타일 */
.result-checkbox {
    margin-right: 10px;
}

/* 간소화된 결과 아이템 스타일 */
.simple-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

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

.result-info {
    flex: 1;
    min-width: 200px;
}

.rank-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 10px;
    color: white;
    text-align: center;
    min-width: 60px;
    display: inline-block;
}

.rank-in {
    background-color: #03C75A;
}

.rank-out {
    background-color: #aaa;
}

/* 순위 히스토리 테이블 스타일 */
.rank-history-container {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #eee;
}

.rank-history-trigger {
    cursor: pointer;
    transition: color 0.3s;
}

.rank-history-trigger:hover {
    color: #03C75A;
}

.rank-history-trigger i {
    margin-left: 5px;
    font-size: 14px;
    color: #03C75A;
}

.rank-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 14px;
}

.rank-history-table th,
.rank-history-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.rank-history-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.rank-history-table tr:hover {
    background-color: #f5f5f5;
}

.rank-in-text {
    color: #03C75A;
    font-weight: bold;
}

.rank-out-text {
    color: #aaa;
    font-weight: bold;
}

/* 메인 페이지 스타일 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 40px;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.main-title {
    font-size: 42px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight {
    color: #03C75A;
    font-weight: 800;
}

.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cta-button.primary {
    background-color: #03C75A;
    color: white;
    box-shadow: 0 4px 15px rgba(3, 199, 90, 0.3);
}

.cta-button.primary:hover {
    background-color: #02a64b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 199, 90, 0.4);
}

.cta-button.secondary {
    background-color: white;
    color: #03C75A;
    border: 2px solid #03C75A;
}

.cta-button.secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.features-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 40px;
    color: #03C75A;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 40px;
}

.info-content {
    flex: 1;
    min-width: 300px;
}

.info-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.info-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.info-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tips-section {
    margin-bottom: 50px;
    text-align: center;
}

.tips-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.tips-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tip-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-number {
    background-color: #03C75A;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.tip-item p {
    color: #555;
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }
    
    .features-section {
        flex-direction: column;
    }
    
    .info-section {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
}

.result-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* 순위 결과 컨테이너 스타일 */
.rank-results-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border:1px solid #eee;
}

.rank-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    background-color: white;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: transform 0.2s;
    gap:10px;
    cursor: pointer;
    border:1px solid #eee;
}

.rank-result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.rank-number {
    font-weight: bold;
    min-width: 60px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 15px;
    color: white;
    margin-right: 15px;
}

.rank-in .rank-number {
    background-color: #03C75A;
}

.rank-out .rank-number {
    background-color: #aaa;
}

.rank-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;
}

.rank-location-keyword {
    font-weight: bold;
}

.rank-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rank-view-btn {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.rank-view-btn:hover {
    background-color: #02a64b;
}

.place-open-btn2 {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.place-open-btn2:hover {
    background-color: #0d6efd;
}

.saved-item-bottom-actions {
    display: flex;
    margin: 15px -15px -15px -15px;
    border-top: 1px solid #eee;
}

.update-all-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.update-all-ranks-btn {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.update-all-ranks-btn:hover {
    background-color: #02a64b;
}

.update-all-ranks-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.update-status {
    width: 100%;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(3, 199, 90, 0.3);
    border-radius: 50%;
    border-top-color: #03C75A;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    color: #03C75A;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(3, 199, 90, 0.1);
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

/* 전체선택 컨테이너 스타일 */
.select-all-container {
    padding: 0 29px;
}

.select-all-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.select-all-container input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.update-rank-btn {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 0;
    border-bottom-left-radius: 8px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    flex: 1;
    margin: 0;
    text-align: center;
}

.update-rank-btn:hover {
    background-color: #02a64b;
}

.update-rank-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.update-rank-btn.success-btn {
    background-color: #28a745;
}

.update-rank-btn.error-btn {
    background-color: #dc3545;
}

.place-open-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0;
    border-bottom-right-radius: 8px;
    padding: 10px 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: block;
    flex: 1;
    text-align: center;
}

.place-open-btn:hover {
    background-color: #0b5ed7;
    text-decoration: none;
    color: white;
}

.view-list-btn {
    background-color: #03C75A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.view-list-btn:hover {
    background-color: #02a64b;
}

/* 검색 조합 스타일 */
.search-combination {
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f8ff;
    border-left: 4px solid #03C75A;
    border-radius: 4px;
}

.combination-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 5px 0;
}

/* 로그인 페이지 */
.login-links {text-align: center; margin-top: 20px;}
.login-links a {color: #0d6efd; text-decoration: none; margin: 0 10px;}

/* 회원가입 페이지 */
.terms-container {height: 150px; overflow-y: auto; padding: 15px; border: 1px solid #dee2e6; border-radius: 8px; background: #f9f9f9; margin-bottom: 15px; font-size: 12px; line-height: 1.6;}
.checkbox-group {margin-top: 8px;}
.checkbox-group label {display: inline-block; font-weight: normal; cursor: pointer;}
.checkbox-group input[type="checkbox"] {margin-right: 8px;}
.required-mark {color: #dc3545;}
.agreement-title {font-weight: bold; margin-bottom: 8px; color: #0d6efd;}

/* 유효성 검사 스타일 */
.is-valid {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
}
.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.delete-account-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    float: right;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.delete-account-btn:hover {
    background-color: #c82333;
}

/* 회원탈퇴 모달 스타일 */
.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.delete-account-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.delete-account-modal-title {
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.delete-account-modal-message {
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.delete-account-modal-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.delete-account-modal-buttons {
    display: flex;
    justify-content: space-between;
}

.delete-account-modal-confirm {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
}

.delete-account-modal-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
}

.delete-account-modal-error {
    color: #dc3545;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* 푸터 스타일 */
#footer {
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: 50px;
}

.footer {
    display: flex;
    gap: 15px;
    font-size: 9pt;
    max-width: 800px;
    margin: 0 auto;
}

.footer div, .footer a {color: #888;}

.footer a:hover {
    color: #a6a6a6;
}

.footerLogo, .footerBizInfo, .footerCustomer {
    flex: 0 0 auto;
    text-align: left;
}

.footerLogo {
    width: 16%;
    padding: 15px 0;
}

.footerLogo img {
    width: 100%;
    height: auto;
    max-width: 64px;
}

.footerBizInfo {
    width: 54%;
}

.footerCustomer {
    width: 30%;
}

.bizInfo {color: #888;}

.policy-links {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    color: #888;
}

.policy-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 9pt;
}

.policy-links a:hover {
    color: #03C75A;
}

/* 마이페이지 스타일 */
.mypage-tabs {
    margin-top: 30px;
}

.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.nav-item {
    margin-bottom: -1px;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #495057;
    background-color: transparent;
    border: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
}

.nav-link.active {
    color: #03C75A;
    font-weight: bold;
}

.tab-content {
    padding: 20px;
    background-color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.show {
    display: block;
}

/* 검색 탭 스타일 */
.search-tabs {
    margin-bottom: 20px;
}

.search-tabs .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-tabs .nav-item {
    margin-right: 5px;
}

.search-tabs .nav-link {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-tabs .nav-link:hover {
    color: #03C75A;
}

#bulk-search-textarea {
    min-height: 200px;
    font-family: monospace;
    resize: vertical;
    line-height: 1.5;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* 정책 페이지 스타일 */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.policy-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    color: #03C75A;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.policy-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.policy-back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #03C75A;
    text-decoration: none;
}

.policy-back-link:hover {
    text-decoration: underline;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.policy-table, .policy-table th, .policy-table td {
    border: 1px solid #ddd;
}

.policy-table th, .policy-table td {
    padding: 10px;
    text-align: left;
}

.policy-table th {
    background-color: #f2f2f2;
}

/* 스위트 알럿 스타일 */
.swal2-popup {
    border-radius: 20px !important;
}

.swal2-confirm {
    background-color: #0d6efd !important;
}

.swal2-question {
    border-color: #66a4ff !important;
}

.swal2-question .swal2-icon-content {
    color: #66a4ff !important;
}

.kakao_link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    z-index: 10000000000;
}

.kakao_link img {
    width:100%;
    height:auto;
    transition: opacity 0.3s;
}

.kakao_link img:hover {
    opacity:.8;
}

.video {width:100%; max-width:640px; height:320px; margin:0 auto;}
.video video {width:100%; height:100%; border-radius:10px;}