.badge {
        position: absolute;
        top: -2px;
        right: -5px;
        background-color: red;
        color: white;
        font-size: 12px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 50%;
    }
        /* Enhanced LinkedIn-style styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }
        
        .preloader-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #0a66c2;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
.feed-container {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
i[data-lucide="thumbs-up"] {
    transition: all 0.2s ease;
    transform-origin: center bottom;
}

button:active i[data-lucide="thumbs-up"] {
    transform: scale(1.2);
}
/* Fixed Left Sidebar with Custom Scroll */
.left-sidebar {
  position: sticky;
  top: 20px;
  height: 100vh; /* Full viewport height */
  overflow-y: auto; /* Enable scrolling */
  padding-right: 12px; /* Prevent content clipping */
  margin-top: -20px; /* Compensate for container padding */
  padding-top: 20px; /* Restore top spacing */

  /* Thin Scrollbar Styling */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #d1d1d1 transparent; /* Firefox */
}

/* Chrome/Safari Scrollbar */
.left-sidebar::-webkit-scrollbar {
  width: 6px;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* Main Content (normal page scroll) */
.main-feed {
  /* Uses default page scroll */
}

/* Right Sidebar */
.right-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .feed-container {
    grid-template-columns: 1fr;
  }
  
  .main-feed {
  width: 100%;
  overflow-x: hidden;
    top: 15px;

}
  .left-sidebar,
  .right-sidebar {
    display: none;
  }
}

        /* Job card enhancements */
        .job-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 16px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .job-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .job-image-container {
            position: relative;
            height: 220px;
            background-color: #f5f5f5;
            overflow: hidden;
        }
        
        .job-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .company-logo {
            position: absolute;
            bottom: -20px;
            left: 16px;
            width: 60px;
            height: 60px;
            border-radius: 8px;
            border: 2px solid white;
            background-color: white;
            overflow: hidden;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
        }
        
        .job-content {
            padding: 28px 16px 16px;
            color: #333;
        }
        
        .job-title {
            font-size: 20px;
            font-weight: 600;
            color: rgba(0,0,0,0.9);
            margin-bottom: 4px;
        }
        
        .company-name {
            color: rgba(0,0,0,0.6);
            font-size: 16px;
            margin-bottom: 8px;
        }
        
        .job-location {
            color: rgba(0,0,0,0.6);
            font-size: 14px;
            margin-bottom: 12px;
        }
        
        .job-description {
            color: rgba(0,0,0,0.9);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 12px;
        }
        
        .job-meta {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: rgba(0,0,0,0.6);
            margin-bottom: 16px;
        }
        
        .job-salary {
            margin-right: 16px;
        }
        
        .job-type {
            display: flex;
            align-items: center;
        }
        
        .job-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .skill-tag {
            background-color: #eef3f8;
            color: #0a66c2;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .job-actions {
            border-top: 1px solid #e0e0e0;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
        }
        
        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(0,0,0,0.6);
            font-size: 12px;
            gap: 4px;
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: #0a66c2;
        }
        
        .action-icon {
            width: 20px;
            height: 20px;
            stroke-width: 1.5;
        }
        
        .save-btn {
            color: #0a66c2;
        }
        
        .easy-apply-btn {
            background-color: #0a66c2;
            color: white;
            border-radius: 24px;
            padding: 8px 24px;
            font-weight: 600;
            transition: background-color 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .easy-apply-btn:hover {
            background-color: #004182;
            color: white;
        }
        
        /* LinkedIn-style right sidebar */
        .right-sidebar {
            position: sticky;
            top: 80px;
            height: fit-content;
        }
        
        .sidebar-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 16px;
            overflow: hidden;
        }
        
        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid #e0e0e0;
            font-weight: 600;
            color: rgba(0,0,0,0.9);
        }
        
        .sidebar-content {
            padding: 16px;
        }
        
        .news-item {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .news-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .news-title {
            font-weight: 600;
            color: rgba(0,0,0,0.9);
            margin-bottom: 4px;
        }
        
        .news-source {
            font-size: 12px;
            color: rgba(0,0,0,0.6);
        }
        
        /* LinkedIn-style navigation */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: white;
            z-index: 100;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
            padding: 8px 0;
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1128px;
            margin: 0 auto;
            padding: 0 16px;
        }
        
        .nav-logo {
            font-size: 24px;
            font-weight: 700;
            color: #0a66c2;
            display: flex;
            align-items: center;
        }
        
        .nav-logo i {
            margin-right: 8px;
        }
        
        .nav-search {
            flex-grow: 1;
            max-width: 280px;
            margin: 0 16px;
            position: relative;
        }
        
        .nav-search input {
            width: 100%;
            padding: 8px 16px 8px 40px;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
            background-color: #eef3f8;
            font-size: 14px;
        }
        
        .nav-search i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(0,0,0,0.6);
        }
        
        .nav-actions {
            display: flex;
            gap: 24px;
        }
        
        .nav-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(0,0,0,0.6);
            font-size: 12px;
            gap: 4px;
        }
        
        .nav-action.active {
            color: #0a66c2;
        }
        
        .nav-action i {
            width: 24px;
            height: 24px;
        }
        
        /* Bottom navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: white;
            z-index: 100;
            box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
            padding: 8px 0;
            display: none;
        }
        
        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 500px;
            margin: 0 auto;
        }
        
        @media (max-width: 768px) {
            .bottom-nav {
                display: block;
            }
            .nav-search {
                display: none;
            }
            .nav-actions {
                display: none;
            }
        }
        
        /* LinkedIn-style post composer */
        .post-composer {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 16px;
            padding: 16px;
        }
        
        .composer-header {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .composer-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: #eef3f8;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            color: #0a66c2;
        }
        
        .composer-input {
            flex-grow: 1;
            background-color: #eef3f8;
            border-radius: 24px;
            padding: 12px 16px;
            border: none;
            font-size: 14px;
            color: rgba(0,0,0,0.9);
        }
        
        .composer-input::placeholder {
            color: rgba(0,0,0,0.6);
        }
        
        .composer-actions {
            display: flex;
            justify-content: space-between;
            padding-top: 8px;
            border-top: 1px solid #e0e0e0;
        }
        
        .composer-action {
            display: flex;
            align-items: center;
            color: rgba(0,0,0,0.6);
            font-size: 14px;
            padding: 8px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        
        .composer-action:hover {
            background-color: #eef3f8;
        }
        
        .composer-action i {
            margin-right: 8px;
            width: 20px;
            height: 20px;
        }
        
         /* Modal styles */
        .modal {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: white;
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }
        
        .modal.open {
            transform: translateY(0);
        }
        
        .modal-header {
            padding: 16px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-options {
            padding: 8px 0;
        }
        
        .modal-option {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: background-color 0.2s;
        }
        
        .modal-option:hover {
            background-color: #f5f5f5;
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .modal-overlay.open {
            opacity: 1;
            pointer-events: all;
        }
        
        
        /* LinkedIn-style sidebar menu */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            background-color: white;
            z-index: 1100;
            transform: translateX(-100%);
            transition: transform 0.3s;
            box-shadow: 1px 0 3px rgba(0,0,0,0.1);
            overflow-y: auto;
        }
        
        .sidebar.open {
            transform: translateX(0);
        }
        
        .sidebar-header {
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .sidebar-logo {
            font-size: 20px;
            font-weight: 700;
            color: #0a66c2;
        }
        
        .sidebar-close {
            color: rgba(0,0,0,0.6);
            background: none;
            border: none;
            cursor: pointer;
        }
        
        .sidebar-content {
            padding: 16px;
        }
        
        .sidebar-section {
            margin-bottom: 24px;
        }
        
        .sidebar-section-title {
            font-size: 12px;
            font-weight: 600;
            color: rgba(0,0,0,0.6);
            text-transform: uppercase;
            margin-bottom: 8px;
            padding-left: 8px;
        }
        
        .sidebar-link {
            display: flex;
            align-items: center;
            padding: 8px;
            border-radius: 4px;
            color: rgba(0,0,0,0.9);
            font-size: 14px;
            transition: background-color 0.2s;
        }
        
        .sidebar-link:hover {
            background-color: #eef3f8;
            color: #0a66c2;
        }
        
        .sidebar-link i {
            margin-right: 8px;
            width: 20px;
            height: 20px;
        }
        
        .sidebar-link.active {
            color: #0a66c2;
            font-weight: 600;
        }
        
        .sidebar-footer {
            padding: 16px;
            border-top: 1px solid #e0e0e0;
            font-size: 12px;
            color: rgba(0,0,0,0.6);
        }
        
        /* Overlay for sidebar */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1099;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .overlay.open {
            opacity: 1;
            pointer-events: all;
        }
        
:root {
  --linkedin-blue: #0a66c2;
  --light-gray: #eef3f8;
  --text-gray: #666666;
}

/* Modal Backdrop */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.search-modal.show .modal-content {
  transform: translateY(0);
}

/* Header & Search Bar */
.modal-header {
  padding: 12px 16px;
  background: var(--light-gray);
  border-bottom: 1px solid #ddd;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-icon {
  color: var(--text-gray);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.close-btn {
  background: none;
  border: none;
  margin-left: 12px;
  cursor: pointer;
  color: var(--text-gray);
  transition: all 0.2s;
}

.close-btn:hover {
  color: #333;
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-image {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0.9;
}

.empty-state h3 {
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.empty-state p {
  color: var(--text-gray);
  margin-bottom: 24px;
}

/* Results Section */
.result-categories {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
}

.category-btn {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.category-btn.active {
  color: var(--linkedin-blue);
}

.category-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--linkedin-blue);
}

.results-list {
  padding: 16px;
  max-height: 50vh;
  overflow-y: auto;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .search-modal {
    padding-top: 0;
    align-items: flex-end;
  }
  
  .modal-content {
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
  }
  
  .empty-image {
    width: 150px;
  }
}

    /* Enhanced Preloader Styles */
    .preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f8f9fa;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
        flex-direction: column;
    }
    
    .jobtok-loader {
        display: flex;
        gap: 8px;
        height: 60px;
        align-items: flex-end;
        margin-bottom: 20px;
    }
    
    .jobtok-block {
        width: 18px;
        background: linear-gradient(135deg, #0a66c2, #00a0dc);
        border-radius: 4px;
        animation: pulse 1.2s infinite ease-in-out;
    }
    
    .jobtok-block:nth-child(1) {
        height: 20px;
        animation-delay: 0s;
    }
    
    .jobtok-block:nth-child(2) {
        height: 40px;
        animation-delay: 0.2s;
    }
    
    .jobtok-block:nth-child(3) {
        height: 60px;
        animation-delay: 0.4s;
    }
    
    .jobtok-block:nth-child(4) {
        height: 40px;
        animation-delay: 0.6s;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scaleY(1);
            opacity: 1;
        }
        50% {
            transform: scaleY(1.2);
            opacity: 0.7;
        }
    }
    
    .loading-text {
        font-family: 'Segoe UI', system-ui, sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: #0a66c2;
        text-align: center;
        animation: text-fade 2s infinite;
    }
    
    @keyframes text-fade {
        0%, 100% {
            opacity: 0.8;
            transform: scale(0.98);
        }
        50% {
            opacity: 1;
            transform: scale(1.02);
        }
    }
    
    /* Add this to your stylesheet */
[data-initial-state="liked"] .like-icon {
    fill: #3b82f6; /* blue-500 */
    color: #3b82f6; /* blue-500 */
}

[data-initial-state="unliked"] .like-icon {
    color: #6b7280; /* gray-500 */
}

[data-initial-state="liked"] .like-count {
    color: #3b82f6; /* blue-500 */
    font-weight: 500; /* medium */
}
.like-btn.processing {
    cursor: wait;
    pointer-events: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

.like-content {
    transition: opacity 0.2s ease;
}

.error-shake {
    animation: shake 0.5s linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}
 .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.toast.error {
    background: #F44336;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}  
/* Gallery modal styles */
#imageGalleryModal {
    transition: opacity 0.3s ease;
}

#galleryCurrentImage {
    transition: transform 0.3s ease;
}

/* Thumbnail indicators */
#galleryThumbnails button {
    transition: all 0.2s ease;
}

/* Fullscreen behavior */
:fullscreen #imageGalleryModal {
    background-color: black;
}

:fullscreen #galleryCurrentImage {
    cursor: zoom-out;
}

/* Prevent scrolling when modal is open */
body.gallery-open {
    overflow: hidden;
}
/* Read More/Less Styles */
.post-content-truncated,
.post-content-full {
    transition: opacity 0.3s ease;
}

.post-content-full.hidden {
    display: none;
}

.read-more-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #3b82f6;
}

.read-more-btn:hover {
    text-decoration: underline;
    color: #1d4ed8;
}