/* 保存职位按钮样式 */
.job-save-button {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
    background: none;
    border: 2px solid #ff6b6b;
    padding: 5px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.job-save-button::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 11;
}

.job-save-button:hover {
    color: #ff6b6b;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
    border-color: #ff3333;
}

.job-save-button.saved {
    color: #ff6b6b;
    background-color: rgba(255, 255, 255, 1);
    border-color: #ff3333;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
}

/* 已保存职位的'気になる'提示文本 */
.job-save-button.saved::before {
    content: "気になる";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    background-color: rgba(200, 255, 200, 0.7);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    color: #333;
}

.job-save-button.saved::after {
    content: "-";
    color: #ff6b6b;
}
.job-save-button.saved::after {
    content: "-";
    color: #ff6b6b;
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: normal;
    z-index: 11;
}

.job-save-button:disabled {
    background-color: rgba(200, 200, 200, 0.2);
    border-color: #aaa;
    box-shadow: 0 2px 5px rgba(150, 150, 150, 0.4);
}

/* 保存成功提示框样式 */
.job-save-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    text-align: center;
    max-width: 300px;
}

.job-save-popup p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.job-save-popup button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.job-save-popup button:hover {
    background-color: #45a049;
}

/* 已保存职位ID列表弹窗样式 */
.saved-jobs-ids-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.saved-jobs-ids-popup p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.saved-jobs-ids-popup .ids-list {
    margin-bottom: 15px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    text-align: left;
}

.saved-jobs-ids-popup button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.saved-jobs-ids-popup button:hover {
    background-color: #45a049;
}

/* 保存职位列表样式 */
.saved-jobs-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.saved-jobs-list th,
.saved-jobs-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.saved-jobs-list th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.saved-jobs-list tr:hover {
    background-color: #f5f5f5;
}

.saved-jobs-list .job-date {
    width: 120px;
    white-space: nowrap;
}

.saved-jobs-list .job-title {
    cursor: pointer;
    color: #0066cc;
}

.saved-jobs-list .job-title:hover {
    text-decoration: underline;
}

.saved-jobs-list .job-remove {
    width: 50px;
    text-align: center;
}

.saved-jobs-list .job-remove button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 16px;
}

.saved-jobs-list .job-remove button:hover {
    color: #ff3333;
}

.saved-job-description {
    display: none;
    padding: 15px;
    background-color: #f8f8ff;
    border-left: 3px solid #0066cc;
    margin: 5px 0 15px 0;
    width: 70%; /* 设置宽度为70%，左右各留出15%的空白 */
    margin-left: auto;
    margin-right: auto;
}

.no-saved-jobs {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 20px;
}

/* 职位浏览按钮样式 */
.job-view-button {
    position: absolute;
    top: calc(30% + 80px); /* 位于保存按钮下方约50px */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    cursor: pointer;
    color: #4285f4; /* 眼睛默认颜色为蓝色 */
    transition: all 0.3s ease;
    background: none;
    border: 2px solid #4285f4; /* 蓝色边框 */
    padding: 5px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.job-view-button::after {
    content: "👁️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px; /* 增大眼睛图标 */
    z-index: 11;
}

.job-view-button:hover {
    color: #3367d6;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
    border-color: #3367d6;
}

/* 未浏览过的职位样式 - 深色 */
.job-view-button.not-viewed {
    opacity: 1; /* 完全不透明 */
    color: #4285f4; /* 深蓝色 */
    border-color: #4285f4;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
}

.job-view-button.not-viewed:hover {
    color: #3367d6; /* 鼠标悬停时更深的蓝色 */
    border-color: #3367d6;
}

/* 已浏览过的职位样式 - 浅色 */
.job-view-button.viewed {
    opacity: 0.6; /* 降低透明度 */
    color: #a0c3ff; /* 浅蓝色 */
    border-color: #a0c3ff;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 已浏览过职位的提示文本 */
.job-view-button.viewed::before {
    content: "閲覧済み"; /* 已浏览 */
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    background-color: rgba(200, 200, 255, 0.7);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    color: #333;
}