:root {
  --primary-color: #1976d2;
  --secondary-color: #424242;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
}

/* === Base === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Gradient professional button for Google Login Button */
.btn-gradient {
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: #fff !important;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}
.btn-gradient:hover {
  background: linear-gradient(45deg, #c82333, #a71d2a);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* === Navigation === */
.navbar-brand {
  font-size: 1.5rem;
}

/* === Hero Section === */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), #1565c0);
  color: white;
  padding: 100px 0;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === Feature Cards === */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* === Stats Section === */
.stats-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stats-card {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}
.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: white;
}

/* === Buttons === */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #1565c0;
  border-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* === Account Cards === */
.account-card {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}
.account-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.sold-listing {
  opacity: 0.7;
  position: relative;
}

.sold-listing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(108, 117, 125, 0.1);
  z-index: 1;
  pointer-events: none;
}

.sold-listing:hover {
  transform: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.sold-listing .card-body {
  position: relative;
  z-index: 2;
}

.sold-listing .card-header,
.sold-listing .card-footer {
  position: relative;
  z-index: 2;
}

.account-card .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
}

.account-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
}

/* === Tables & Badges === */
.table-hover tbody tr:hover {
  background-color: rgba(25, 118, 210, 0.05);
}

.badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
}

.card-header {
  background-color: var(--light-bg);
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* === Navigation / Breadcrumb === */
.breadcrumb {
  background: transparent;
  padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.breadcrumb-item.active {
  color: white;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px;
  font-weight: 600;
}

/* === Footer === */
footer {
  background: var(--dark-bg);
  padding: 40px 0 20px;
  color: #f8f9fa;
}

footer h6,
footer h5,
footer p {
  color: #f8f9fa !important;
}

footer a {
  color: #f8f9fa !important;
  text-decoration: none;
}
footer a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}
footer .list-unstyled a {
  padding: 2px 0;
  display: inline-block;
}

footer .text-muted {
  color: #e0e0e0 !important; /* lighter gray, always visible */
}

/* Social icons */
footer .social-links a {
  color: #f8f9fa !important;
}
footer .social-links a:hover {
  color: #fff !important;
  background: var(--primary-color);
}

/* === Pagination === */
.pagination .page-link {
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid #dee2e6;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: var(--primary-color);
}

/* === Utilities === */
.loading {
  display: none;
}
.loading.show {
  display: inline-block;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.app-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
}

.app-stat {
  text-align: center;
  flex: 1;
}

.app-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.app-stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating .star-label {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-rating .star-label:hover,
.star-rating .star-label.active {
  color: #ffc107;
}

.star-rating input[type="radio"]:checked ~ .star-label {
  color: #ddd;
}

/* Rating display (read-only) */
.rating-display {
  color: #ffc107;
}

.rating-display .fa-star-o {
  color: #ddd;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .account-card .btn-group {
    flex-direction: column;
  }
  .account-card .btn-group .btn {
    margin: 2px 0;
    width: 100%;
  }
  .app-stats {
    flex-wrap: wrap;
  }
  .app-stat {
    flex-basis: 50%;
    margin-bottom: 1rem;
  }
}
