/* Admin Panel Styles */

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

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

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

.admin-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.admin-header h1 {
  color: #764ba2;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.admin-header p {
  color: #666;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid #667eea;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: #667eea;
  color: white;
}

.admin-main {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
}

.admin-tabs button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  color: #666;
}

.admin-tabs button.active {
  background: #667eea;
  color: white;
}

.admin-tabs button:hover:not(.active) {
  background: #f0f0f0;
}

.tab-content {
  display: none;
}

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

.tab-content h2 {
  color: #764ba2;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.actions button:first-child {
  background: #28a745;
  color: white;
}

.actions button:nth-child(2) {
  background: #007bff;
  color: white;
}

.actions button:nth-child(3) {
  background: #dc3545;
  color: white;
}

.actions button:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.memories-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.memory-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  border-left: 4px solid #667eea;
}

.memory-date {
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.memory-text {
  color: #333;
  line-height: 1.5;
}

.remove-memory {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.remove-memory:hover {
  background: #c82333;
  transform: scale(1.1);
}

.add-form {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

.add-form h3 {
  color: #764ba2;
  margin-bottom: 1rem;
}

.add-form input,
.add-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

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

.add-form button {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-form button:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.wish-item,
.message-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  border-left: 4px solid #28a745;
}

.wish-text,
.message-text {
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.wish-author,
.message-time {
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

.remove-wish,
.remove-message {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.remove-wish:hover,
.remove-message:hover {
  background: #c82333;
  transform: scale(1.1);
}

.stat-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  border-left: 4px solid #007bff;
}

.stat-card h3 {
  color: #007bff;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.setting-item {
  margin-bottom: 1.5rem;
}

.setting-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.setting-item input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

#saveSettings {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#saveSettings:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-container {
    padding: 1rem;
  }
  
  .admin-header h1 {
    font-size: 2rem;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
  }
  
  .admin-tabs button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .actions button {
    width: 100%;
  }
}
