/* Global CSS for Travel Map Application */

:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #333;
  --bg-color: #f8f8f8;
  --font-family: 'Arial', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

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

/* Schedule board styling */
.time-column {
  min-width: 120px;
  background-color: #f1f1f1;
  padding: 8px;
  font-weight: 500;
  border-right: 1px solid #e1e1e1;
}

.day-column {
  min-width: 200px;
  background-color: #fff;
  border-right: 1px solid #e1e1e1;
}

.day-header {
  padding: 8px;
  font-weight: 500;
  text-align: center;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e1e1e1;
}

.day-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.day-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Droppable area styling */
.droppable-area {
  min-height: 100px;
  padding: 8px;
  transition: background-color 0.2s;
}

.droppable-area-hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Draggable item styling */
.draggable-item {
  margin-bottom: 8px;
  padding: 12px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.draggable-item:active {
  cursor: grabbing;
}

/* Item categories styling */
.item-food {
  border-left: 4px solid #e67e22;
}

.item-attraction {
  border-left: 4px solid #3498db;
}

.item-activity {
  border-left: 4px solid #2ecc71;
}

.item-transport {
  border-left: 4px solid #9b59b6;
}

.item-stay {
  border-left: 4px solid #34495e;
}

/* Item details styling */
.item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.item-category {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.item-action-button {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #7f8c8d;
  cursor: pointer;
  margin-left: 8px;
}

.item-action-button:hover {
  color: #e74c3c;
}

/* Map styling */
.map-container {
  width: 100%;
  height: 100%;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ecf0f1;
  color: #7f8c8d;
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background-color: white;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  width: 600px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7f8c8d;
}

.modal-close:hover {
  color: #e74c3c;
}

.modal-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #2c3e50;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #3498db;
  outline: none;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 10px 0;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
} 