/* === Custom CSS file for Woningborg === */
:root {
  /* Main brand colors (should match portalThemeColor slots) */
  --primary-color: #1C3556;    /* Primary brand */
  --secondary-color: #AAA552;  /* Accent / buttons */
  --supporting-bg: #C1DDF8;    /* Hero / highlights */
  --alert-color: #0779E4;      /* Alerts / info blocks */
  --layout-bg: #F5F5F5;        /* Panels, cards */
  --background-color: #FFFFFF; /* Page base */
  --text-color: #1C3556;       /* Default text */

  /* Portal theme OnColor fixes: always high contrast */
  --portalThemeOnColor1: #FFFFFF; /* Text on dark primary */
  --portalThemeOnColor2: #1C3556; /* Text on light backgrounds */
  --portalThemeOnColor4: #FFFFFF; /* Text on accent buttons */
  --portalThemeOnColor7: #1C3556; /* Text on supporting BG */

  /* Bootstrap root vars (optional but keeps it robust) */
  --bs-primary: #1C3556;
  --bs-secondary: #AAA552;
  --bs-body-color: #1C3556;
  --bs-body-bg: #FFFFFF;
}

/* === Global page setup === */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  height: 100%;
}


body {
  overflow-x: hidden;

  flex-direction: column; 
}


.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.wrapper-body {
min-height: calc(100% - 169px) !important;
flex: 1; 
}

.wrapper-body h1 {
    font-size: 36px;
    margin-top: 0px;
}

h3, .h3, .page_section h3, .color-inverse h3, .sidebar-home h3 {
    font-size: 20px !important;
}

.title-text {
    font-size: 18px;
}

footer, .custom-footer {
  flex-shrink: 0;
}


/* === Global text === */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
}

/* === Links === */
a {
  color: var(--secondary-color);
  text-decoration: underline;
}
a:hover {
  color: var(--alert-color);
  text-decoration: underline;
}

/* === Buttons === */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #FFFFFF;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary, .button2 {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.btn-secondary:hover, .button2:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

/* === Utility sections === */
.hero-section {
  background-color: var(--supporting-bg);
  color: var(--portalThemeOnColor7);
  padding: 60px 20px;
}

.panel-section {
  background-color: var(--layout-bg);
  color: var(--text-color);
  padding: 40px 20px;
}

.alert-section {
  background-color: var(--alert-color);
  color: #FFFFFF;
  padding: 20px;
  border-radius: 4px;
}

footer {
  color: var(--text-color);
  background-color: var(--primary-color);
}

/* === Optional: override breadcrumb or nav hover === */
.breadcrumb > li a {
  color: var(--secondary-color);
}
.breadcrumb > li a:hover {
  color: var(--alert-color);
}

/* Style header */
.static-top.navbar-light {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .nav-link {
  font-size: 16px !important;
  font-family: 'Montserrat' !important;
  font-weight: 700 !important;
}

.navbar .navbar-nav .nav-link {
  font-size: 16px;
  color: var(--primary-color) !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important; /* optional hover accent */
}

/* Remove grey hover, focus, and active background for main nav links */
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active {
  background-color: transparent !important;
}

/* Remove grey hover, focus, and active background for dropdown items */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item:active {
  background-color: transparent !important;
}

.nav .show.dropdown-menu > li > a {
    color: #1C3556;
}



.account-topbar {
  background-color: var(--primary-color); /* or your darker brand color variable */
  color: #fff;
  font-size: 0.875rem;
}

.account-topbar .account-info {
  color: #fff;
}

.form-control:disabled {
  background-color: #e9ecef !important;
  color: #6c757d; /* Bootstrap's muted text color */
}

/* Style footer */
.custom-footer {
  background-color: var(--primary-color); /* or your dark brand color */
  color: #FFFFFF;
  height: 60px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.custom-footer a {
  color: #FFFFFF;
  text-decoration: none;
  margin-left: 8px;
  margin-right: 8px;
  font-size: 0.9rem;
}

.custom-footer a:hover {
  text-decoration: underline;
}

/* Basic card styling */
.card {
  background-color: var(--supporting-bg);
  /* border: none; */
  border-radius: 15px;
  border: 1px solid #F3F3F3 !important;
  transition: box-shadow 0.2s ease;
  color: var(--text-color);
  text-decoration: none; /* covers <a class="card"> itself */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

.card-body, .list-group-item {
  color: #1C3556 !important;
  border-radius: 15px;

}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none !important; /* covers <a class="card"> hover */
}

.card a {
  text-decoration: none;
  color: inherit;
}

.card a:hover {
  text-decoration: none !important; /* override theme.css */
}

.card h5,
.card h5 a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
  text-decoration: none;
}

.card h5 a:hover {
  text-decoration: none !important;
}

/* Prevent underline on card links and their children */
a.card:hover,
a.card *:hover {
  text-decoration: none !important;
}

/* === Custom breadcrumb styling === */
.custom-breadcrumb {
  margin-top: 10px;     /* Space below header */
  margin-bottom: 10px; /* Space before page title */
}

.custom-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
}

