
.hideAll { display: none; }

.topbar {
  padding: 14px 0;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.logo { max-height: 40px; }

.input-pill {
  border-radius: 999px;
  padding-left: 16px;
}

.pageTitle { margin-top: 24px; margin-bottom: 6px; }

.divider {
  height: 2px;
  background: #f0f0f0;
  margin: 10px 0 18px;
}
.divider.mini { margin: 12px 0; height: 1px; }

.pointer { cursor: pointer; }

.adminNav .adminTab { margin-bottom: 10px; }
.adminHelp { margin-top: 10px; }

.panelTitle { margin: 0; }

.sectionTitle { margin-bottom: 12px; }

.smallText {
  font-size: 0.85rem;
  color: #666;
}

.listRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #efefef;
}
.listRow:first-of-type { border-top: 0; }



.brand_logo img{
  height: 50px;
  width: auto;
}

.dropBox {
  border: 2px dashed #d4d4d4;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 10px;
}

.dropBox:hover { 
  background: #f3f3f3; 
}

.dragActive {
  border-color: #721B43;
  background: #eef7ff;
}

.hiddenFileInput { display: none; }

.dropText {
  font-weight: 600;
  margin-bottom: 4px;
}

.metaWrap { margin-bottom: 8px; }
.metaRow { margin-bottom: 8px; }
.metaField { margin: 0; }


.topicActions { margin-top: 10px; }
.topicActions .button { margin-bottom: 0; }

.metaRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.metaField {
  flex: 1;
  margin: 0;
}

.metaDeleteBtn {
  background: #e6e6e6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.metaDeleteBtn:hover {
  background: #d4d4d4;
}

.hideEditCat,
.hideEditTopic,
.hideAddTopic {
  display: none;
}

.adminNav .adminTab.isActive {
  background: #721B43;
  color: #fff;
  border-color: #721B43;
}
/* Academic Admin Theme – CSS-only styling for faculty backend */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --adm-primary: #1f6fb2;    /* Primary Blue */
  --adm-primary-600: #155a96;/* Hover Blue */
  --adm-accent: #7a163f;     /* Active tab maroon */
  --adm-bg: #f5f7fa;         /* Page background */
  --adm-card: #ffffff;       /* Card background */
  --adm-border: #d9e1ea;     /* Borders */
  --adm-text: #1f2937;       /* Main text */
  --adm-muted: #6b7280;      /* Secondary text */
  --adm-danger: #dc3545;     /* Danger */
  --adm-hover-blue: #eef5fb; /* Light blue hover */
  --adm-hover-row: #f8fbff;  /* List hover */
  --adm-primary: #0f6a50;     /* Primary Green */
  --adm-primary-600: #0b5a44; /* Darker hover green */
  --adm-accent: #f59e0b;      /* Accent Orange (active tab, accents) */
  --adm-hover-blue: #eaf7f1;  /* Light green hover background */
  --adm-hover-row: #f3faf6;   /* Very light green row hover */
  --adm-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  --adm-radius-card: 16px;
  --adm-radius-ctrl: 12px;
}

