/* Redesigned styles.css for a sultry, sexy, and elegant interface */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;500;700&display=swap');

:root {
  --primary-color: #C9184A;       /* Rich crimson */
  --accent-color: #720026;        /* Deep wine */
  --secondary-color: #56000C;     /* Dark burgundy */
  --bg-color: #1C1C1C;            /* Charcoal black */
  --card-bg: #2A2A2E;             /* Dark slate */
  --text-color: #EAEAEA;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  --border-radius: 12px;
  --glass-blur: blur(12px);
  --success-color: #22c55e;       /* Green */
  --secondary-button-bg: #3a3a3f;
  --tag-bg: rgba(201, 24, 74, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  letter-spacing: 1px;
  margin: 0.5rem 0;
  color: #fff;
}

header .tagline {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  margin-top: 0.5rem;
  color: #f0d7d7;
}

.container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

section {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  backdrop-filter: var(--glass-blur);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

h2 {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: #fff;
}

h2 .subtitle {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  margin-left: 1rem;
  font-weight: 300;
  opacity: 0.7;
  background: var(--tag-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

input[type="text"],
textarea,
input[type="file"],
select {
  padding: 1rem;
  background-color: #1E1E22;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  font-size: 1rem;
  color: #fff;
  transition: border 0.3s ease, background 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  background-color: #2E2E33;
  outline: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

button {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.secondary-button {
  background: var(--secondary-button-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.secondary-button:hover {
  background: #4a4a4f;
}

.selector-container {
  margin: 1.5rem 0;
  max-width: 500px;
}

select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
}

.activity-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.activity-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1.5rem;
  border: 2px solid #444;
}

.drag-handle {
  cursor: move;
  cursor: grab;
  opacity: 0.6;
  font-size: 1.5rem;
  line-height: 1;
  margin-right: 1rem;
  color: #888;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.drag-handle:active {
  cursor: grabbing;
}

.activity-card:hover .drag-handle {
  opacity: 1;
  color: #fff;
}

.activity-content {
  flex: 1;
}

.activity-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
}

.activity-actions button {
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.edit-btn {
  background: #3a3a3f;
}

.delete-btn {
  background: #56000C;
}

.activities-selection-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  color: #ccc;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background 0.2s ease;
}

.activities-selection-item:hover {
  background: #3a3a3f;
}

#selected-activities-list {
  list-style: none;
  padding: 1rem;
  border: 2px dashed #444;
  border-radius: var(--border-radius);
  background: #202024;
  min-height: 80px;
}

#selected-activities-list li {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: #390619;
  color: #fff;
  border-radius: var(--border-radius);
  cursor: grab;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#selected-activities-list li:hover {
  background: #56000C;
  transform: scale(1.01);
}

#selected-activities-list li:active {
  cursor: grabbing;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-style: italic;
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid var(--success-color);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.success-message a {
  color: var(--success-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--success-color);
}

.edit-menu-selector {
  margin-bottom: 2rem;
  background: #202024;
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.edit-menu-selector label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.tag {
  background: var(--tag-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.drag-instructions {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  .activity-card {
    flex-wrap: wrap;
  }
  
  .activity-card img {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .drag-handle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
  }
  
  .activity-actions {
    flex-direction: row;
    margin-top: 1rem;
    margin-left: 0;
  }
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
  }
  
  .error-message {
    background: rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    color: #fee2e2;
  }
  
  .info-message {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    color: #dbeafe;
  }

  /* Menu cards styling */
#menus-section {
    margin-top: 3rem;
  }
  
  .menu-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  }
  
  .menu-content {
    flex: 1;
  }
  
  .menu-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .menu-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
  }
  
  .menu-share {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 0.5rem;
  }
  
  .share-url {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 0.5rem;
    margin-right: 0.5rem;
    font-size: 0.9rem;
  }
  
  .copy-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
    background: var(--secondary-button-bg);
    box-shadow: none;
  }
  
  .menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
  }
  
  .edit-menu-btn,
  .delete-menu-btn {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  
  .edit-menu-btn {
    background: #3a3a3f;
  }
  
  .delete-menu-btn {
    background: #56000C;
  }
  
  .loading-message,
  .empty-state {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
  }