.custom-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--text-color);
  margin-right: 0.5rem;
}

.custom-breadcrumb .breadcrumb-item a {
  text-decoration: none;
  color: #737373;

}

.custom-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #737373;
  font-weight: normal;
}

.breadcrumb-item > a {
    margin-left: 0 !important;
}

.breadcrumb {
    margin-bottom: 0px;
}
  
.section {
    padding-top: 0px;
    padding-bottom: 2rem;
}

table th.custom-header a {
    color: inherit !important; 
    font-family: sans-serif !important; 
    font-weight: 800 !important; 
    font-size: 18px !important; 
    text-decoration: none !important; 
  }

  .nav-tabs .nav-link {
  background-color: var(--supporting-bg);   
  color: #333;                
  border-radius: 0.5rem 0.5rem 0 0; 
  border: none;                
  margin-right: 4px;           
  padding: 0.75rem 1.5rem;
}

/* Active tab */
.nav-tabs .nav-link.active {
  background-color: var(--primary-color);   
  color: #fff;              
  font-weight: 600;            
  border: none;
}

.dropdown-menu {
    border-radius: 8px;

}

.dropdown-menu li a {
    color: #1C3556 !important; /* jouw nieuwe kleur */
}


.dropdown-menu .dropdown-divider {
    border-top: 1px solid #DFDFDF; 
    opacity: 1; 
}

.dropdown-menu,
.dropdown-menu .dropdown-item {
    font-family: 'Roboto', sans-serif;
}

.dropdown-toggle {
    border-radius: 8px; 
}

.dropdown-toggle .dropdown-divider {
    border-top: 1px solid #DFDFDF; 
    opacity: 1; 
}

.dropdown-toggle,
.dropdown-toggle .dropdown-item {
    font-family: 'Roboto', sans-serif;
}

.account-topbar .dropdown-item:hover,
.account-topbar .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}


/* Reset portal overrides for secondary button */
.btn-secondary {
  background-color: transparent;
  border-color: #1C3556;
  color: #1C3556;
}

/* Hover should stay transparent */
.btn-secondary:hover {
  background-color: transparent;
  color: #1C3556;
  border-color: #1C3556;
}

/* Focus should NOT keep the blue background */
.btn-secondary:focus,
.btn-secondary.focus,
.btn-secondary:focus-visible {
  background-color: transparent !important;
  color: #1C3556 !important;
  border-color: #1C3556 !important;
  box-shadow: none;
}

/* Active (while pressing) = blue with white text */
.btn-secondary:active,
.btn-secondary.active {
  background-color: transparent;
  color: #1C3556 !important;
  border-color: #1C3556 !important;
}

.truncate-2-lines {
display: -webkit-box;
-webkit-line-clamp: 2; /* Max 2 regels */
-webkit-box-orient: vertical;
overflow: hidden;
}

.dropzone {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  background-color: #fafafa;
  transition: background 0.25s ease;
  cursor: pointer;
}

.dropzone.dragover {
  background-color: #eef6ff;
}

.fileList {
  margin-top: 15px;
  list-style: none;
  padding: 0;
}

.fileList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e1e1;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 14px;
}

.fileList li button {
  border: none;
  background: none;
  color: #d9534f;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.fileList li button:hover {
  color: #a94442;
}

.file-row {
  margin-bottom: 15px;
}

.progressbar {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progressbar-fill {
  height: 100%;
  width: 0%;
  background: #2f5fef;
  transition: width 0.25s linear;
}

.status {
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}

#fileTagList .filename-label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .dropzone {
    padding: 18px;
  }
}