/* SUMIT (sumit.sum.ba) Brand Override for SeedDMS Bootstrap 4 Theme
 *
 * The compiled seeddms.css uses:
 *   - `background` shorthand with linear-gradient for buttons (overrides background-color)
 *   - `!important` on .bg-dark, .bg-light, etc.
 * So we must use `background` shorthand and `!important` where needed.
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@700&family=Roboto:wght@300;400;500;700&display=swap');

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE — Full branded experience
   ═══════════════════════════════════════════════════════════ */

body.login {
  background: radial-gradient(circle at 12% 16%, rgba(72, 169, 166, 0.26), transparent 32%),
              radial-gradient(circle at 90% 78%, rgba(122, 162, 203, 0.22), transparent 30%),
              linear-gradient(135deg, #0C2A4C 0%, #123F70 46%, #1A5291 78%, #48A9A6 100%);
  min-height: 100vh;
  padding-top: 0 !important;
}

body.login nav.navbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
}

body.login #login_wrapper {
  width: min(1380px, 98vw);
  max-width: 98vw;
  margin: 0 auto;
  padding-top: 0;
  display: grid;
  grid-template-columns: minmax(560px, 1.75fr) minmax(360px, 430px);
  gap: clamp(1rem, 2.6vw, 2.15rem);
  align-items: stretch;
  min-height: calc(100vh - 4.8rem);
}

body.login .sdms-login-brand-side {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 34px rgba(2, 16, 38, 0.28);
  overflow: hidden;
  position: relative;
  min-height: 100%;
}

body.login .sdms-login-brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(235, 245, 255, 0.12));
  pointer-events: none;
}

body.login .sdms-login-brand-side .v-responsive__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(1.7rem, 3.2vw, 2.75rem);
}

body.login .sdms-login-brand-side .text-black {
  color: #0f1722;
}

body.login .sdms-login-brand-side .text-h6 {
  font-size: clamp(1.22rem, 2.25vw, 2rem);
}

body.login .sdms-login-brand-side .d-flex {
  display: flex;
}

body.login .sdms-login-brand-side .justify-center {
  justify-content: center;
}

body.login .sdms-login-brand-side .ibm-plex-mono-bold {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

body.login .sdms-login-brand-side .fade-in-up {
  animation: sdms-fade-in-up .7s ease both;
}

@keyframes sdms-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.login .sdms-login-brand-side .mreza-anim {
  width: 165%;
  max-width: 980px;
  margin: 1.15rem -15% -1.25rem;
  display: block;
  opacity: 0.84;
}

body.login .sdms-login-brand-side .mreza-anim .path {
  stroke: #0f0f0d;
  stroke-width: 0.42;
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2000;
  animation: nacrtaj 5s ease forwards;
}

@keyframes nacrtaj {
  to {
    stroke-dashoffset: 0;
  }
}

body.login .sdms-login-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.login .sdms-login-form-side legend {
  color: #123F70;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

body.login #login_wrapper .navbar {
  background: transparent !important;
  border: none !important;
  margin-bottom: 1.5rem;
}

body.login #login_wrapper .navbar-brand {
  color: #123F70 !important;
}

/* Login card */
body.login .card,
body.login .sdms-login-form-side .contentcontainer {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 16, 38, 0.2);
  border: none;
  padding: 10px;
}

body.login .sdms-login-form-side .bg-light {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(2, 16, 38, 0.14);
  background-color: #fff !important;
  padding: 1.35rem 1.55rem !important;
}

body.login .btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-top: 8px;
}

body.login .sdms-login-links {
  margin: 0.55rem 0.2rem 0;
  text-align: center;
  font-size: 0.94rem;
}

body.login .sdms-login-links a {
  color: #123F70;
}

body.login .sdms-login-links a:hover {
  color: #0E3259;
}

body.login .footer {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
}
body.login .footer a {
  color: rgba(255, 255, 255, 0.8);
}

body.login main.container-fluid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  padding: 3.75rem 0.55rem 0.5rem;
}

