* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f3f2ef;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.nav-brand h2 {
  color: #0a66c2;
  font-size: 1.5rem;
}

.nav-search {
  display: flex;
  align-items: center;
  background: #eef3f8;
  border-radius: 4px;
  padding: 8px 12px;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.nav-search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #0a66c2;
  background: #e7f3ff;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e60023;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-dropdown {
  position: relative;
}

.nav-profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-profile-pic:hover {
  border-color: #0a66c2;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  display: none;
  z-index: 1001;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f3f2ef;
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 8px 0;
}

/* Main Container */
.main-container {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.content-section {
  display: none;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section.active {
  display: block;
}

/* Feed Layout */
.feed-layout {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Sidebar Styles */
.left-sidebar,
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card,
.widget-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.profile-card {
  text-align: center;
  padding: 20px;
}

.profile-header {
  margin-bottom: 15px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-info h3 {
  color: #333;
  margin-bottom: 5px;
}

.profile-info p {
  color: #666;
  font-size: 14px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-weight: bold;
  color: #0a66c2;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.view-profile-btn {
  background: none;
  border: 1px solid #0a66c2;
  color: #0a66c2;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.view-profile-btn:hover {
  background: #0a66c2;
  color: white;
}

.widget-card {
  padding: 20px;
}

.widget-card h4 {
  margin-bottom: 15px;
  color: #333;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  background: #f3f2ef;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.action-btn:hover {
  background: #e0e0e0;
}

/* Main Feed */
.main-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-creator {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.post-input {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.creator-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.post-input-btn {
  flex: 1;
  background: #f3f2ef;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.post-input-btn:hover {
  background: #e0e0e0;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.post-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  transition: background 0.2s ease;
}

.post-action:hover {
  background: #f3f2ef;
}

/* News Feed Posts */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.post-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.post-author-info h4 {
  color: #333;
  font-size: 14px;
  margin-bottom: 2px;
}

.post-author-info p {
  color: #666;
  font-size: 12px;
}

.post-content {
  padding: 0 20px 15px;
}

.post-text {
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-stats {
  padding: 10px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.post-actions-bar {
  padding: 8px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-action-btn:hover {
  background: #f3f2ef;
}

.post-action-btn.liked {
  color: #0a66c2;
}

/* Right Sidebar Widgets */
.job-recommendations,
.people-suggestions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.job-rec,
.person-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.job-rec img,
.person-suggestion img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.person-suggestion img {
  border-radius: 50%;
}

.job-rec-info,
.person-info {
  flex: 1;
}

.job-rec-info h5,
.person-info h5 {
  color: #333;
  font-size: 14px;
  margin-bottom: 2px;
}

.job-rec-info p,
.person-info p {
  color: #666;
  font-size: 12px;
}

.connect-btn {
  background: none;
  border: 1px solid #0a66c2;
  color: #0a66c2;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.connect-btn:hover {
  background: #0a66c2;
  color: white;
}

.trending-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-item {
  color: #0a66c2;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.trending-item:hover {
  color: #004182;
}

.view-all-btn {
  background: none;
  border: none;
  color: #0a66c2;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
  transition: color 0.2s ease;
}

.view-all-btn:hover {
  color: #004182;
}

/* Profile Section */
.profile-layout {
  max-width: 800px;
  margin: 0 auto;
}

.profile-banner {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.banner-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.profile-main {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: -60px;
}

.main-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  background: white;
}

.profile-details h1 {
  color: #333;
  margin-bottom: 5px;
}

.profile-details h2 {
  color: #666;
  font-weight: normal;
  font-size: 18px;
  margin-bottom: 5px;
}

.profile-details p {
  color: #666;
  margin-bottom: 15px;
}

.profile-actions {
  display: flex;
  gap: 10px;
}

.primary-btn {
  background: #0a66c2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.primary-btn:hover {
  background: #004182;
}

.secondary-btn {
  background: none;
  border: 1px solid #0a66c2;
  color: #0a66c2;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #0a66c2;
  color: white;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.profile-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.experience-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.experience-item:last-child {
  border-bottom: none;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.experience-details h4 {
  color: #333;
  margin-bottom: 5px;
}

.experience-details p {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.experience-details .description {
  color: #333;
  line-height: 1.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.skill-name {
  font-weight: 500;
  color: #333;
}

.endorsements {
  color: #666;
  font-size: 12px;
}

/* Network Section */
.network-layout {
  max-width: 800px;
  margin: 0 auto;
}

.network-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.network-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #0a66c2;
}

.stat-item .stat-label {
  font-size: 14px;
  color: #666;
}

.network-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #0a66c2;
  border-bottom-color: #0a66c2;
}

.network-content {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

/* Jobs Section */
.jobs-layout {
  max-width: 800px;
  margin: 0 auto;
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.job-filters {
  display: flex;
  gap: 15px;
}

.job-filters select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.jobs-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.job-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.job-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.job-logo {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.job-info h3 {
  color: #0a66c2;
  margin-bottom: 5px;
  cursor: pointer;
}

.job-info h3:hover {
  text-decoration: underline;
}

.job-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 3px;
}

.job-description {
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.skill-tag {
  background: #e7f3ff;
  color: #0a66c2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.job-actions {
  display: flex;
  gap: 10px;
}

.apply-btn {
  background: #0a66c2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.apply-btn:hover {
  background: #004182;
}

.save-btn {
  background: none;
  border: 1px solid #666;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: #666;
  color: white;
}

/* Messaging Section */
.messaging-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 120px);
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.conversations-list {
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.messaging-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compose-btn {
  background: #0a66c2;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.conversations {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f3f2ef;
  cursor: pointer;
  display: flex;
  gap: 12px;
  transition: background 0.2s ease;
}

.conversation-item:hover {
  background: #f3f2ef;
}

.conversation-item.active {
  background: #e7f3ff;
}

.conversation-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.conversation-info {
  flex: 1;
}

.conversation-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 3px;
}

.conversation-preview {
  color: #666;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-area {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 500;
  color: #333;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
}

.message.sent {
  background: #0a66c2;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.received {
  background: #f3f2ef;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-input {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  outline: none;
}

.chat-input button {
  background: #0a66c2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #333;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #f3f2ef;
}

.modal-body {
  padding: 20px;
}

.post-creator-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.post-creator-profile span {
  font-weight: 500;
  color: #333;
}

#postContent {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.post-options {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.option-btn {
  background: #f3f2ef;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.option-btn:hover {
  background: #e0e0e0;
}

.post-privacy {
  margin-bottom: 20px;
}

.post-privacy select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .feed-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 8px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 10px;
  }

  .nav-brand h2 {
    font-size: 1.2rem;
  }

  .content-section {
    padding: 10px;
  }

  .profile-main {
    flex-direction: column;
    text-align: center;
    margin-top: -40px;
  }

  .main-profile-pic {
    width: 80px;
    height: 80px;
  }

  .profile-actions {
    justify-content: center;
  }

  .messaging-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 100px);
  }

  .conversations-list {
    display: none;
  }

  .job-filters {
    flex-direction: column;
    gap: 10px;
  }

  .network-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .network-stats {
    justify-content: center;
  }
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f2ef;
  border-top: 3px solid #0a66c2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.show {
  display: block;
}

/* Resume Analyzer Widget */
.resume-analyzer-widget {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.analyzer-header {
  text-align: center;
  margin-bottom: 25px;
}

.analyzer-header h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.analyzer-header p {
  color: #666;
  font-size: 1rem;
}

.upload-section {
  margin-bottom: 20px;
}

.upload-area {
  border: 3px dashed #0a66c2;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f8f9ff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #004182;
  background: #f0f2ff;
}

.upload-area.dragover {
  border-color: #004182;
  background: #e8ebff;
  transform: scale(1.02);
}

.upload-content .upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.upload-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.upload-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.browse-btn {
  background: #0a66c2;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-btn:hover {
  background: #004182;
  transform: translateY(-1px);
}

.file-info {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

.file-size {
  color: #666;
  font-size: 0.8rem;
}

.analyze-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.analyze-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.loading-section {
  text-align: center;
  padding: 30px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0a66c2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.results-section h4 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.job-match {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #0a66c2;
  transition: all 0.2s ease;
}

.job-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-match.rank-1 {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.job-match.rank-2 {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, #fffef8 0%, #fef9e8 100%);
}

.job-match.rank-3 {
  border-left-color: #fd7e14;
  background: linear-gradient(135deg, #fff8f0 0%, #fef0e8 100%);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.match-score {
  background: #0a66c2;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.8rem;
}

.job-match.rank-1 .match-score {
  background: #28a745;
}

.job-match.rank-2 .match-score {
  background: #ffc107;
  color: #333;
}

.job-match.rank-3 .match-score {
  background: #fd7e14;
}

.company-name {
  color: #666;
  font-size: 1rem;
  margin-bottom: 8px;
}

.job-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.matched-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.skill-tag {
  background: #0a66c2;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.apply-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.apply-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* Interested Companies Section */
.interested-companies-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #f0f2ff;
}

.interested-companies-section h4 {
  color: #28a745;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.interested-companies-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.interested-company {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #28a745;
  position: relative;
}

.interested-company::before {
  content: "💚";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.2rem;
}

.company-header {
  margin-bottom: 12px;
}

.company-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.company-message {
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  font-style: italic;
  font-size: 0.9rem;
}

.company-actions {
  display: flex;
  gap: 10px;
}

.contact-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.view-profile-btn {
  background: transparent;
  color: #28a745;
  border: 2px solid #28a745;
  padding: 4px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-profile-btn:hover {
  background: #28a745;
  color: white;
}

.reset-btn {
  display: block;
  margin: 0 auto;
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.error-section {
  text-align: center;
  padding: 30px;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 25px;
  color: #721c24;
}

.error-message h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Company Portal Styles */
.company-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.company-header {
  text-align: center;
  margin-bottom: 30px;
}

.company-header h2 {
  color: #333;
  margin-bottom: 10px;
}

.company-header p {
  color: #666;
  font-size: 1.1rem;
}

.company-dashboard {
  background: white;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #e0e0e0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.stat-card .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Company Tabs */
.company-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f2ff;
  overflow-x: auto;
}

.company-tabs .tab-btn {
  background: none;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: #666;
}

.company-tabs .tab-btn.active {
  color: #0a66c2;
  border-bottom-color: #0a66c2;
}

.company-tabs .tab-btn:hover:not(.active) {
  background: #f8f9ff;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h3 {
  color: #333;
  margin: 0;
  font-size: 1.3rem;
}

.refresh-btn {
  background: #f8f9ff;
  color: #0a66c2;
  border: 2px solid #0a66c2;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: #0a66c2;
  color: white;
}

/* Candidates */
.candidates-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.candidate-card {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid #0a66c2;
  transition: all 0.2s ease;
}

.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.candidate-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.candidate-score {
  background: #0a66c2;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.candidate-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.candidate-actions {
  display: flex;
  gap: 10px;
}

.express-interest-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.express-interest-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.express-interest-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Applications */
.applications-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.application-card {
  background: #f8f9ff;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #0a66c2;
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.applicant-name {
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}

.application-status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-reviewed {
  background: #d4edda;
  color: #155724;
}

.status-accepted {
  background: #d1ecf1;
  color: #0c5460;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.application-details {
  margin-bottom: 15px;
}

.application-details p {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
}

.application-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Analytics */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.analytics-card {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 25px;
}

.analytics-card h4 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.chart-placeholder {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

.skills-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.skill-bar span {
  min-width: 80px;
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

.bar {
  flex: 1;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0a66c2;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.job-info {
  background: #f8f9ff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.job-info h4 {
  color: #333;
  margin-bottom: 10px;
}

.job-info p {
  color: #666;
  margin-bottom: 5px;
}
