/* Project-specific color variables */
:root {
    --wt-primary-blue: #029BD9;
    --wt-digitale-geletterdheid: #B53389;
    --wt-background: #F7F9FA;
    --wt-text-gray: #5f697a;
    --wt-heading-gray: #666666;
}

body{
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: #F7F9FA;
    color: #5f697a;
}
h1{
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    line-height: 1.5;
    color: #666666;
}
h3{
    font-weight: bold;
    font-size: 1.1em;
    color: #029BD9;
}

button.btn-primary, a.btn-primary{
    border: none;
    background-color: #029BD9;
}
button.btn-primary:hover, button.btn-primary:active, a.btn-primary:hover, a.btn-primary:active{
    background-color: #5f697a;
}
.login input{
    background-color: #f5f5f6!important;
}

.login .jumbotron{
    margin: 50px auto;
    background-color: #ffffff;
}
.login  ::placeholder{
    font-size: 0.8em;
    color: #c5c5c5!important;
}
.login .jumbotron h1 {
    max-width: 400px;
    text-align: center;
}

#sticky-sidebar {
    min-height: 100vh;
    background-color: #fff;
    -webkit-box-shadow: 5px 0 5px -2px #f0f0f0;
    box-shadow: 5px 0 5px -2px #f0f0f0;
    color: #AAAAAA;
    transition: all 0.3s;
}

#sticky-sidebar a, #sticky-sidebar a:hover, #sticky-sidebar a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

#sticky-sidebar .sidebar-header {
    padding: 20px;
}

#sticky-sidebar .sidebar-header-text {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 1em;
    color: #029BD9;
}
#sticky-sidebar ul.components {
    padding: 20px 0;
}

#sticky-sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sticky-sidebar ul li{
    border-bottom: 1px solid #f0f0f0;
}

#sticky-sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}
#sticky-sidebar ul li a:hover {
    border-right: 5px solid #029BD9;
    color: #029BD9;
    background: #fff;
}

#sticky-sidebar ul li.active > a, a[aria-expanded="true"] {
    border-right: 5px solid #029BD9;
    color: #029BD9;
    background: #ffffff;
}
#sticky-sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #ffffff;
}

#content-right #menu-toggle {
    display: none;
}
#content-right a {
     color: #029BD9;
}
#content-right a.btn {
    color: #FFFFFF;
}
#content-right a.top-link {
    display: block;
    margin-bottom: 20px;
}
#content-right form button {
    margin-top: 5px;
    margin-bottom: 5px;
}

#dashboard-block .card {
    position: relative;
    overflow: hidden;
}
#dashboard-block .card-fixed-height{
    height:  220px;
}
#dashboard-block .card-var-height{
    height:  auto;
}

#dashboard-block .read-more {
    font-size: 12px;
    position: absolute;
    bottom: 2px;
    right: 10px;
}
#dashboard-block .read-more-show {
    display: block;
}
#dashboard-block .read-more-hide {
    display: none;
}
#dashboard-block .read-less {
    font-size: 12px;
    position: absolute;
    bottom: 2px;
    right: 10px;
}
#dashboard-block .read-less-show {
    display: block;
}
#dashboard-block .read-less-hide {
    display: none;
}

.tooltipDeco {
    text-decoration: underline;
}

.dia .card-body {
    color: grey;
    font-size: 2em;
}
.dia-logo {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 1em;
    color: #029BD9;
}
.dia h1{
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 2em;
    line-height: 2;
    color: #029BD9;
}
.dia-fase .card-body {
    min-height: 400px;
    padding-top: 150px;
    text-align: center;
}
.dia .fase-response {
    margin-left: -15px;
    margin-bottom: -15px;
    width: 30%;
    background-color: #029BD9;
    color: #FFFFFF;
    font-size: 0.5em;
}
/* Custom alert with orange background */
.custom-alert-orange {
    background-color: #F08300;
    border-color: #F08300;
    color: #ffffff;
}

.custom-alert-orange .text-white {
    color: #ffffff !important;
}

.custom-alert-orange .font-weight-bold {
    font-weight: bold !important;
}

/* Next & previous buttons */
a.prev, a.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    color: grey;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
/* Position the "next button" to the right */
a.prev {
    left: 0;
    padding: 16px 16px 16px 0;
    border-radius: 3px 0 0 3px;
}
/* Position the "next button" to the right */
a.next {
    right: 0;
    padding: 16px 0 16px 16px;
    border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
a.prev:hover, a.next:hover {
    background-color: rgba(0,0,0,0.8);
    color: white;
}

.search-text{
    color: #AAAAAA;
}

.hand {
    cursor: pointer;
}

#dashboard-block {
    padding-bottom: 15px;
}

.ui-sortable-handle {
    cursor: pointer;
}

.table-numbers {
    text-align: right;
}

.card.selected {
    border-width: 4px;
    border-color: #029BD9;
}

.questionnaire .selected {
    border-width: 2px;
    border-color: #029BD9;
}
.selected .card-footer {
    background-color: #029BD9;
    color: white;
}

/*---Media Queries --*/
@media (max-width: 992px) {

}
@media (max-width: 768px) {

}
@media (max-width: 576px) {

}
/*
Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
*/

