/* Favorite button styling */
.favorite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 80px;
    justify-content: center;
}

.favorite-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    background-color: #fce4ec;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.favorite-btn.favorited {
    border-color: #e91e63;
    background-color: #e91e63;
    color: white;
}

.favorite-btn.favorited:hover {
    background-color: #c2185b;
    border-color: #c2185b;
}

.favorite-icon {
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.favorite-btn:hover .favorite-icon {
    transform: scale(1.1);
}


.favorite-text {
    font-size: 0.85em;
}

.favorite-btn.favorited .favorite-text {
    content: "Saved";
}

/* Loading state for favorite button */
.favorite-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.favorite-btn.loading .favorite-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}



.saved-jobs-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.saved-jobs-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.saved-jobs-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.saved-jobs-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-item {
    background: #f8f9fc;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e8ff;
}

.stats-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #2a4db0;
}

.stats-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.empty-saved-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.empty-description {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.browse-jobs-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2a4db0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.browse-jobs-btn:hover {
    background-color: #1e3a87;
    text-decoration: none;
    color: white;
}

.job-ad.archived {
    opacity: 0.7;
    border: 1px solid #e91e63;
    background: linear-gradient(135deg, #fff 0%, #fce4ec 100%);
}

.job-ad.archived::before {
    content: "ARCHIVED";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
}

.job-ad {
    position: relative;
}

.job-meta-saved {
    font-size: 0.85em;
    color: #999;
    margin-top: 5px;
}

.saved-date {
    color: #e91e63;
    font-weight: 500;
}

/* Pagination styling to match main jobs page */
.pagination-controls {
    text-align: center;
    margin: 30px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.page-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.page-btn:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

.page-btn.disabled {
    background-color: #ccc;
    pointer-events: none;
    cursor: default;
}

.page-info {
    font-size: 1.1em;
    color: #555;
}

@media (max-width: 768px) {
    .saved-jobs-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-item {
        text-align: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-btn {
        margin: 5px 0;
    }
}
