body {
    margin: 0;
    padding: 0;
}

#container {
    width: 100vw;
    height: 100vh;
}

/* 搜索卡片样式 */
.search-card {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 1000;
    transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease;
    overflow: visible;
}

/* 收缩状态下的搜索卡片 */
.search-card.collapsed {
    height: auto;
    padding: 16px 20px;
}

.search-card.collapsed .search-content {
    display: none;
}

/* 双人模式下搜索卡片宽度 */
.search-card.dual-mode {
    width: 420px;
}

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

.search-card.collapsed .search-header {
    margin-bottom: 0;
}

/* 左侧容器 */
.header-left {
    flex: 0 0 auto;
    min-width: 40px;
    display: flex;
    justify-content: flex-start;
}

/* 收缩/展开按钮样式 */
.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-width: 24px;
    min-height: 24px;
}

.collapse-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.collapse-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.search-card.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 双人模式开关样式 */
.dual-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dual-mode-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #3b82f6;
}

.toggle-switch .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(16px);
}

/* 新增：城市选择器容器样式 */
.city-selector-container {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

.city-selector {
    position: relative;
}

.city-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    width: auto;
    min-width: 100px;
    transition: all 0.2s ease;
}

.city-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.city-select:hover {
    border-color: #d1d5db;
}

.city-selector::after {
    content: '▼';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6b7280;
    pointer-events: none;
}

.search-input-container {
    position: relative;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #1f2937;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-icon:hover {
    background: #374151;
}

.search-icon::before {
    content: '🔍';
    font-size: 14px;
    color: white;
}

/* 搜索结果面板 */
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
}

.search-results.show {
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 70px;
    box-sizing: border-box;
}

.result-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

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

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

