/* ===== Reset básico ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f4f4f4;
  padding: 0;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Container principal ===== */
.container {
  max-width: 480px;
  width: 90%;
  margin: 20px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.header-image {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

img.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content {
  padding: 60px 30px 30px;
}

h1 {
  margin: 0 0 5px;
  font-size: 24px;
  color: #333;
  text-align: center;
}

.slogan {
  color: #00b2b2;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

p.bio {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #666;
  text-align: center;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin: 15px 0;
  background: #00b2b2;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  font-weight: 500;
}

.link i {
  margin-right: 10px;
}

.link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.imagem-extra {
  margin: 20px auto;
  max-width: 100%;
  border-radius: 8px;
}

/* ===== Painel Admin ===== */
.admin-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

/* ===== Formulários ===== */
form {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  margin-top: 15px;
}

input[type="text"],
input[type="number"],
input[type="file"],
input[type="color"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== Botões ===== */
button,
a.btn {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  color: white;
  background: #00b2b2;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

button:hover,
a.btn:hover {
  background: #009999;
  transform: translateY(-2px);
}

a.btn.red {
  background: #dc3545;
}

a.btn.green {
  background: #28a745;
}

/* ===== Listagem de links ===== */
.link-item {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* ===== Drag & Drop ===== */
.drag-item {
  cursor: grab;
  transition: all 0.2s ease;
}

.drag-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Notificações ===== */
.notificacao {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  animation: fadeIn 0.5s, fadeOut 0.5s 3.5s forwards;
}

.sucesso {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.erro {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ===== Seletor de temas ===== */
.theme-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.theme-btn {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== Estatísticas ===== */
.stats-container {
  margin-top: 30px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.stats-table th, .stats-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.stats-table th {
  background-color: #f2f2f2;
}

/* ===== Pré-visualização ===== */
.preview-container {
  margin-top: 30px;
}

.preview-frame {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

/* ===== Responsividade ===== */
@media (max-width: 600px) {
  .container {
    width: 95%;
    margin: 10px auto;
  }
  
  .content {
    padding: 60px 20px 20px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  .slogan {
    font-size: 14px;
  }
  
  p.bio {
    font-size: 14px;
  }
  
  .link {
    padding: 12px;
    font-size: 14px;
  }
  
  .theme-selector {
    flex-direction: column;
  }
}
