@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --primary: #008500;
  --secondary: #ffffff;
  --dark: #343a40;
  --light: #ffffff;
  --success: #008500;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --custom-green: #008500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fff;
  min-height: 100vh;
  color: var(--dark);
}

/* Header Styles */
header {
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  position: relative;
  z-index: 9999;
  background-color: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--gray);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: var(--light);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--custom-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.user-name {
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--secondary);
  padding: 1rem 5%;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb span {
  color: #666;
}



/* Welcome Section */
.welcome-section {
  background: linear-gradient(
    135deg,
    var(--custom-green) 0%,
    var(--custom-green) 100%
  );
  color: var(--light);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.welcome-text p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
}


/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.blue {
  background-color: #e3ecff;
  color: var(--primary);
}

.stat-icon.green {
  background-color: #e6f7ee;
  color: var(--custom-green);
}

.stat-icon.orange {
  background-color: #fff8e6;
  color: var(--warning);
}

.stat-icon.purple {
  background-color: #f0e6ff;
  color: var(--custom-green);
}

.stat-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.stat-info p {
  color: #666;
  font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-2px);
}

.action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #e3ecff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.action-card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.action-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--dark);
}

.view-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Active Jobs Section */
.jobs-section {
  background-color: var(--light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.job-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.job-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.job-provider {
  color: #666;
  font-size: 0.9rem;
}

.job-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-in-progress {
  background-color: #cce5ff;
  color: #004085;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-completed {
  background-color: #d4edda;
  color: var(--custom-green);
}

.job-details {
  margin-bottom: 1.5rem;
}

.job-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.job-meta div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-actions {
  display: flex;
  gap: 1rem;
}

/* Recommended Providers */
.providers-section {
  background-color: var(--light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.provider-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.provider-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #eee;
}

.provider-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #eee;
  overflow: hidden;
}

.provider-info h4 {
  margin-bottom: 0.3rem;
}

.provider-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.provider-rating {
  color: var(--warning);
  font-size: 0.9rem;
}

.provider-skills {
  padding: 1rem 1.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: #e9f0ff;
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.provider-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}

.provider-price {
  font-weight: 600;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background-color: #016223;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
/* Breadcrumb */
    .breadcrumb {
      background-color: var(--secondary);
      padding: 1rem 5%;
      border-bottom: 1px solid #e9ecef;
    }

    .breadcrumb-content {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
    }

    .breadcrumb a {
      color: var(--primary);
      text-decoration: none;
    }

    .breadcrumb span {
      color: #666;
    }

    /* Main Content */
    .main-content {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0.75rem;
    }

    /* Page Header */
    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .page-title {
      font-size: 2rem;
      color: var(--dark);
    }

    .header-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    /* Filter Tabs */
    .filter-tabs {
      display: flex;
      background-color: var(--light);
      border-radius: 10px;
      padding: 0.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-bottom: 2rem;
      overflow-x: auto;
    }

    .filter-tab {
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s;
      white-space: nowrap;
    }

    .filter-tab.active {
      background-color: var(--primary);
      color: var(--light);
    }

    /* Search and Filter */
    .search-filter {
      background-color: var(--light);
      border-radius: 10px;
      padding: 1.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-bottom: 2rem;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .search-box {
      flex: 1;
      min-width: 300px;
      position: relative;
    }

    .search-input {
      width: 100%;
      padding: 0.8rem 1rem 0.8rem 2.5rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 0.9rem;
    }

    .search-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: #666;
    }

    .filter-select {
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      background-color: var(--light);
      min-width: 150px;
    }

    /* Jobs Container */
    .jobs-container {
      background-color: var(--light);
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      overflow: hidden;
    }

    .jobs-header {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
      padding: 1rem 1.5rem;
      background-color: #f8f9fa;
      font-weight: 600;
      color: #666;
      border-bottom: 1px solid #eee;
    }

    .job-item {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
      padding: 1.5rem;
      border-bottom: 1px solid #eee;
      transition: background-color 0.3s;
      align-items: center;
    }

    .job-item:hover {
      background-color: #fafafa;
    }

    .job-info {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .job-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      background-color: #e3ecff;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }

    .job-details h3 {
      margin-bottom: 0.3rem;
      font-size: 1rem;
    }

    .job-details p {
      color: #666;
      font-size: 0.9rem;
    }

    .job-provider {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .provider-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: #eee;
    }

    .job-budget {
      font-weight: 600;
      color: var(--dark);
    }

    .job-deadline {
      color: #666;
    }

    .job-status {
      display: inline-block;
      padding: 0.4rem 0.8rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .status-active {
      background-color: #cce5ff;
      color: #004085;
    }

    .status-pending {
      background-color: #fff3cd;
      color: #856404;
    }

    .status-completed {
      background-color: #d4edda;
      color: #155724;
    }

    .status-cancelled {
      background-color: #f8d7da;
      color: #721c24;
    }

    .job-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 3rem;
      color: #666;
    }

    .empty-state i {
      font-size: 3rem;
      margin-bottom: 1rem;
      opacity: 0.5;
    }

    .empty-state h3 {
      margin-bottom: 0.5rem;
    }

    /* Pagination */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      margin-top: 2rem;
      padding: 1rem;
    }

    .pagination-button {
      padding: 0.6rem 1rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      background-color: var(--light);
      cursor: pointer;
      transition: all 0.3s;
    }

    .pagination-button:hover {
      background-color: var(--primary);
      color: var(--light);
      border-color: var(--primary);
    }

    .pagination-button.active {
      background-color: var(--primary);
      color: var(--light);
      border-color: var(--primary);
    }

    /* Buttons */
    .btn {
      padding: 0.6rem 1.2rem;
      border-radius: 5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      border: none;
      font-size: 0.9rem;
    }

    .btn-outline {
      background-color: transparent;
      border: 1px solid var(--primary);
      color: var(--primary);
    }

    .btn-outline:hover {
      background-color: var(--primary);
      color: var(--light);
    }

    .btn-primary {
      background-color: var(--primary);
      color: var(--light);
    }

    .btn-primary:hover {
      background-color: #016223;
    }

    .btn-sm {
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
    }

    .btn-icon {
      width: 32px;
      height: 32px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: transparent;
      border: 1px solid #ddd;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-icon:hover {
      background-color: #f8f9fa;
    }


    @media (max-width: 1024px) {

      .jobs-header,
      .job-item {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
      }

      .job-actions {
        grid-column: span 3;
        justify-content: center;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .user-name {
        display: none;
      }

      .jobs-header {
        display: none;
      }

      .job-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
      }

      .job-info {
        width: 100%;
      }

      .job-details {
        flex: 1;
      }

      .search-filter {
        flex-direction: column;
      }

      .search-box {
        min-width: 100%;
      }
    }
/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 3rem 5%;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--light);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #495057;
  color: #adb5bd;
}

/* Chat Page Styles */
.chat-container {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 80px);
}

