/* Main Styles for Expostant - Exhibition Stand Booking System */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --danger-color: #e74c3c;
  --text-color: #333;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f8f9fa;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

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

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

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding: 0 15px;
}

/* Grid system */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Header Styles */
.header {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-nav {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--secondary-color);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.125);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.125);
}

/* Progress Bar Styles */
.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.progress-bar::before {
  content: '';
  background-color: #e9ecef;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  z-index: 1;
}

.progress-bar-inner {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  background-color: var(--secondary-color);
  z-index: 2;
  transition: width 0.4s ease;
}

.progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
  transition: all var(--transition-speed);
}

.step-circle.active {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.step-circle.completed {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.step-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
  transition: color var(--transition-speed);
}

.step-text.active {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Step Content Styles */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .progress-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
  }
  
  .progress-bar::before {
    height: 100%;
    width: 4px;
    left: 15px;
    top: 0;
    transform: none;
  }
  
  .progress-bar-inner {
    height: 0;
    width: 4px !important;
    left: 15px;
    top: 0;
    transform: none;
  }
  
  .progress-step {
    flex-direction: row;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .step-text {
    margin-top: 0;
    margin-left: 1rem;
  }
  
  .row {
    flex-direction: column;
  }
  
  [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Exhibition Specific Styles */
.exhibition-card {
  position: relative;
  transition: transform var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.exhibition-card:hover {
  transform: translateY(-5px);
}

.exhibition-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.exhibition-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.exhibition-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.exhibition-date, .exhibition-location {
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.exhibition-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Form Styles for Booking System */
.option-card {
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 3rem;
}

.option-card:before {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  transition: all var(--transition-speed);
}

.option-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.option-card:hover:before {
  border-color: var(--secondary-color);
}

.option-card.selected {
  border-color: var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.option-card.selected:before {
  border-color: var(--secondary-color);
  background-color: var(--secondary-color);
  box-shadow: inset 0 0 0 3px white;
}

/* Styles spécifiques pour les cartes avec checkbox */
.option-card-checkbox:before {
  border-radius: 3px;
}

.option-card-checkbox.selected:before {
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  content: "✓";
}

/* Ensure multi-select options are visually distinct */
.option-card-checkbox {
  border-left: 3px solid transparent;
  position: relative;
  transition: all 0.3s ease;
}

.option-card-checkbox.selected {
  border-left: 3px solid var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.option-card-checkbox::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 3px;
}

.option-card-checkbox.selected::after {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  content: "✓";
  color: white;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}

/* Cacher complètement les éléments radio et checkbox */
input[type="radio"].option-input,
input[type="checkbox"].option-input {
  display: none !important;
}

.option-details {
  flex-grow: 1;
}

.option-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  padding-left: 1rem; /* Increased left padding */
}

.option-description {
  color: #6c757d;
  font-size: 0.875rem;
  padding-left: 1rem; /* Increased left padding to match the title */
}

.option-price {
  font-weight: 700;
  color: var(--primary-color);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 500;
  margin: 0 0.5rem;
}

/* Summary Section */
.summary-container {
  position: sticky;
  top: 90px;
}

.summary-list {
  list-style: none;
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

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

.summary-total {
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6;
  display: flex;
  justify-content: space-between;
}

/* Dashboard Styles */
.dashboard-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
}

.dashboard-icon {
  margin-right: 1.5rem;
  width: 50px;
  height: 50px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.dashboard-details {
  flex-grow: 1;
}

.dashboard-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-label {
  color: #6c757d;
  font-size: 0.875rem;
}

.reservation-table {
  width: 100%;
  border-collapse: collapse;
}

.reservation-table th,
.reservation-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.reservation-table th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #495057;
}

.reservation-table tr:hover {
  background-color: #f8f9fa;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-confirmed {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.status-pending {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.status-cancelled {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

/* Action buttons */
.action-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Contact Page Styles */
.contact-section {
  padding: 3rem 0;
}

.contact-section .form-group {
  margin-bottom: 1.5rem;
}

.contact-section .card {
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-section .card-body {
  padding: 1.5rem;
}

.contact-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-section .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left: 4px solid var(--warning-color);
  color: var(--warning-color);
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--info-color);
  color: var(--info-color);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  text-align: center;
  color: #6c757d;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}
