/* Component Styles: Buttons, Cards, and Badges */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: #fff;
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Cards */
.card {
  background-color: var(--background-color);
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  background-color: #f8f9fa;
}

.card-body {
  padding: 1rem;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.card-text {
  color: var(--text-color);
  line-height: var(--line-height-base);
}

.card-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
  background-color: #f8f9fa;
  text-align: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0.25rem;
  background-color: var(--primary-color);
  color: #fff;
}

.badge-secondary {
  background-color: var(--secondary-color);
}

.badge-success {
  background-color: var(--accent-color);
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-content {
  padding-left: 20px;
}

/* Text utilities */
.text-center {
  text-align: center;
}

/* Revenue sharing flow */
.revenue-flow {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.revenue-step {
  border: 2px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 150px;
}

/* Revenue breakdown bars */
.revenue-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.revenue-bar {
  display: flex;
  align-items: center;
  height: 2.5rem;
  background: #eee;
  border-radius: 0.25rem;
  overflow: hidden;
}

.revenue-bar div {
  height: 100%;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.revenue-40 { width: 40%; }
.revenue-30 { width: 30%; }
.revenue-20 { width: 20%; }
.revenue-10 { width: 17%; }

/* Form styles */
.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  font-size: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Map placeholder */
.map-placeholder {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}