:root {
  --primary: #b76e79;
  --primary-hover: #9e5b65;
  --bg-gradient: linear-gradient(135deg, #fff5f5, #ffe8d6);
  --card-bg: #ffffff;
  --text: #2c3e50;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.container {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 100%;
}

h1 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

input[type="text"], textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  outline: none;
}

textarea {
  height: 80px;
  resize: none;
}

input:focus, textarea:focus {
  border-color: var(--primary);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
}

.file-select {
  border: 2px dashed var(--primary);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  background: #fffafa;
}

#preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
}

body.slideshow-body {
  background: #000;
  padding: 0;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slide-img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  transition: opacity 0.8s ease-in-out;
}

.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(5px);
  max-width: 80%;
}

.slide-caption .author {
  font-weight: bold;
  color: #ffb7c5;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.admin-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.admin-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.admin-card .delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
}