/* RevPAR Optimizer Game - Main Stylesheet */

/* Global Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --text-color: #2c3e50;
  --border-radius: 6px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 0;
  box-shadow: var(--box-shadow);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  color: var(--secondary-color);
}

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

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Main Game Interface */
.game-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-gap: 20px;
  margin-top: 20px;
}

/* Sidebar */
.sidebar {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.hotel-info {
  margin-bottom: 30px;
}

.hotel-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hotel-type {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.metrics-container {
  margin-bottom: 20px;
}

.metric {
  margin-bottom: 15px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

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

.metric-value {
  font-weight: 700;
}

.metric-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
}

.revpar-fill {
  background-color: var(--secondary-color);
}

.occupancy-fill {
  background-color: var(--success-color);
}

.adr-fill {
  background-color: var(--warning-color);
}

/* Main Content Area */
.main-content {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab.active {
  border-bottom: 3px solid var(--secondary-color);
  font-weight: 500;
}

.tab:hover {
  background-color: #f5f7fa;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Dashboard Tab */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.dashboard-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header .icon {
  color: var(--secondary-color);
}

.chart-container {
  height: 200px;
  margin-bottom: 15px;
}

/* Pricing Strategy Tab */
.pricing-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin-bottom: 30px;
}

.pricing-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.room-type {
  font-weight: 700;
  margin-bottom: 15px;
}

.price-slider {
  width: 100%;
  margin-bottom: 10px;
}

.price-range {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #777;
}

.strategy-selector {
  margin-top: 15px;
}

.strategy-selector select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Market Conditions Tab */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.competitor-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.competitor-name {
  font-weight: 700;
  margin-bottom: 10px;
}

.competitor-metrics {
  margin-bottom: 15px;
}

.competitor-metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.event-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.event-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.event-date {
  font-weight: 500;
  color: var(--secondary-color);
}

.event-impact {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 10px;
}

.impact-high {
  background-color: var(--accent-color);
  color: white;
}

.impact-medium {
  background-color: var(--warning-color);
  color: white;
}

.impact-low {
  background-color: var(--success-color);
  color: white;
}

/* Distribution Tab */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.channel-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.channel-name {
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.channel-commission {
  font-size: 14px;
  color: var(--accent-color);
}

.allocation-slider {
  width: 100%;
  margin-bottom: 10px;
}

.allocation-value {
  text-align: center;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 500;
}

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

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

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

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

.btn-warning:hover {
  background-color: #e67e22;
}

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

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

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 600px;
  box-shadow: var(--box-shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-container {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid,
  .pricing-controls,
  .market-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }
}
