/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0e0e0e;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  background: var(--bg-container, #1c1c1c);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 30px var(--color-border, #ff69b4);
  width: 90%;
  max-width: 600px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.holographic-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-border, #ff69b4), #fff, #00ffff, var(--color-border, #ff69b4));
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holoGlow 6s linear infinite;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
  margin-bottom: 30px;
  transition: all 0.5s ease;
}

@keyframes holoGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid var(--color-border, #ff69b4);
  border-radius: 10px;
  background: #222;
  color: white;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.4s ease;
  resize: none;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 12px var(--color-border, #ff69b4);
  border-color: var(--color-border, #ff69b4);
}

button {
  padding: 12px 20px;
  background: var(--color-border, #ff69b4);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  margin-top: 10px;
  width: 100%;
  transition: background 0.3s ease, transform 0.3s ease;
  font-size: 1.1rem;
}

button:hover {
  background: #e055a6;
  transform: scale(1.05);
}

.topBar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.tabTitle {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 0 12px var(--color-border, #ff69b4);
  color: var(--color-border, #ff69b4);
  transition: all 0.5s ease;
}

.admin-panel {
  border-top: 1px solid #444;
  padding-top: 20px;
  transition: all 0.5s ease;
  text-align: left;
}

.platform-form {
  margin-top: 15px;
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.platform-card {
  background: #222;
  border-radius: 12px;
  padding: 15px;
  width: calc(50% - 10px);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.platform-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.7);
}

.platform-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  pointer-events: none;
  user-select: none;
}

.platform-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--color-border, #ff69b4);
}

.platform-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 10px;
  color: #ccc;
}

.platform-card button {
  width: 100%;
  background: var(--color-border, #ff69b4);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.platform-card button:hover {
  background: #e055a6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #222;
  border-radius: 20px;
  padding: 25px;
  width: 320px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px var(--color-border, #ff69b4);
  animation: slideRightIn 0.5s ease forwards;
}

.modal-content img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
  pointer-events: none;
  user-select: none;
}

.modal-content h2 {
  margin: 0 0 15px 0;
  font-size: 1.6rem;
  color: var(--color-border, #ff69b4);
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.modal-content button {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
}

.custom-x-container {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.15), transparent 60%);
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.custom-x-container:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.7);
}

.x-shape {
  font-size: 1.8rem;
  font-weight: bold;
  color: red;
  line-height: 1;
  text-shadow: 0 0 6px red;
}

/* Tabs de grupo */
.group-tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-top: 10px;
}

.group-tab {
  flex: 1;
  min-width: 80px;
  padding: 8px;
  background: #222;
  color: white;
  border: 2px solid var(--color-border, #ff69b4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-shadow: 0 0 4px var(--color-border, #ff69b4);
}

.group-tab.active {
  background: var(--color-border, #ff69b4);
  color: white;
  box-shadow: 0 0 12px var(--color-border, #ff69b4);
}

/* Notificações */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notification.success {
  background-color: #28a745;
  color: #fff;
  box-shadow: 0 0 10px #28a745;
}

.notification.error {
  background-color: #dc3545;
  color: #fff;
  box-shadow: 0 0 10px #dc3545;
}

/* Animações */
@keyframes slideRightIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInOpacity 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInOpacity {
  to {
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.slide-in-modal {
  animation: slideRightIn 0.5s ease forwards;
}

.hidden {
  display: none !important;
}

/* Responsivo */
@media (max-width: 600px) {
  .platform-grid {
    flex-direction: column;
    align-items: center;
  }

  .platform-card {
    width: 90% !important;
  }
}
