/* ==========================================================================
   Federal University Dutse - Journal Management System theme
   Palette taken from the university crest:
     green  #006A28   maroon #922619   ochre #A8651C   sand-gold #F2B563
   Loaded after build/css/custom.min.css (Gentelella) and overrides it.
   ========================================================================== */

:root {
  --fud-green:       #006a28;
  --fud-green-dark:  #004d1d;
  --fud-green-deep:  #003314;
  --fud-green-soft:  #e8f3ec;
  --fud-maroon:      #922619;
  --fud-maroon-dark: #741d12;
  --fud-ochre:       #a8651c;
  --fud-gold:        #f2b563;
  --fud-gold-soft:   #fdf3e2;
  --fud-ink:         #1c2420;
  --fud-muted:       #5d6b63;
  --fud-line:        #e2e6e3;
  --fud-paper:       #f6f7f4;
  --fud-stripe: linear-gradient(90deg, var(--fud-green) 0 60%, var(--fud-gold) 60% 80%, var(--fud-maroon) 80% 100%);
}

body {
  color: var(--fud-ink);
  background: var(--fud-green-deep);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}
a { color: var(--fud-green); }
a:hover, a:focus { color: var(--fud-maroon); }

/* ---- Sidebar ------------------------------------------------------------- */
.left_col,
.nav-md .container.body .col-md-3.left_col {
  background: linear-gradient(180deg, var(--fud-green-dark) 0%, var(--fud-green-deep) 100%);
}
.nav_title {
  width: 230px;
  float: left;
  height: 64px;
  padding: 0;
  border-radius: 0;
  background: var(--fud-green-deep);
  border-bottom: 3px solid transparent;
  border-image: var(--fud-stripe) 1;
}
.site_title {
  display: flex !important;
  align-items: center;
  gap: 10px;
  height: 61px;
  padding-left: 12px !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .3px;
}
.site_title img {
  width: 44px;
  height: 44px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--fud-gold);
}
.site_title .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site_title .brand-text strong { font-size: 20px; color: #fff; }
.site_title .brand-text small { font-size: 10.5px; font-weight: 500; color: var(--fud-gold); text-transform: uppercase; letter-spacing: 1.2px; }
.nav-sm .site_title .brand-text { display: none; }
.nav-sm .nav_title, .nav-sm .site_title { width: 70px; }

.profile_info span, .profile_info h2 { color: #fff; }
.profile_info span { color: rgba(255, 255, 255, .7); }
.img-circle.profile_img { background: #fff; border-color: rgba(242, 181, 99, .6); }

.menu_section h3 { color: var(--fud-gold); letter-spacing: 1.5px; text-shadow: none; }
.nav.side-menu > li > a,
.nav.child_menu > li > a {
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
}
.nav.side-menu > li > a:hover,
.nav.child_menu > li > a:hover,
.nav.child_menu li.active > a { color: var(--fud-gold) !important; }
.nav.side-menu > li.current-page,
.nav.side-menu > li.active { border-right: 4px solid var(--fud-gold); }
.nav.side-menu > li.active > a {
  text-shadow: none;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  color: #fff;
}
.nav.child_menu li:before { background: rgba(242, 181, 99, .55); }
.nav.child_menu li:after { border-left-color: rgba(242, 181, 99, .35); }
.nav-md ul.nav.child_menu li:before { background: rgba(242, 181, 99, .55); }
.nav-md ul.nav.child_menu li:after { border-left: 1px solid rgba(242, 181, 99, .35); }
.nav-sm ul.nav.child_menu { background: var(--fud-green-dark); }
.sidebar-footer { background: var(--fud-green-deep); }

/* ---- Top bar ----------------------------------------------------------- */
.nav_menu {
  background: #fff;
  border-bottom: 3px solid transparent;
  border-image: var(--fud-stripe) 1;
}
.toggle a, .toggle a:hover { color: var(--fud-green); }
.nav.navbar-nav > li > a, .navbar-right .user-profile { color: var(--fud-ink) !important; }
.top-brand {
  float: left;
  padding: 14px 0 0 6px;
  color: var(--fud-green-dark);
  font-weight: 600;
  font-size: 15px;
}
.top-brand small { color: var(--fud-muted); font-weight: 400; }
@media (max-width: 767px) { .top-brand { display: none; } }

/* ---- Content ------------------------------------------------------------ */
.right_col { background: var(--fud-paper) !important; }
.x_panel {
  border: 1px solid var(--fud-line);
  border-top: 3px solid var(--fud-green);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 51, 20, .05);
}
.x_title { border-bottom: 2px solid var(--fud-line); }
.x_title h2, .page-title h3, .page-title .title_left h3 { color: var(--fud-green-dark); font-weight: 600; }
.dashboard_graph { border: 1px solid var(--fud-line); border-top: 3px solid var(--fud-green); border-radius: 4px; }
.dashboard_graph .x_title h3 { color: var(--fud-green-dark); }
footer { background: #fff; border-top: 1px solid var(--fud-line); color: var(--fud-muted); }
footer a { color: var(--fud-green); font-weight: 600; }

/* ---- Buttons / badges ------------------------------------------------- */
.btn-success,
.btn-success:not(:disabled):not(.disabled) {
  background: var(--fud-green);
  border-color: var(--fud-green);
  color: #fff;
}
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-success:not(:disabled):not(.disabled):active {
  background: var(--fud-green-dark) !important;
  border-color: var(--fud-green-dark) !important;
}
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
  background: var(--fud-green-dark);
  border-color: var(--fud-green-dark);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--fud-green-deep) !important;
  border-color: var(--fud-green-deep) !important;
}
.btn-info { background: var(--fud-ochre); border-color: var(--fud-ochre); color: #fff; }
.btn-info:hover, .btn-info:focus { background: #8c5316; border-color: #8c5316; color: #fff; }
.bg-green, .badge-success { background: var(--fud-green) !important; }
.page-item.active .page-link,
.pagination > .active > a {
  background: var(--fud-green) !important;
  border-color: var(--fud-green) !important;
}
.page-link { color: var(--fud-green); }
.form-control:focus {
  border-color: var(--fud-green);
  box-shadow: 0 0 0 .2rem rgba(0, 106, 40, .15);
}
table.dataTable thead th, .table thead th { border-bottom-color: var(--fud-green) !important; }
.modal-header { border-bottom: 3px solid transparent; border-image: var(--fud-stripe) 1; }
.modal-title { color: var(--fud-green-dark); font-weight: 600; }

/* ---- Page loader ------------------------------------------------------ */
#nprogress .bar { background: var(--fud-gold) !important; height: 3px !important; }
#nprogress .peg { box-shadow: 0 0 10px var(--fud-gold), 0 0 5px var(--fud-gold) !important; }
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(1px);
}
.loader-overlay.active { display: flex; }
.loader-overlay .page-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(0, 106, 40, .15);
  border-top-color: var(--fud-green);
  animation: page-spinner-spin .7s linear infinite;
}
@keyframes page-spinner-spin { to { transform: rotate(360deg); } }
.right_col { transition: opacity .15s ease-in-out; }
.right_col.page-loading { opacity: .35; }

/* ---- Sign-in / account pages ----------------------------------------- */
body.login {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 181, 99, .18), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(146, 38, 25, .25), transparent 45%),
    linear-gradient(160deg, var(--fud-green-dark), var(--fud-green-deep));
}
.login_wrapper { max-width: 440px; margin-top: 4vh; padding: 0 16px; }
.login_form, .registration_form { position: absolute; top: 0; width: calc(100% - 32px); }
.login_content {
  margin: 0;
  padding: 28px 30px 20px;
  color: var(--fud-ink);
  background: #fff;
  border-radius: 8px;
  border-top: 5px solid transparent;
  border-image: var(--fud-stripe) 1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
  text-shadow: none;
}
.login_content .fud-crest { height: 96px; width: auto; margin-bottom: 8px; }
.login_content .fud-title { margin: 4px 0 0; font-size: 19px; font-weight: 700; color: var(--fud-green-dark); letter-spacing: .2px; }
.login_content .fud-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--fud-muted); text-transform: uppercase; letter-spacing: 1.4px; }
.login_content .fud-motto { margin: 8px 0 0; font-size: 12.5px; font-style: italic; color: var(--fud-maroon); }
.login_content h1 { font: 700 22px "Segoe UI", Arial, sans-serif; letter-spacing: 0; color: var(--fud-green-dark); }
.login_content h1:before, .login_content h1:after { display: none; }
.login_content form { margin: 18px 0 0; }
.login_content form h6 {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fud-green-dark);
}
.login_content form input[type="text"],
.login_content form input[type="email"],
.login_content form input[type="password"] {
  border-radius: 4px;
  box-shadow: none;
}
.login_content .btn-success { min-width: 110px; margin-right: 0; }
.login_content a.reset_pass, .login_content a.forgot { color: var(--fud-ochre); }
.login_content .separator { border-top: 1px solid var(--fud-line); }
.login_content .change_link a { color: var(--fud-green); font-weight: 600; }
.login_content .fud-portal-links a { color: var(--fud-green); font-weight: 600; }
.login_content .fud-footnote { margin-top: 14px; font-size: 12px; color: var(--fud-muted); }
.login_content .fud-footnote a { color: var(--fud-green); }

/* Only the active sign-in / sign-up card takes up space, so the page ends
   with the card instead of scrolling into the invisible registration form. */
body.login { background-attachment: fixed; padding-bottom: 40px; }
.login_wrapper .login_form,
.login_wrapper .registration_form { position: relative; width: 100%; }
.login_wrapper .registration_form { display: none; opacity: 1; }
#signup:target ~ .login_wrapper .registration_form { display: block; }
#signup:target ~ .login_wrapper .login_form { display: none; }