.conversations-sidebar {
  width: 350px;
  background-color: var(--light);
  border-right: 1px solid #eee;
  overflow-y: auto;
}

.conversations-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conversations-header h2 {
  font-size: 1.2rem;
}

.conversation-search {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.conversation-search input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
}

.conversation-list {
  list-style: none;
}

.conversation-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.3s;
}

.conversation-item:hover {
  background-color: #f9f9f9;
}

.conversation-item.active {
  background-color: #f0f4ff;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.conversation-user {
  font-weight: 600;
}

.conversation-time {
  font-size: 0.8rem;
  color: #666;
}

.conversation-preview {
  display: flex;
  align-items: center;
}

.conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  margin-right: 1rem;
}

.conversation-message {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--light);
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.chat-user {
  display: flex;
  align-items: center;
  flex: 1;
}

.chat-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #eee;
  margin-right: 1rem;
}

.chat-user-info h3 {
  margin-bottom: 0.2rem;
}

.chat-user-info p {
  color: #666;
  font-size: 0.9rem;
}

.chat-actions {
  display: flex;
  gap: 1rem;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.message {
  margin-bottom: 1rem;
  max-width: 70%;
}

.message.received {
  margin-right: auto;
}

.message.sent {
  margin-left: auto;
  text-align: right;
}

.message-content {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message.received .message-content {
  background-color: var(--light);
  border: 1px solid #eee;
  border-bottom-left-radius: 5px;
}

.message.sent .message-content {
  background-color: var(--primary);
  color: var(--light);
  border-bottom-right-radius: 5px;
}

.message-time {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.3rem;
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-input textarea {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  resize: none;
  font-size: 0.95rem;
  max-height: 120px;
}

.chat-input textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-details {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

.job-details h4 {
  margin-bottom: 0.5rem;
}

.job-details p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.job-price {
  font-weight: 600;
  color: var(--dark);
}

@media (max-width: 992px) {
  .conversations-sidebar {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .welcome-actions {
    justify-content: center;
  }

  .user-name {
    display: none;
  }

  .job-header {
    flex-direction: column;
    gap: 1rem;
  }

  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .job-actions {
    flex-direction: column;
  }
  .conversations-sidebar {
    width: 100%;
    display: none;
  }
  .conversations-sidebar.active {
    display: block;
  }
  .chat-main {
    display: none;
  }
  .chat-main.active {
    display: flex;
  }
  .mobile-back {
    display: block;
    margin-right: 1rem;
    cursor: pointer;
  }
}

.mobile-back {
  display: none;
}


/* Page Header */
.page-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.page-title {
  font-size: 2rem;
  color: var(--dark);
}

.btn-post-job {
  background: #ffffff;
  color: #008500;
  border: none;
  font-weight: 500;
  transition: transform 0.2s;
}

.btn-post-job:hover {
  transform: scale(1.07);
}

.btn-find-providers {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 500;
  transition: transform 0.2s;
}

.btn-find-providers:hover {
  transform: scale(1.07);
}