/* ======================= Reset e Fontes ======================= */
body.gi-clean-page {
  margin: 0;
  padding: 0;
  background: #f6faf4;
  font-family: "Inter", sans-serif;
  color: #333;
}

/* Remove título e cabeçalhos do tema */
body.gi-clean-page h1.entry-title,
body.gi-clean-page .page-title,
body.gi-clean-page .entry-header {
  display: none;
}

/* ======================= Wrapper Principal ======================= */
.gi-wrapper {
  max-width: 1300px;
  margin: 20px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Container Flex */
.gi-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ======================= Sidebar ======================= */
.gi-sidebar {
  flex: 0 0 250px;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gi-sidebar h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.gi-folder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.gi-folder:hover {
  background: #fafafa;
}

.gi-folder.active .gi-folder-name {
  color: #4E6E32;
  font-weight: 600;
}

.gi-folder-actions i {
  font-size: 16px;
  color: #888;
  margin-left: 8px;
  transition: color 0.2s;
}

.gi-folder-actions i:hover {
  color: #4E6E32;
}

/* Botão Criar Pasta */
#gi-add-folder {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 0;
  background: #4E6E32;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#gi-add-folder:hover {
  background: #3b5a28;
}

/* ======================= Área de Conteúdo ======================= */
.gi-main {
  flex: 1;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Toolbar superior */
.gi-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gi-toolbar select,
.gi-toolbar button {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.gi-toolbar select {
  background: #fff;
}

.gi-btn {
  background: #4E6E32;
  color: #fff;
  border: none;
  transition: background 0.2s;
}
.gi-btn:hover {
  background: #3b5a28;
}

/* Dropzone */
.gi-dropzone {
  border: 2px dashed #4E6E32;
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: #777;
  font-size: 15px;
  margin-bottom: 24px;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.gi-dropzone:hover {
  background: rgba(78,110,50,0.05);
  border-color: #3b5a28;
}

/* ======================= Galeria ======================= */
.gi-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gi-img-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Botão X */
.gi-delete-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.gi-delete-image:hover {
  background: rgba(0,0,0,0.8);
}

/* Imagem */
.gi-img-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Nome do arquivo */
.gi-file-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #444;
  text-align: center;
}

/* ======================= Ajuste dos campos ======================= */
.gi-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}

/* Inputs */
.gi-row input {
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Linha RENOMEAR */
.gi-row.rename input {
  width: calc(100% - 40px);
}
.gi-row.rename .gi-btn-icon {
  width: 32px;
  flex-shrink: 0;
}

/* Linha URL */
.gi-row.url input {
  width: calc(100% - 40px);
}
.gi-row.url .gi-btn-icon {
  width: 32px;
  flex-shrink: 0;
}

/* Linha EMBED */
.gi-row.embed input {
  width: calc(100% - 40px);
}
.gi-row.embed .gi-btn-icon {
  width: 32px;
  flex-shrink: 0;
}

/* Botões */
.gi-row .gi-btn-icon {
  height: 24px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.gi-row .gi-btn-icon:hover {
  background: #e2e2e2;
}