@media (max-width: 991.98px) {
  body.login #login_wrapper {
    width: min(560px, 92vw);
    max-width: 92vw;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.login .sdms-login-brand-side {
    min-height: 215px;
  }

  body.login .sdms-login-brand-side .mreza-anim {
    width: 160%;
    margin: 0.6rem -18% -1rem;
  }

  body.login .sdms-login-form-side legend {
    font-size: 1.25rem;
  }
}

/* Bonjour-like split login override */
body.login {
  background: linear-gradient(135deg, #0C2A4C 0%, #123F70 40%, #1A5291 70%, #48A9A6 100%);
  min-height: 100vh;
  padding-top: 0 !important;
  --sdms-login-nav-h: 0px;
}

body.login main.container-fluid {
  min-height: 100vh;
  height: 100vh;
  margin-top: 0 !important;
  padding: 0 !important;
  align-items: center;
  overflow: hidden;
}

body.login #login_wrapper {
  width: 100%;
  max-width: none;
  min-height: 80vh;
  height: 80vh;
  max-height: 80vh;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  gap: 0;
  align-self: center;
}

body.login nav.navbar {
  min-height: var(--sdms-login-nav-h);
}

body.login nav.navbar.fixed-top {
  display: none !important;
}

body.login .sdms-login-brand-side {
  min-height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: linear-gradient(145deg, #f9fbfd 0%, #edf3f9 100%);
}

body.login .sdms-login-brand-side .v-responsive__content {
  padding: clamp(2rem, 5vw, 4.5rem);
}

body.login .sdms-login-brand-side .text-h6 {
  font-size: clamp(1.55rem, 2.55vw, 2.6rem);
}

body.login .sdms-login-brand-side .mreza-anim {
  width: 120%;
  max-width: 920px;
  margin: 2rem -10% 0;
  opacity: 0.52;
}

body.login .sdms-login-form-side {
  min-height: 100%;
  background: #fff;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.35rem, 2.8vw, 2.35rem);
}

body.login .sdms-login-form-side > * {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

body.login .sdms-login-form-side .sdms-page-nav {
  margin-bottom: 1rem;
  background: transparent !important;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.login .sdms-login-form-side .sdms-page-nav .navbar-brand {
  color: #0f1722;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

body.login .sdms-login-form-side .sdms-page-nav .navbar-brand::before {
  display: none;
}

body.login .sdms-login-form-side .contentcontainer,
body.login .sdms-login-form-side .bg-light {
  border: 1px solid #e5eaf1;
  box-shadow: none;
}

body.login .sdms-login-form-side .form-control {
  min-height: 46px;
  border-radius: 10px;
}

body.login .sdms-login-links {
  margin-top: 0.75rem;
  text-align: left;
}

body.login .footer {
  display: none;
}

@media (max-width: 991.98px) {
  body.login main.container-fluid {
    height: auto;
    overflow: visible;
  }

  body.login #login_wrapper {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    max-height: none;
  }

  body.login .sdms-login-brand-side {
    min-height: 300px;
  }

  body.login .sdms-login-form-side {
    min-height: auto;
  }
}

@media (min-width: 992px) {
  body.login {
    height: 100dvh;
    overflow: hidden;
  }

  body.login main.container-fluid {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  body.login #login_wrapper {
    height: 80dvh;
    min-height: 80dvh;
    max-height: 80dvh;
  }

  body.login .sdms-login-form-side {
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

body {
  font-family: 'Roboto', sans-serif !important;
}

/* ═══════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════ */

a {
  color: #123F70;
}
a:hover {
  color: #0E3259;
}

/* ═══════════════════════════════════════════════════════════
   PRIMARY BUTTONS — SUMIT Red pill style
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
  color: #fff;
  background: #EC2227 none;
  border-color: #EC2227;
  border-radius: 50px;
  padding: 0.45rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(236, 34, 39, 0.3);
}
.btn-primary:hover {
  color: #fff;
  background: #C91C20 none;
  border-color: #C91C20;
  box-shadow: 0 4px 8px rgba(236, 34, 39, 0.4);
}
.btn-primary:focus, .btn-primary.focus {
  color: #fff;
  background: #C91C20 none;
  border-color: #C91C20;
  box-shadow: 0 0 0 0.2rem rgba(236, 34, 39, 0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: #EC2227;
  border-color: #EC2227;
  background-image: none;
  opacity: 0.65;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #BE1A1E;
  background-image: none;
  border-color: #B3181C;
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.125), 0 0 0 0.2rem rgba(236, 34, 39, 0.5);
}

.btn-outline-primary {
  color: #EC2227;
  border-color: #EC2227;
  border-radius: 50px;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: #EC2227;
  border-color: #EC2227;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   DANGER / RED BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-danger {
  color: #fff;
  background: #EC2227 none;
  border-color: #EC2227;
  box-shadow: 0 2px 4px rgba(236, 34, 39, 0.3);
}
.btn-danger:hover {
  color: #fff;
  background: #C91C20 none;
  border-color: #C91C20;
  box-shadow: 0 4px 8px rgba(236, 34, 39, 0.4);
}
.btn-danger:focus, .btn-danger.focus {
  color: #fff;
  background: #C91C20 none;
  border-color: #C91C20;
  box-shadow: 0 0 0 0.2rem rgba(236, 34, 39, 0.5);
}
.btn-danger.disabled, .btn-danger:disabled {
  color: #fff;
  background-color: #EC2227;
  border-color: #EC2227;
  background-image: none;
}
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle {
  color: #fff;
  background-color: #BE1A1E;
  background-image: none;
  border-color: #B3181C;
}
.btn-danger:not(:disabled):not(.disabled):active:focus,
.btn-danger:not(:disabled):not(.disabled).active:focus,
.show > .btn-danger.dropdown-toggle:focus {
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.125), 0 0 0 0.2rem rgba(236, 34, 39, 0.5);
}

.btn-outline-danger {
  color: #EC2227;
  border-color: #EC2227;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:not(:disabled):not(.disabled):active {
  background-color: #EC2227;
  border-color: #EC2227;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   SUCCESS BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-success {
  color: #fff;
  background: #4CAF50 none;
  border-color: #4CAF50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}
.btn-success:hover {
  color: #fff;
  background: #3D8B40 none;
  border-color: #388E3C;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}
.btn-success:focus, .btn-success.focus {
  color: #fff;
  background: #3D8B40 none;
  border-color: #388E3C;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.5);
}
.btn-success.disabled, .btn-success:disabled {
  color: #fff;
  background-color: #4CAF50;
  border-color: #4CAF50;
  background-image: none;
}
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
  color: #fff;
  background-color: #388E3C;
  background-image: none;
  border-color: #2E7D32;
}

/* ═══════════════════════════════════════════════════════════
   WARNING BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-warning {
  color: #fff;
  background: #FB8C00 none;
  border-color: #FB8C00;
  box-shadow: 0 2px 4px rgba(251, 140, 0, 0.3);
}
.btn-warning:hover {
  color: #fff;
  background: #E07D00 none;
  border-color: #D47600;
  box-shadow: 0 4px 8px rgba(251, 140, 0, 0.4);
}
.btn-warning:focus, .btn-warning.focus {
  color: #fff;
  background: #E07D00 none;
  border-color: #D47600;
  box-shadow: 0 0 0 0.2rem rgba(251, 140, 0, 0.5);
}
.btn-warning.disabled, .btn-warning:disabled {
  color: #fff;
  background-color: #FB8C00;
  border-color: #FB8C00;
  background-image: none;
}

/* ═══════════════════════════════════════════════════════════
   INFO BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-info {
  color: #fff;
  background: #2196F3 none;
  border-color: #2196F3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}
.btn-info:hover {
  color: #fff;
  background: #1976D2 none;
  border-color: #1565C0;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}
.btn-info:focus, .btn-info.focus {
  color: #fff;
  background: #1976D2 none;
  border-color: #1565C0;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.5);
}
.btn-info.disabled, .btn-info:disabled {
  color: #fff;
  background-color: #2196F3;
  border-color: #2196F3;
  background-image: none;
}

/* ═══════════════════════════════════════════════════════════
   TOP NAVBAR (dark only)
   ═══════════════════════════════════════════════════════════ */

.navbar-dark.bg-dark {
  background-color: #123F70 !important;
}

a.bg-dark:hover, a.bg-dark:focus,
button.bg-dark:hover, button.bg-dark:focus {
  background-color: #0E3259 !important;
}

.bg-gradient-primary {
  background: #123F70 linear-gradient(180deg, #2B5A8A, #123F70) repeat-x !important;
}

.bg-primary {
  background-color: #123F70 !important;
}

a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover, button.bg-primary:focus {
  background-color: #0E3259 !important;
}

/* Navbar logo swap — use SUMIT logo */
#navbar-logo {
  content: url('../images/sumit-logo.svg');
  height: 2.0rem;
  filter: brightness(0) invert(1);
}

.navbar-dark .top-search {
  width: clamp(220px, 28vw, 420px);
  background: #ffffff;
  border: 1px solid rgba(18, 63, 112, 0.18);
  color: #15385f;
  border-radius: 999px;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
  box-shadow: 0 2px 10px rgba(8, 26, 52, 0.18);
}

.navbar-dark .top-search::placeholder {
  color: #6f8297;
}

.navbar-dark .top-search:focus {
  background: #ffffff;
  color: #15385f;
  border-color: #7ba2cb;
  box-shadow: 0 0 0 0.16rem rgba(123, 162, 203, 0.35), 0 3px 12px rgba(8, 26, 52, 0.22);
}

.navbar-dark .nav-link.sdms-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
}

.sdms-top-right-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sdms-top-right-nav .navbar-nav {
  flex-direction: row;
  align-items: center;
}

.sdms-top-right-nav .nav-item {
  margin-left: 0.15rem;
}

.sdms-top-right-nav .dropdown-menu {
  margin-top: 0.55rem;
}

.sdms-top-widget {
  margin-left: 0.35rem;
}

.sdms-top-quick-actions {
  margin-right: 0.35rem;
  gap: 0.45rem;
}

.sdms-top-action-btn {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sdms-top-action-btn:hover,
.sdms-top-action-btn:focus {
  border-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.user-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.72rem !important;
}

.sdms-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sdms-user-name {
  font-weight: 600;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sdms-language-menu {
  max-height: 55vh;
  overflow-y: auto;
}

@media (max-width: 1199.98px) {
  .navbar-dark .top-search {
    width: clamp(180px, 40vw, 320px);
  }
}

@media (max-width: 991.98px) {
  .sdms-top-search-form {
    margin: 0.6rem 0;
  }

  .navbar-dark .top-search {
    width: min(100%, 320px);
  }

  .sdms-top-right-nav {
    width: 100%;
    margin-top: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sdms-top-right-nav .navbar-nav {
    width: auto;
  }

  .sdms-top-link .sdms-nav-label {
    display: none;
  }

  .sdms-top-link i {
    margin-right: 0;
  }

  .user-pill {
    background: transparent;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   DRAG & DROP ZONE — replace yellow with SUMIT blue
   ═══════════════════════════════════════════════════════════ */

#draganddrophandler {
  background-color: #f0f5fa !important;
  background-image: none !important;
  border: 2px dashed #123F70 !important;
  border-radius: 8px !important;
  color: #123F70 !important;
  padding: 24px !important;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

#draganddrophandler:hover {
  background-color: #e0ebf5 !important;
  border-color: #0E3259 !important;
}

/* ═══════════════════════════════════════════════════════════
   TEXT COLORS
   ═══════════════════════════════════════════════════════════ */

.text-primary {
  color: #123F70 !important;
}

a.text-primary:hover, a.text-primary:focus {
  color: #0E3259 !important;
}

.text-danger {
  color: #EC2227 !important;
}

.text-success {
  color: #4CAF50 !important;
}

.text-warning {
  color: #FB8C00 !important;
}

.text-info {
  color: #2196F3 !important;
}

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */

.badge-primary {
  background-color: #123F70;
}
a.badge-primary:hover, a.badge-primary:focus {
  background-color: #0E3259;
}

.badge-danger {
  background-color: #EC2227;
}
a.badge-danger:hover, a.badge-danger:focus {
  background-color: #C91C20;
}

.badge-success {
  color: #fff;
  background-color: #4CAF50;
}
a.badge-success:hover, a.badge-success:focus {
  background-color: #3D8B40;
}

.badge-warning {
  color: #fff;
  background-color: #FB8C00;
}
a.badge-warning:hover, a.badge-warning:focus {
  background-color: #E07D00;
}

.badge-info {
  color: #fff;
  background-color: #2196F3;
}
a.badge-info:hover, a.badge-info:focus {
  background-color: #1976D2;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════ */

.alert-primary {
  background-color: #dce6f0;
  border-color: #c5d5e6;
  color: #0a2542;
}

.alert-danger {
  background-color: #fcd4d5;
  border-color: #f8b4b6;
  color: #7a1416;
}

.alert-success {
  background-color: #d9eedb;
  border-color: #bfe3c1;
  color: #2d6930;
}

.alert-warning {
  background: #f0f5fa none !important;
  border: 2px dashed #123F70 !important;
  border-radius: 8px;
  color: #123F70 !important;
  font-weight: 500;
}

.alert-info {
  background-color: #d4eafc;
  border-color: #b4d9f9;
  color: #145a91;
}

/* ═══════════════════════════════════════════════════════════
   FORM FOCUS STATES
   ═══════════════════════════════════════════════════════════ */

.form-control:focus {
  border-color: #1A5291;
  box-shadow: 0 0 0 0.2rem rgba(18, 63, 112, 0.25);
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #123F70;
  border-color: #123F70;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */

.page-item.active .page-link {
  background-color: #123F70;
  border-color: #123F70;
}

.page-link {
  color: #123F70;
}

.page-link:hover {
  color: #0E3259;
}

/* ═══════════════════════════════════════════════════════════
   NAV PILLS / TABS
   ═══════════════════════════════════════════════════════════ */

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #123F70;
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN
   ═══════════════════════════════════════════════════════════ */

.dropdown-item.active,
.dropdown-item:active {
  background-color: #123F70;
}

/* ═══════════════════════════════════════════════════════════
   LIST GROUP
   ═══════════════════════════════════════════════════════════ */

.list-group-item.active {
  background-color: #123F70;
  border-color: #123F70;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BARS & BG UTILITIES
   ═══════════════════════════════════════════════════════════ */

.progress-bar {
  background-color: #123F70;
}

.bg-danger {
  background-color: #EC2227 !important;
}

.bg-success {
  background-color: #4CAF50 !important;
}

.bg-warning {
  background-color: #FB8C00 !important;
}

.bg-info {
  background-color: #2196F3 !important;
}

/* ═══════════════════════════════════════════════════════════
   BORDER COLORS
   ═══════════════════════════════════════════════════════════ */

.border-primary {
  border-color: #123F70 !important;
}

.border-danger {
  border-color: #EC2227 !important;
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */

.table-primary,
.table-primary > th,
.table-primary > td {
  background-color: #dce6f0;
}

/* ═══════════════════════════════════════════════════════════
   MATERIAL DESIGN POLISH
   ═══════════════════════════════════════════════════════════ */

/* Card shadows */
.card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 6px;
}

/* Content containers — subtle card-like feel */
.contentcontainer {
  border-radius: 6px;
}

/* Buttons — Material-style rounded corners */
.btn {
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}

/* Navbar search field */
.navbar-dark .form-control {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  color: #fff;
}
.navbar-dark .form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.navbar-dark .form-control:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  color: #fff;
}

/* Keep top search clearly white (not navbar-tinted) and add icon */
.navbar-dark .form-control.top-search {
  background-color: #fff !important;
  border: 1px solid rgba(18, 63, 112, 0.18) !important;
  color: #15385f !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236f8297' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.8'/%3E%3Cpath d='m10.6 10.6 3.4 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.78rem center;
  background-size: 0.9rem 0.9rem;
  padding-left: 2.2rem;
}

.navbar-dark .form-control.top-search::placeholder {
  color: #6f8297 !important;
}

.navbar-dark .form-control.top-search:focus {
  background-color: #fff !important;
  color: #15385f !important;
  border-color: #7ba2cb !important;
  box-shadow: 0 0 0 0.16rem rgba(123, 162, 203, 0.35), 0 3px 12px rgba(8, 26, 52, 0.22) !important;
}

/* Footer styling */
.footer {
  border-top: 3px solid #EC2227;
}

/* ═══════════════════════════════════════════════════════════
   PAGE ACTION NAVBAR (FOLDER/DOCUMENT/TOOLS SUB NAV)
   ═══════════════════════════════════════════════════════════ */

.sdms-page-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%) !important;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
  padding: 0.55rem 0.75rem;
}

.sdms-page-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #123F70;
  margin-right: 0.7rem;
}

.sdms-page-nav .navbar-brand::before {
  content: "\f0ca";
  font-family: FontAwesome;
  margin-right: 0.4rem;
  color: #1b6aa8;
}

.sdms-page-nav.sdms-page-nav-view_folder .navbar-brand::before {
  content: "\f07c";
}

.sdms-page-nav.sdms-page-nav-view_document .navbar-brand::before {
  content: "\f15b";
}

.sdms-page-nav .navbar-nav {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sdms-page-nav .nav-item {
  display: flex;
}

.sdms-page-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  padding: 0.52rem 0.98rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #123F70;
  line-height: 1.2;
  min-height: 2.35rem;
}

.sdms-page-nav .nav-link:hover {
  background: #edf4ff;
  border-color: #c0d2e9;
  color: #0f355f;
}

.sdms-page-nav .nav-link::before {
  content: "\f0c8";
  font-family: FontAwesome;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  color: #1b6aa8;
}

.sdms-page-nav .nav-link[href*="out.AddSubFolder.php"]::before { content: "\f067"; font-size: 0.8rem; }
.sdms-page-nav .nav-link[href*="out.AddDocument.php"]::before { content: "\f0f6"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.EditFolder.php"]::before { content: "\f040"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.FolderAccess.php"]::before { content: "\f132"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.FolderNotify.php"]::before { content: "\f0a2"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.MoveFolder.php"]::before { content: "\f07d"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.RemoveFolder.php"]::before { content: "\f1f8"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.EditDocument.php"]::before { content: "\f040"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.DocumentAccess.php"]::before { content: "\f132"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.DocumentNotify.php"]::before { content: "\f0a2"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.MoveDocument.php"]::before { content: "\f047"; font-size: 0.85rem; }
.sdms-page-nav .nav-link[href*="out.RemoveDocument.php"]::before { content: "\f1f8"; font-size: 0.85rem; }
.sdms-page-nav .nav-link.addtoclipboard::before,
.sdms-page-nav .nav-link.removefromclipboard::before { content: "\f0ea"; font-size: 0.85rem; }

.sdms-page-breadcrumb {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(10, 31, 68, 0.05);
  padding: 0.45rem 0.7rem;
  margin-top: -0.4rem;
  margin-bottom: 1rem;
}

.sdms-page-breadcrumb .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.sdms-page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "\f105";
  font-family: FontAwesome;
  color: #7d8ea0;
}

.sdms-page-breadcrumb .breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f2f6fb;
  padding: 0.2rem 0.55rem;
  color: #123F70;
  font-weight: 600;
  text-decoration: none;
}

.sdms-page-breadcrumb .breadcrumb-item a::before {
  content: "\f07b";
  font-family: FontAwesome;
  margin-right: 0.35rem;
  color: #1b6aa8;
}

.sdms-page-breadcrumb .breadcrumb-item a:hover {
  background: #e7f0fb;
}

@media (max-width: 991.98px) {
  .sdms-page-nav .navbar-nav {
    margin-top: 0.35rem;
  }
  .sdms-page-nav .nav-link {
    font-size: 0.92rem;
    padding: 0.46rem 0.78rem;
    min-height: 2.1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FORM CARDS (EDIT/ADD FORMS)
   ═══════════════════════════════════════════════════════════ */

.sdms-form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
  padding: 1rem 1.15rem !important;
}

.sdms-form-card .sdms-form-row {
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px dashed #dfe8f3;
}

.sdms-form-card .sdms-form-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sdms-form-card .sdms-form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2f5070;
  letter-spacing: 0.01em;
  padding-top: 0.45rem !important;
}

.sdms-form-card .sdms-form-field .form-control,
.sdms-form-card .sdms-form-field .input-group-text {
  border-radius: 10px;
}

.sdms-form-card .sdms-form-field .form-control {
  border-color: #cad8e8;
  min-height: 2.38rem;
  font-size: 0.96rem;
}

.sdms-form-card .sdms-form-field .form-control:focus {
  border-color: #7ca7d1;
  box-shadow: 0 0 0 0.2rem rgba(27, 106, 168, 0.15);
}

.sdms-form-card .sdms-form-field textarea.form-control {
  min-height: 7.5rem;
}

.sdms-form-card .sdms-form-field .select2-container {
  width: 100% !important;
  max-width: 100%;
}

.sdms-form-card .sdms-form-field .select2-container--bootstrap4 .select2-selection--single {
  min-height: 2.38rem;
  border-radius: 10px;
  border-color: #cad8e8;
}

.sdms-form-card .sdms-form-field .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  line-height: 2.28rem;
  padding-left: 0.72rem;
}

.sdms-form-card .sdms-form-hint {
  margin-top: 0.55rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: #496985;
  background: #eef5fc;
  border: 1px solid #d2e1f1;
  border-left: 3px solid #90b4d9;
  border-radius: 8px;
}

.sdms-form-card .sdms-form-hint i {
  margin-right: 0.35rem;
  color: #1b6aa8;
}

@media (max-width: 991.98px) {
  .sdms-form-card .sdms-form-label,
  .sdms-form-card .sdms-form-field {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .sdms-form-card .sdms-form-label {
    padding-top: 0 !important;
    margin-bottom: 0.35rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOLDER TREE (JQTREE)
   ═══════════════════════════════════════════════════════════ */

.sdms-tree-nav {
  margin-left: 0 !important;
  padding: 0.4rem;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f8fbff;
}

.sdms-tree-nav .jqtree-element {
  border-radius: 8px;
  padding: 0.34rem 0.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.sdms-tree-nav ul.jqtree-tree li.jqtree-selected > .jqtree-element,
.sdms-tree-nav ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover {
  background: #e3eefc !important;
  color: #123F70;
  font-weight: 600;
}

.sdms-tree-nav ul.jqtree-tree li.jqtree_common > .jqtree-element:hover {
  background: #edf4ff;
}

.sdms-tree-nav .jqtree-title {
  font-size: 0.96rem;
  color: #1e3c5a;
}

.sdms-tree-nav .jqtree-title .fa-folder-o {
  color: #1b6aa8;
  margin-right: 0.4rem;
}

.sdms-tree-nav .jqtree-title .fa-file {
  color: #6a7f95;
  margin-right: 0.4rem;
}

.sdms-tree-nav .jqtree-toggler {
  color: #5d6f82;
  margin-right: 0.35rem;
}

.sdms-tree-nav .jqtree-toggler:hover {
  color: #123F70;
  text-decoration: none;
}

/* Global button radius override */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-danger,
.btn-outline-danger,
.btn-success,
.btn-warning,
.btn-info,
.btn-secondary,
.btn-light,
.btn-dark,
.btn-link {
  border-radius: 8px !important;
}

/* Remove remaining pill shapes on nav/input elements */
.navbar-dark .top-search,
.navbar-dark .form-control.top-search,
.user-pill,
.sdms-page-nav .nav-link,
.sdms-page-nav .nav-link.active,
.nav-pills .nav-link,
.nav-pills .nav-link.active {
  border-radius: 8px !important;
}

/* Keep footer at bottom on non-login pages */
body:not(.login) {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

body:not(.login) > main.container-fluid {
  flex: 1 1 auto !important;
  min-height: 0;
  padding-bottom: 92px;
}

body:not(.login) > .footer {
  margin-top: auto !important;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  background: #fff;
}