/* Page + typography */
body {
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.smallText { color: var(--adm-muted); }

/* Header */
.topbar { background: var(--adm-card); border-bottom: 1px solid var(--adm-border); }
.pageTitle { color: var(--adm-text); font-weight: 700; margin-top: 24px; margin-bottom: 6px; }
.divider { background: var(--adm-border); }

/* Sidebar (card) */
.adminNav { background: var(--adm-card); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-card); padding: 16px; box-shadow: var(--adm-shadow); }
.adminNav .adminTab { background: #fff; color: var(--adm-primary); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-ctrl); transition: all .2s ease; }
.adminNav .adminTab:hover { background: var(--adm-hover-blue); }
/* Active = maroon */
.adminNav .adminTab.isActive { background: var(--adm-accent) !important; color: #fff !important; border-color: var(--adm-accent) !important; }

/* Cards: panels + callouts */
.panel-categories, .panel-topics, .callout { background: var(--adm-card); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-card); padding: 24px; margin-bottom: 24px; box-shadow: var(--adm-shadow); }
.panelTitle { font-weight: 700; }
.sectionTitle { font-weight: 600; margin-bottom: 8px; }

/* Lists (Categories / Topics) */
.listRow { padding: 16px 0; border-top: 1px solid var(--adm-border); transition: all .2s ease; }
.listRow:hover { background: var(--adm-hover-row); }

/* Forms */
label { color: var(--adm-text); font-weight: 500; margin-bottom: 8px; display: block; }
.input-pill, input[type="text"], input[type="search"], input[type="file"], select, textarea { height: 48px; border-radius: var(--adm-radius-ctrl); border: 1px solid var(--adm-border); padding: 0 16px; background: #fff; color: var(--adm-text); transition: all .2s ease; }
textarea { height: auto; padding-top: 10px; padding-bottom: 10px; }
.input-pill:hover, input[type="text"]:hover, input[type="search"]:hover, select:hover, textarea:hover { border-color: #b8c4d3; }
.input-pill:focus, input[type="text"]:focus, input[type="search"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--adm-primary); box-shadow: 0 0 0 3px rgba(31,111,178,0.12); }
.metaWrap .metaRow { margin-bottom: 16px; }

/* Buttons */
.button { border-radius: var(--adm-radius-ctrl); height: 44px; padding: 0 20px; font-weight: 600; transition: all .2s ease; }
/* Primary default */
.button:not(.hollow):not(.alert) { background: var(--adm-primary); border-color: var(--adm-primary); color: #fff; }
.button:not(.hollow):not(.alert):hover { background: var(--adm-primary-600); transform: translateY(-1px); }
/* Secondary (Cancel) */
.button.hollow { background: #fff; color: var(--adm-primary); border: 1px solid var(--adm-primary); }
.button.hollow:hover { background: var(--adm-hover-blue); }
/* Danger (Delete) */
.button.alert { background: #fff; color: var(--adm-danger); border: 1px solid var(--adm-danger); }
.button.alert:hover { background: #fff1f2; }
.button.tiny { height: 32px; padding: 0 12px; border-radius: 10px; }

/* Metadata tags (pills) */
.tagPill { display: inline-block; background: #eaf2fb; color: #1f4f82; padding: 6px 12px; border-radius: 999px; margin-right: 8px; margin-bottom: 8px; font-weight: 500; font-size: .9rem; }
.tagPill .remove { margin-left: 8px; color: #ef4444; opacity: .9; }
.tagPill .remove:hover { opacity: 1; }

/* Upload area */
.dropBox { border: 2px dashed var(--adm-border); border-radius: 12px; background: #f9fbff; padding: 32px; transition: all .2s ease; }
.dropBox:hover { border-color: var(--adm-primary); background: var(--adm-hover-blue); }
.dragActive { border-color: var(--adm-primary); }

/* Links */
 a { color: var(--adm-primary); transition: all .2s ease; }
 a:hover { color: var(--adm-primary-600); text-decoration: underline; }

/* Responsive spacing and stacking */
@media (max-width: 1024px) { .grid-container { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 640px)  { .grid-container { padding-left: 16px; padding-right: 16px; } .button { width: 100%; margin-bottom: 8px; } }

.sectionTitle::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 6px;
  background: var(--adm-accent); /* orange underline */
  border-radius: 2px;
}

.adminNav .adminTab.isActive {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

/* Elegant admin selects (scoped to admin page) */
.admin-show select,
.admin-show .topicEditSelect,
#topic-category,
#topic-filter-category {
  height: 48px;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-ctrl);
  background-color: #fff;
  color: var(--adm-text);
  padding: 0 44px 0 16px; /* right space for arrow */
  line-height: 48px;
  font-weight: 500;
  transition: all .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  appearance: none;           /* modern */
  -webkit-appearance: none;   /* Safari/Chrome */
  -moz-appearance: none;      /* Firefox */
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%230f6a50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0)); /* fallback layer */
  background-repeat: no-repeat, repeat;
  background-position: right 14px center, 0 0;
  background-size: 20px 20px, auto;
}

.admin-show select:hover,
.admin-show .topicEditSelect:hover,
#topic-category:hover,
#topic-filter-category:hover {
  border-color: #b8c4d3;
  background-color: #fff;
}

.admin-show select:focus,
.admin-show .topicEditSelect:focus,
#topic-category:focus,
#topic-filter-category:focus {
  outline: none;
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px rgba(15,106,80,0.12); /* green focus ring */
}

/* Disabled state */
.admin-show select:disabled {
  color: var(--adm-muted);
  background-color: #f3f4f6;
  cursor: not-allowed;
}

/* Make label + select spacing feel deliberate */
label + select,
label + .topicEditSelect {
  margin-top: 8px;
}

/* Optional compact variant for filters; remove if not desired */
#topic-filter-category {
  height: 44px;
  line-height: 44px;
  padding-right: 40px;
}

/* Firefox inner focus ring cleanup */
.admin-show select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 var(--adm-text);
}

/* Keep long filenames inside the drop zone */
.dropBox {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;              /* clip anything exceeding container */
}

.dropText,
.topicEditPdfSelected {
  display: block;
  width: 100%;                   /* explicit width enables ellipsis */
  max-width: 100%;
  white-space: nowrap;           /* stay on one line */
  overflow: hidden;              /* hide overflow */
  text-overflow: ellipsis;       /* show … */
  text-align: center;
  padding: 0 8px;                /* small side padding so ellipsis is visible */
}

/* If you ever prefer wrapping (multi-line), swap to:
.dropText, .topicEditPdfSelected {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
*/