.admin-info {
  border-style:solid;
  border-color:red;
  background-color: rgb(218, 131, 131);
  padding:1em;
}

/* ---------- CMS Form ---------- */
.cms-form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ---------- Form groups ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #333;
}

/* ---------- Inputs ---------- */
.cms-form input[type="text"],
.cms-form input[type="date"],
.cms-form input[type="password"],
.cms-form input[type="file"],
.cms-form textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- Textarea ---------- */
.cms-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* ---------- Focus states ---------- */
.cms-form input:focus,
.cms-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ---------- File input ---------- */
.cms-form input[type="file"] {
  padding: 0.4rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* ---------- Danger button ---------- */
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* ---------- Inline images preview ---------- */
.image-preview {
  margin: 0.5rem 0;
}

.image-preview img {
  max-width: 160px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .cms-form {
    padding: 2rem;
  }

  .form-row {
    display: flex;
    gap: 1rem;
  }

  .form-row .form-group {
    flex: 1;
  }
}


/* ================================
   CMS DASHBOARD
   ================================ */

   .cms-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  /* ---------- Titles ---------- */
  .cms-title {
    margin-bottom: 1rem;
  }
  
  .cms-section-title {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }
  
  /* ---------- Action buttons ---------- */
  .cms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .cms-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e5e7eb;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease;
  }
  
  .cms-btn:hover {
    background: #d1d5db;
  }
  
  .cms-btn-primary {
    background: #3b82f6;
    color: #fff;
  }
  
  .cms-btn-primary:hover {
    background: #2563eb;
  }
  
  .cms-btn-logout {
    background: #6b7280;
    color: #fff;
  }
  
  .cms-btn-logout:hover {
    background: #4b5563;
  }
  
  .cms-btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  
  .cms-btn-danger:hover {
    background: #b91c1c;
  }
  
  /* ---------- Blog post list ---------- */
  .cms-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .cms-post-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  /* ---------- Post info ---------- */
  .cms-post-info {
    display: flex;
    flex-direction: column;
  }
  
  .cms-post-date {
    font-size: 0.85rem;
    color: #6b7280;
  }
  
  /* ---------- Post actions ---------- */
  .cms-post-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  
  .cms-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
  }
  
  .cms-link:hover {
    text-decoration: underline;
  }
  
  /* ---------- Desktop layout ---------- */
  @media (min-width: 768px) {
    .cms-post-item {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .cms-post-info {
      flex-direction: row;
      gap: 1rem;
      align-items: center;
    }
  }