/* ==========================================================================
   IDEAL8 CMS Control Panel Styles (Retro Win95 Admin + Responsive)
   ========================================================================== */

.cms-body {
  padding-bottom: 28px;
}

.cms-login-wrap {
  max-width: 460px;
  margin: 48px auto;
  padding: 0 12px;
}

.login-hero {
  text-align: center;
  margin-bottom: 10px;
}

.login-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: #000080;
  text-shadow: 2px 2px 0 #ffff00;
}

.login-hint {
  margin-top: 8px;
  padding: 6px 8px;
  background: #ffffcc;
  border: 1px dashed #808000;
  font-size: 11px;
  text-align: center;
}

.cms-error {
  color: #cc0000;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
}

.cms-wrapper {
  max-width: 1080px;
  margin: 14px auto;
  padding: 0 10px;
}

.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.cms-tab-content {
  padding: 12px;
  background: #f0f0f0;
  position: relative;
  z-index: 1;
}

.cms-pane .retro-form {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.cms-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.cms-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cms-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cms-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cms-item-card {
  background: #ffffff;
  border: 2px ridge #808080;
  padding: 10px;
}

.cms-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #dfe8ff;
  border-bottom: 1px solid #99aacc;
  padding: 4px 8px;
  margin: -10px -10px 8px;
  font-weight: bold;
  font-size: 12px;
  color: #000080;
}

.cms-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.cms-field label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 2px;
}

.cms-field input,
.cms-field select,
.cms-field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 4px 6px;
  background: #ffffff;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.btn-danger {
  background: #ffd6d6;
  color: #880000;
}

.cms-floor-img-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cms-empty {
  background: #ffffff;
  border: 1px dashed #808080;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #555555;
}

.cms-reply-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: #f6f6f6;
  border: 1px solid #cccccc;
  padding: 5px 8px;
  margin-top: 5px;
  font-size: 11px;
}

@media (max-width: 780px) {
  .cms-grid-2 {
    grid-template-columns: 1fr;
  }

  .cms-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cms-field input,
  .cms-field select,
  .cms-field textarea {
    font-size: 16px;
    padding: 6px 8px;
  }
}