.result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-address {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirm-btn {
    width: 32px;
    height: 32px;
    background: #22c55e;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.confirm-btn:hover {
    background: #16a34a;
}

.confirm-btn::before {
    content: '✓';
}

.loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 隐藏工具类 */
.hidden {
    display: none !important;
}

/* 初始状态样式 */
.state-initial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-initial:hover {
    background: rgba(59, 130, 246, 0.05);
}

.state-initial-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.add-icon {
    width: 24px;
    height: 24px;
    background: #6b7280;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.add-icon:hover {
    background: #374151;
}

/* 已选择状态样式 */
.state-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.location-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-info {
    flex: 1;
    min-width: 0;
}

.location-name {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-address {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.edit-icon:hover {
    color: #374151;
}

/* 通勤设置区域样式 */
.commute-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 16px;
}

.commute-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.commute-input-group {
    flex: 1;
}

.commute-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.commute-time-input {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.commute-time-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-btn {
    height: 36px;
    padding: 0 16px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #374151;
}

.search-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 地铁站标记样式 */
.subway-marker {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subway-marker.fast {
    background: #22c55e;
}

.subway-marker.medium {
    background: #f59e0b;
}

.subway-marker.slow {
    background: #ef4444;
}

/* 双人模式布局样式 */
.dual-mode-container {
    display: none;
}

.dual-mode-container.active {
    display: block;
}

.roommate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.roommate-item:hover {
    border-color: #d1d5db;
    background: rgba(59, 130, 246, 0.02);
}

.roommate-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.roommate-avatar.roommate1 {
    background: #ef4444;
}

.roommate-avatar.roommate2 {
    background: #3b82f6;
}

.roommate-name {
    flex: 0 0 auto;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    cursor: text;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
    margin-right: 8px;
}

.roommate-name:hover {
    background: rgba(229, 231, 235, 0.5);
}

.roommate-name.editing {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #3b82f6;
    outline: none;
}

/* 室友地点选择相关样式 */
.roommate-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.roommate-location-container {
    flex: 1;
    min-height: 36px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 室友地点选择的初始状态 */
.roommate-initial-state {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

/* 室友地点选择的搜索状态 */
.roommate-search-state {
    display: none;
    flex: 1;
    position: relative;
    align-items: center;
}

.roommate-search-state.active {
    display: flex;
}

.roommate-search-input {
    flex: 1;
    padding: 8px 36px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s ease;
    height: 36px;
    box-sizing: border-box;
}

.roommate-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.roommate-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #6b7280;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.roommate-search-btn:hover {
    background: #374151;
}

.roommate-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
}

.roommate-search-results.show {
    display: block;
}

.roommate-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.roommate-result-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

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

.roommate-result-info {
    flex: 1;
}

.roommate-result-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.roommate-result-address {
    font-size: 11px;
    color: #6b7280;
}

.roommate-confirm-btn {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.roommate-confirm-btn:hover {
    background: #2563eb;
}

.roommate-confirm-btn::after {
    content: "✓";
}

/* 室友地点选择的已选择状态 */
.roommate-selected-state {
    display: none;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding-right: 30px;
    position: relative;
}

.roommate-selected-state.active {
    display: flex;
}

.roommate-location-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.roommate-location-info {
    flex: 1;
    min-width: 0;
}

.roommate-location-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roommate-location-address {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roommate-edit-btn {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.roommate-edit-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.roommate-add-btn {
    width: 32px;
    height: 32px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.roommate-add-btn:hover {
    background: #374151;
}

/* 隐藏加号按钮当有地点时 或 处于搜索状态时 */
.roommate-item.has-location .roommate-add-btn,
.roommate-item.is-searching .roommate-add-btn {
    display: none;
}

/* 双人通勤时间样式 */
.dual-commute-section {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 16px;
}

.dual-commute-section.active {
    display: block;
}

.dual-commute-item {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.dual-commute-input-group {
    flex: 1;
}

.dual-commute-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.dual-commute-time-input {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dual-commute-time-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dual-search-btn {
    height: 36px;
    padding: 0 16px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.dual-search-btn:hover {
    background: #374151;
}

.dual-search-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 统一搜索按钮样式 */
.unified-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.unified-search-btn {
    height: 40px;
    padding: 0 24px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.2);
    min-width: 120px;
}

.unified-search-btn:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
    transform: translateY(-1px);
}

.unified-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.2);
}

.unified-search-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 统一操作按钮样式 */
.unified-action-btn {
    height: 36px;
    padding: 0 18px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.unified-action-btn:hover {
    background: #4b5563;
}

.unified-action-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 通用操作按钮样式 (如单人模式导出) */
.action-btn {
    height: 36px;
    padding: 0 16px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.action-btn:hover {
    background: #4b5563;
}

.action-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 高亮共同地铁站的标记样式 */
.unified-dual-marker-circle.mutual-highlight {
    outline: 3px solid #FFD700;
    box-shadow: 0 0 12px 6px rgba(255, 215, 0, 0.7);
}

/* 小屏幕设备上的响应式调整 */
@media (max-width: 768px) {
    .search-card,
    .search-card.dual-mode {
        width: calc(100vw - 40px);
        left: 20px;
        top: 10px;
        padding: 16px;
    }
    
    .search-card.collapsed {
        padding: 12px 16px;
    }

    .search-header {
        margin-bottom: 12px;
    }
    
    .search-card.collapsed .search-header {
        margin-bottom: 0;
    }

    .search-title {
        font-size: 16px;
    }

    .collapse-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .roommate-name {
        font-size: 13px;
        margin-right: 4px;
    }

    .roommate-search-input,
    .roommate-location-name,
    .roommate-location-address {
        font-size: 12px;
    }

    .dual-commute-label {
        font-size: 11px;
    }

    .dual-commute-time-input {
        font-size: 13px;
        height: 32px;
    }
    
    .unified-search-btn {
        height: 36px;
        font-size: 13px;
        padding: 0 18px;
        min-height: 44px;
    }
    
    .search-btn,
    .action-btn,
    .unified-action-btn {
        min-height: 44px;
    }
    
    .search-input {
        height: 44px;
    }
}

/* 鼠标悬停通用提示框样式 */
.hover-tooltip {
    position: absolute;
    display: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    white-space: pre-wrap;
    transform: translate(-50%, -100%);
    z-index: 1002;
}

/* 双人模式统一圆形标记样式 */
.unified-dual-marker-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* 头部右侧控件容器 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 120px;
    justify-content: flex-end;
}

/* Debug面板样式 */
.debug-panel {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 10000;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fff;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px 8px 0 0;
}

.debug-header span {
    font-weight: bold;
    color: #00ff00;
}

#clearDebugBtn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
}

#clearDebugBtn:hover {
    background: #ff6666;
}

.debug-content {
    height: 350px;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.debug-content::-webkit-scrollbar {
    width: 6px;
}

.debug-content::-webkit-scrollbar-track {
    background: transparent;
}

.debug-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.debug-item {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #222;
}

.debug-timestamp {
    color: #888;
    font-size: 10px;
}

.debug-category {
    font-weight: bold;
    margin: 2px 0;
}

.debug-error {
    color: #ff4444;
}

.debug-success {
    color: #44ff44;
}

.debug-message {
    color: #fff;
    line-height: 1.4;
}

.debug-data {
    color: #ccc;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    margin-top: 4px;
    border-radius: 2px;
    white-space: pre-wrap;
    max-height: 100px;
    overflow-y: auto;
}

.search-card .dual-mode-container .dual-commute-section .unified-search-container .unified-search-btn:hover {
    background-color: #0056b3;
}

/* Modal and Info Button Styles */
.info-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 8px;
    vertical-align: middle;
}
.info-icon-button svg {
    width: 20px;
    height: 20px;
    fill: #555;
}
.info-icon-button:hover svg {
    fill: #000;
}
.info-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 25px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeInScale 0.3s ease-out;
}
.info-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.info-modal-close:hover,
.info-modal-close:focus {
    color: #333;
    text-decoration: none;
}
.info-modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}
.info-modal-content p {
    color: #666;
    line-height: 1.6;
}
.info-modal-content a {
    color: #007bff;
    text-decoration: none;
}
.info-modal-content a:hover {
    text-decoration: underline;
}

/* API Configuration Section Styles */
.api-config-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}
.api-config-section h4 {
    margin-bottom: 10px;
    color: #444;
    font-size: 1.1em;
    text-align: center;
}
.api-note {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    text-align: center;
}
.api-input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.api-input-group label {
    flex: 0 0 80px;
    font-weight: 500;
    color: #555;
}
.api-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}
.api-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.api-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
#saveApiKeysBtn {
    background-color: #28a745;
    color: white;
}
#saveApiKeysBtn:hover {
    background-color: #218838;
}
#restoreDefaultApiKeysBtn {
    background-color: #6c757d;
    color: white;
}
#restoreDefaultApiKeysBtn:hover {
    background-color: #5a6268;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 