/* Wedding Seating Chart Plugin Styles */
.wsc-container * {
  box-sizing: border-box;
}

.wsc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wsc-main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  min-height: 700px;
}

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

.wsc-guest-panel h2 {
  margin-bottom: 15px;
  color: #667eea;
  margin-top: 0;
}

.wsc-guest-input-section {
  margin-bottom: 20px;
}

.wsc-guest-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 10px;
}

.wsc-guest-input:focus {
  outline: none;
  border-color: #667eea;
}

.wsc-add-guest-btn {
  width: 100%;
  padding: 10px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.wsc-add-guest-btn:hover {
  background: #5a67d8;
}

.wsc-reset-btn {
  background: #dc3545 !important;
}

.wsc-reset-btn:hover {
  background: #c82333 !important;
}

.wsc-guest-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px;
}

.wsc-guest-item {
  background: #f8f9fa;
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.wsc-guest-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.wsc-guest-item.dragging {
  opacity: 0.5;
}

.wsc-remove-guest {
  color: #dc3545;
  cursor: pointer;
  font-weight: bold;
  padding: 0 5px;
}

.wsc-floor-plan {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 700px;
  overflow: auto;
}

.wsc-tables-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-height: 600px;
}

.wsc-head-table {
  height: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid #5a67d8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
}

.wsc-table-label {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.wsc-head-table .wsc-table-label {
  font-size: 18px;
}

.wsc-table-seats-info {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.wsc-guest-tables-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.wsc-guest-table {
  width: 220px;
  height: 500px;
  background: #fff;
  border: 2px solid #667eea;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.wsc-guest-table.drag-over,
.wsc-head-table.drag-over {
  border-color: #764ba2;
  border-width: 3px;
  background: #f8f9ff;
}

.wsc-head-table.drag-over {
  border-color: #fff;
  background: linear-gradient(135deg, #7c8ff5 0%, #8a5db8 100%);
}

.wsc-table-guests {
  width: 100%;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wsc-head-table .wsc-table-guests {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.wsc-guest-table .wsc-table-guests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  align-content: start;
}

.wsc-seated-guest {
  background: #f8f9fa;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 11px;
  text-align: center;
  cursor: move;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wsc-guest-table .wsc-seated-guest:nth-child(odd) {
  border-left: 3px solid #667eea;
}

.wsc-guest-table .wsc-seated-guest:nth-child(even) {
  border-right: 3px solid #667eea;
}

.wsc-head-table .wsc-seated-guest {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  flex: 0 0 auto;
  padding: 4px 8px;
}

.wsc-seated-guest:hover {
  background: #e9ecef;
}

.wsc-head-table .wsc-seated-guest:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wsc-stats {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.wsc-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wsc-stat-label {
  font-weight: bold;
  color: #667eea;
}

/* Save notification */
.wsc-save-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #667eea;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.wsc-save-notification.show {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .wsc-main-layout {
	 grid-template-columns: 1fr;
  }
  
  .wsc-guest-panel {
	 order: 2;
  }
  
  .wsc-floor-plan {
	 order: 1;
  }

  .wsc-head-table {
	 width: 100%;
	 max-width: 500px;
  }

  .wsc-guest-tables-wrapper {
	 flex-wrap: wrap;
  }

  .wsc-guest-table {
	 width: 120px;
	 height: 350px;
  }
}