/* Ensure consistent borders between all table rows */
.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Module choice buttons */
.module-choice {
    display: inline-flex;
    gap: 8px;
}
.module-choice .btn-option {
    color: #ffffff;
    border: 2px solid transparent;
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: transform .05s ease-in, box-shadow .15s ease-in-out, filter .15s ease-in-out, opacity .15s ease-in-out, border-color .15s ease-in-out;
}
.module-choice .btn-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.module-choice .btn-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) inset;
}
.module-choice .btn-option:not(.active) {
    opacity: .8;
    filter: grayscale(8%) brightness(.96) saturate(.96);
}
.module-choice .btn-option.active {
    transform: translateY(-1px) scale(1.02);
    border-color: #ffffff;
}

/* Specific colors */
.module-choice .btn-wt {
    background-color: var(--wt-primary-blue);
}
.module-choice .btn-dg {
    background-color: var(--wt-digitale-geletterdheid);
}
.module-choice .btn-combined {
    background-image: linear-gradient(90deg, var(--wt-primary-blue) 0%, var(--wt-digitale-geletterdheid) 100%);
}

/* Stronger active rings per variant */
.module-choice .btn-wt.active {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.9) inset, 0 0 0 3px rgba(2,155,217,0.35), 0 8px 16px rgba(0,0,0,0.18);
}
.module-choice .btn-dg.active {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.9) inset, 0 0 0 3px rgba(181,51,137,0.35), 0 8px 16px rgba(0,0,0,0.18);
}
.module-choice .btn-combined.active {
    /* dual ring effect */
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.9) inset,
        0 0 0 3px rgba(2,155,217,0.25),
        0 0 0 6px rgba(181,51,137,0.25),
        0 8px 16px rgba(0,0,0,0.18);
}

/* Keyboard focus visibility */
.module-choice .btn-option:focus-visible {
    outline: 3px solid #222;
    outline-offset: 2px;
}

/* Gradient status banner (for 'Huidige status') */
.status-banner {
    color: #ffffff;
    background-image: linear-gradient(90deg, var(--wt-primary-blue) 0%, rgba(2,155,217,0.9) 30%, var(--wt-digitale-geletterdheid) 100%);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    max-width: 720px; /* not full-width on large screens */
}
.status-banner .status-title {
    font-weight: 700;
    line-height: 1.1;
}
.status-banner .status-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
}
.status-banner i {
    color: #ffffff;
    opacity: 0.95;
}

/* Compact status chip */
.status-chip-wrap {
    display: flex;
    gap: 8px;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafb;
    font-weight: 600;
    border: 2px solid transparent; /* set per variant */
}
.status-chip .status-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}
.status-chip .status-label { line-height: 1; color: var(--wt-text-gray); }

/* WT variant: blue text/border; only icon filled */
.status-chip--wt { border-color: var(--wt-primary-blue); }
.status-chip--wt .status-icon { background: var(--wt-primary-blue); }

/* DG variant: purple text/border; only icon filled */
.status-chip--dg { border-color: var(--wt-digitale-geletterdheid); }
.status-chip--dg .status-icon { background: var(--wt-digitale-geletterdheid); }

/* Combined: gradient border/text leaning via gradient overlay; icon has gradient */
.status-chip--combined {
    position: relative;
    border: 2px solid transparent; /* keep for rounded corners */
    border-radius: 8px; /* ensure rounding visible */
    background:
        linear-gradient(#f8fafb, #f8fafb) padding-box,
        linear-gradient(90deg, var(--wt-primary-blue), var(--wt-digitale-geletterdheid)) border-box;
}
.status-chip--combined .status-label { color: var(--wt-text-gray); }
.status-chip--combined .status-icon {
    background-image: linear-gradient(90deg, var(--wt-primary-blue) 0%, var(--wt-digitale-geletterdheid) 100%);
}

.status-chip--none {
    background-color: #f1f3f5;
    color: #495057;
    border-color: #dee2e6;
}

/* Module beheer action buttons */
.btn-wt {
    background-color: var(--wt-primary-blue);
    border-color: var(--wt-primary-blue);
    color: #fff;
}
.btn-wt:hover,
.btn-wt:focus {
    background-color: #027fb3;
    border-color: #027fb3;
    color: #fff;
}

.btn-dg {
    background-color: var(--wt-digitale-geletterdheid);
    border-color: var(--wt-digitale-geletterdheid);
    color: #fff;
}
.btn-dg:hover,
.btn-dg:focus {
    background-color: #9d2b76;
    border-color: #9d2b76;
    color: #fff;
}

.btn-split {
    background-color: #F08300; /* align with project orange */
    border-color: #F08300;
    color: #fff;
}
.btn-split:hover,
.btn-split:focus {
    background-color: #d36d00;
    border-color: #d36d00;
    color: #fff;
}

/* Back button style */
.btn-back {
    background-color: #5f697a; /* matches site gray tone */
    border-color: #5f697a;
    color: #fff;
    border-radius: .35rem;
    padding: .375rem .75rem;
}
.btn-back:hover,
.btn-back:focus {
    background-color: #4e5868;
    border-color: #4e5868;
    color: #fff;
}

/* Space between action buttons (including remove buttons) */
.module-actions {
    display: flex;           /* ensure flex so gap works universally */
    gap: 10px;               /* horizontal and vertical spacing */
    flex-wrap: wrap;         /* wrap nicely on small screens */
}
/* Extra safety for older browsers without flex gap support */
.module-actions > form {
    margin-right: 10px;
}
.module-actions > form:last-child {
    margin-right: 0;
}

/* Module section header styling (matches screenshot) */
.module-section-header {
    background-color: #f8fafb; /* subtle light background */
    color: var(--wt-heading-gray);
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid #e3e6f0;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    padding: .5rem 1rem;
}
.module-section-header i {
    color: var(--wt-text-gray);
    opacity: .9;
}
