/**
 * 투어 관리 페이지 스타일
 */

.tour-management-auth,
.tour-management-index {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 100vh;
    background-color: #F8F4EF;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 헤더 가시성 향상 */
.tour-management-auth #header-container .header,
.tour-management-index #header-container .header {
    background-color: #F8F4EF !important;
    box-shadow: 1px 6px 22px -3px rgba(0, 0, 0, 0.14);
}

.tour-management-auth #header-container .nav-link,
.tour-management-index #header-container .nav-link {
    color: #000000 !important;
    font-weight: 400;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
    /* Reduced padding */
}

.auth-header {
    text-align: left;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.title-icon svg {
    width: 24px;
    height: 24px;
}

.auth-subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}

.auth-form-container {
    background: #ffefd8;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.form-group {
    margin-bottom: 20px;
    /* Reduced margin */
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #8B6F47;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D4C4B0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-control::placeholder {
    color: #999;
}

.form-control:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-error {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Primary Button - Gradient Brown */
.btn-primary {
    background: linear-gradient(135deg, #B8956A 0%, #8B6F47 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A6855A 0%, #7A5F37 100%);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 111, 71, 0.25);
}

/* Secondary Button - Outline Style */
.btn-secondary {
    background-color: #fff;
    color: #8B6F47;
    border: 1px solid #D4C4B0;
    margin-top: 0;
}

.btn-secondary:hover {
    background-color: #F9F7F4;
    border-color: #8B6F47;
    color: #7A5F37;
}

/* Edit Button - Brown/Gold */
.tour-management-index .btn-outline-primary,
.tour-management-auth .btn-outline-primary,
.tour-card-footer .btn-outline-primary {
    background: linear-gradient(135deg, #B8956A 0%, #8B6F47 100%) !important;
    color: #fff !important;
    border: 1px solid #8B6F47 !important;
    box-shadow: 0 2px 6px rgba(139, 111, 71, 0.2) !important;
}

.tour-management-index .btn-outline-primary:hover,
.tour-management-auth .btn-outline-primary:hover,
.tour-card-footer .btn-outline-primary:hover {
    background: linear-gradient(135deg, #A6855A 0%, #7A5F37 100%) !important;
    border-color: #7A5F37 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3) !important;
}

.tour-management-index .btn-outline-primary:active,
.tour-management-auth .btn-outline-primary:active,
.tour-card-footer .btn-outline-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(139, 111, 71, 0.2) !important;
}

/* Cancel Button - Warm Red/Brown */
.tour-management-index .btn-outline-danger,
.tour-management-auth .btn-outline-danger,
.tour-card-footer .btn-outline-danger {
    background: linear-gradient(135deg, #E8A87C 0%, #D4946A 100%) !important;
    color: #fff !important;
    border: 1px solid #D4946A !important;
    box-shadow: 0 2px 6px rgba(212, 148, 106, 0.25) !important;
}

.tour-management-index .btn-outline-danger:hover,
.tour-management-auth .btn-outline-danger:hover,
.tour-card-footer .btn-outline-danger:hover {
    background: linear-gradient(135deg, #D4946A 0%, #C4845A 100%) !important;
    border-color: #C4845A !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 148, 106, 0.35) !important;
}

.tour-management-index .btn-outline-danger:active,
.tour-management-auth .btn-outline-danger:active,
.tour-card-footer .btn-outline-danger:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(212, 148, 106, 0.25) !important;
}

/* 투어 관리 페이지 */
.tour-header {
    text-align: left;
    margin-bottom: 40px;
}

.tour-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}

.tour-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.tour-card {
    background: #fff !important;
    padding: 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.tour-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.tour-status {
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.status-1 {
    background-color: #FFF3E0;
    color: #FF8F00;
}

.status-2 {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-3 {
    background-color: #FFEBEE;
    color: #C62828;
}

.tour-card-body {
    margin-bottom: 24px;
}

.tour-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.tour-info-label {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    flex-shrink: 0;
}

.tour-info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.tour-card-footer {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.tour-card-footer .btn {
    flex: 1;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tour-actions {
    text-align: center;
    margin-top: 50px;
}

.tour-actions .btn-secondary {
    background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25) !important;
}

.tour-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

.tour-actions .btn-secondary:active {
    transform: translateY(0) !important;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.6;
}

/* 모달 스타일 */
.modal {
    z-index: 3000 !important;
}

.modal-backdrop {
    z-index: 2999 !important;
}

.modal-content {
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 24px;
    background-color: #fff;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 16px 24px;
    background-color: #f9f9f9;
}

.modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

/* 투어 취소 모달 특별 스타일 */
#tourCancelModal {
    z-index: 3000 !important;
}

#tourCancelModal .modal-dialog {
    z-index: 3001 !important;
}

#tourCancelModal .modal-content {
    z-index: 3002 !important;
}

/* 반응형 */
@media (max-width: 768px) {
    .tour-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tour-header {
        margin-bottom: 30px;
    }

    .tour-title {
        font-size: 26px;
    }

    .tour-subtitle {
        font-size: 14px;
    }

    .tour-card {
        padding: 20px;
    }

    .tour-card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tour-status {
        margin-left: 0;
    }

    .auth-container {
        padding: 20px 16px;
    }

    .auth-form-container {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .title-icon svg {
        width: 20px;
        height: 20px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .tour-card-footer {
        flex-direction: column;
        gap: 10px;
    }

    .tour-card-footer .btn {
        width: 100%;
    }

    .tour-actions {
        margin-top: 40px;
    }
}