/* General Styles */
body {
  font-family: "Roboto", sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #0085C5;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.text-primary{
    color:#0085C5 !important;
}

.bg-primary {
    background-color: #0085C5 !important;
}

.btn-outline-primary{
    border-color: #0085C5 !important;
    color: #0085C5 !important;
}
.btn-outline-primary:hover{
    background-color: #0085C5 !important;
    color: #fff !important;
}

.btn-primary {
  background-color: #0085C5;
  border-color: #0085C5;
}

.btn-primary:hover {
  background-color: #0085C9;
  border-color: #0085C5;
}

/* Header Styles */
.top-bar {
  font-size: 0.9rem;
}

.navbar-brand img {
  max-height: 40px;
}

/* Footer Styles */
footer {
  font-size: 0.9rem;
}

footer h5 {
  font-weight: 500;
  margin-bottom: 1.5rem;
}

footer .social-links a {
  font-size: 1.2rem;
  margin-right: 1rem;
}

/* Home Page Styles */
.hero-section {
  background-color: #0085C5;
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-box {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  font-weight: 700;
}

/* .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #0085C5;
} */

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: 500;
}

.card-text {
  color: #6c757d;
}

.card-price {
  font-weight: 700;
  color: #0085C5;
  font-size: 1.2rem;
}

.card-old-price {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Category Styles */
.category-card {
  text-align: center;
  /* padding: 1.5rem; */
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 2.5rem;
  color: #0085C5;
  margin-bottom: 1rem;
}

.category-title {
  font-weight: 500;
  margin-bottom: 0;
}

/* Ad Detail Page */
.ad-gallery {
  margin-bottom: 2rem;
}

.ad-gallery-main {
  height: 400px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ad-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ad-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.ad-gallery-thumb {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
}

.ad-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-gallery-thumb.active {
  border-color: #0085C5;
}

.ad-details {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.ad-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0085C5;
  margin-bottom: 1rem;
}

.ad-old-price {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 1.2rem;
}

.ad-meta {
  margin-bottom: 1.5rem;
}

.ad-meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ad-meta-item i {
  width: 20px;
  margin-right: 0.5rem;
  color: #6c757d;
}

.ad-description {
  margin-bottom: 2rem;
}

.ad-contact {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.ad-map {
  height: 300px;
  margin-bottom: 2rem;
}

/* Auction Styles */
.auction-timer {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auction-timer-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.auction-timer-countdown {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc3545;
}

.auction-bids {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 2rem;
}

.auction-bid-form {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Company Styles */
.company-header {
  position: relative;
  height: 200px;
  margin-bottom: 4rem;
}

.company-banner {
  width: 100%;
  height: 135px;
  object-fit: cover;
}

.company-logo {
  position: absolute;
  bottom: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid white;
  background-color: white;
  object-fit: cover;
}

.company-details {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 2rem;
}

.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.company-meta {
  margin-bottom: 1.5rem;
}

.company-meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.company-meta-item i {
  width: 20px;
  margin-right: 0.5rem;
  color: #6c757d;
}

.company-description {
  margin-bottom: 2rem;
}

.company-price-lists {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Message Styles */
.message-list {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  overflow: hidden;
}

.message-item {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.3s ease;
}

.message-item:hover {
  background-color: #f8f9fa;
}

.message-item:last-child {
  border-bottom: none;
}

.message-item.unread {
  background-color: #e6f7ff;
}

.message-sender {
  font-weight: 500;
}

.message-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.message-preview {
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-detail {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 2rem;
}

.message-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.message-content {
  margin-bottom: 2rem;
}

.message-reply-form {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

/* Admin Dashboard Styles */
.admin-sidebar {
  background-color: #343a40;
  color: white;
  min-height: calc(100vh - 56px);
  padding-top: 1rem;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.25rem;
}

.admin-sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
  color: white;
  background-color: #0085C5;
}

.admin-sidebar .nav-link i {
  margin-right: 0.5rem;
}

.admin-content {
  padding: 2rem;
}

.admin-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-card-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.admin-stat-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.admin-stat-icon {
  font-size: 2.5rem;
  color: #0085C5;
  margin-right: 1rem;
}

.admin-stat-content {
  flex: 1;
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-stat-label {
  color: #6c757d;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .ad-gallery-main {
    height: 300px;
  }

  .company-logo {
    left: 50%;
    transform: translateX(-50%);
  }
}
