/* === BP Dashboard & Admin Styling === */

.bpdashboard-container {
  background-color: rgba(14, 15, 16, 0.75);
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  margin: 0px 0 20px 60px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: left;
  color: #ffbe55;
}

.bpdashboard-container h2 {
  font-size: 26px;
  color: #ffbe55;
  margin-bottom: 5px;
  margin-top: 0;
}

.bpdashboard-subtitle {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  margin-top: 5px;
}

.bpdashboard-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.bpdashboard-links a {
  padding: 12px 15px;
  background-color: #1c1d1f;
  border: 1px solid #ffbe55;
  border-radius: 6px;
  color: #ffbe55;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.bpdashboard-links a:hover {
  background-color: #ffbe55;
  color: #0e0f10;
}

.bpdashboard-links .logout-link {
  color: #bfbfbf;
  border-color: #bfbfbf;
  border-radius: 4px;
  padding: 8px 12px;
}

.bpdashboard-links .logout-link:hover {
  background-color: #bfbfbf;
  color: #0e0f10;
}

.dashboard-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px 30px 60px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 115px);
  flex-wrap: wrap;
  gap: 30px;
}

.dashboard-card {
  background-color: rgba(14, 15, 16, 0.75);
  padding: 5px 30px 30px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  color: #ffbe55;
  max-width: 400px;
  width: 100%;
}

.dashboard-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ffbe55;
}

.dashboard-card h2 {
  text-align: left;
  margin-bottom: 20px;
  color: #ffbe55;
}

.dashboard-subtext {
  font-size: 14px;
  color: #dddddd;
  margin-bottom: 20px;
}

.dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-menu li {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.dashboard-menu li:first-child {
  border-top: none;
}

.dashboard-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  text-decoration: none;
  color: #ffbe55;
  font-weight: bold;
  transition: background 0.3s;
}

.dashboard-menu li a:hover {
  background-color: rgba(255, 190, 85, 0.08);
  border-radius: 4px;
}

/* === Header Styling === */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(14, 15, 16, 0.75);
  padding: 10px 30px 20px;
  height: 200px;
  width: 95%;
  max-width: 1280px;
  margin: 30px auto 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  box-sizing: border-box;
  z-index: 10;
}

.header-logo {
  height: 170px;
  width: auto;
  box-sizing: content-box;
}

.site-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding-left: 20px;
}

.site-title-link {
  font-size: 24px;
  font-weight: bold;
  color: #ffbe55;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-title-link:hover {
  color: #ffffff;
}

.site-logout-link {
  font-size: 14px;
  font-weight: bold;
  color: #bfbfbf;
  text-decoration: none;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 4px 8px;
  background-color: transparent;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.site-logout-link:hover {
  background-color: #bfbfbf;
  color: #0e0f10;
}

.wide-card {
  max-width: 700px;
}

/* === Dashboard Info Box === */
.dashboard-info-box {
  background-color: rgba(14, 15, 16, 0.75);
  border-radius: 8px;
  box-sizing: border-box;
  color: #dddddd;
  font-size: 16px;
  line-height: 1.6;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  margin-top: 0;
}

.dashboard-info-box h2,
.dashboard-info-box h3 {
  color: #ffbe55;
  margin-top: 0;
}

.dashboard-info-box a {
  color: #ffbe55;
  text-decoration: none;
  font-weight: bold;
}

.dashboard-info-box a:hover {
  text-decoration: underline;
}

/* === Form Enhancements === */
label {
  display: block;
  text-align: left;
  font-weight: bold;
  color: #fcd34d;
  margin-bottom: 5px;
}

form input[type="text"],
form input[type="url"],
form input[type="file"],
form select,
form textarea {
  display: block;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #dddddd;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: none;
}

.short-input {
  width: 300px;
  max-width: 100%;
}

#editor {
  height: 300px;
  background-color: transparent;
  color: #dddddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #dddddd;
  margin-bottom: 1rem;
}

/* === Quill Styling === */
.ql-toolbar.ql-snow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  padding: 10px;
  background-color: rgba(14, 15, 16, 0.75);
  border-radius: 6px 6px 0 0;
  border: 1px solid #dddddd;
  color: #dddddd;
}

.ql-toolbar button svg {
  fill: #fcd34d !important;
}

.ql-toolbar button:hover svg {
  fill: #ffffff !important;
}

.ql-container.ql-snow {
  background-color: transparent;
  border-radius: 0 0 6px 6px;
  border: 1px solid #dddddd;
  border-top: none;
}

.ql-editor {
  color: #dddddd;
  font-size: 1rem;
  line-height: 1.6;
  padding: 15px;
}

.ql-picker,
.ql-toolbar button {
  color: #dddddd !important;
}

/* === Submit Button Style (Left-Aligned) === */
.button {
  background-color: #fcd34d;
  color: #111827;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin-left: 0;
  text-align: left;
}

.button:hover {
  background-color: #ffe58f;
}

.form-full-width {
  width: 100%;
  max-width: 700px;
  text-align: left;
}

/* === Custom <select> Appearance === */
select {
  appearance: none;
  background-color: rgba(14, 15, 16, 0.85);
  color: #dddddd;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 10px;
}

select option {
  background-color: #1a1c20;
  color: #dddddd;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .admin-header {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .site-header-right {
    align-items: center;
    padding-left: 0;
    margin-top: 10px;
  }

  .header-logo {
    height: 120px;
    padding: 10px;
  }

  .dashboard-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .bpdashboard-container {
    width: 95%;
    padding: 20px;
    margin: 30px auto;
    text-align: center;
  }
}

/* === File List and Editor Cards === */
.file-list-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.file-list-card,
.editor-card {
  background-color: rgba(14, 15, 16, 0.75);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: #ffbe55;
  width: 100%;
  max-width: 1280px;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  padding: 30px;
  margin: 30px auto;
}

/* 👇 Adjustments per your request */
.editor-card {
  margin-bottom: 10px !important;
}

.admin-footer-nav {
  text-align: left;
  padding-top: 20px;
  color: #ffbe55;
  font-weight: bold;
  margin-top: 0;
  margin-left: 30px;
}

.admin-footer-nav a {
  color: #ffbe55;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.admin-footer-nav a:hover {
  text-decoration: underline;
}
