/*--------------------------------------------------------------
    General
--------------------------------------------------------------*/

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

/*--------------------------------------------------------------
    Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px;
    padding: 20px 30px;
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main {
        padding: 20px;
    }
}

#main h3 {
    min-height: 2rem;
}

#main .float-right {
    float: right !important;
}

/*--------------------------------------------------------------
    Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

.logo img {
    max-height: 26px;
    margin-right: 6px;
}

.logo span {
    margin-left: 10px;
    font-size: 26px;
    font-weight: 700;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    padding-left: 20px;
    /* Toggle Sidebar Button */
    /* Search Bar */
}

.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    color: #012970;
}

.header .search-bar {
    min-width: 360px;
    padding: 0 20px;
}

@media (max-width: 1199px) {
    .header .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
        background: white;
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .header .search-bar-show {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }
}

.header .search-form {
    width: 100%;
}

.header .search-form input {
    border: 0;
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 38px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
    border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
}

.header .search-form button i {
    color: #012970;
}

/*--------------------------------------------------------------
    Header Nav
--------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav>ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 22px;
    color: #012970;
    margin-right: 25px;
    position: relative;
}

.header-nav .nav-profile {
    color: #012970;
}

.header-nav .nav-profile img {
    max-height: 36px;
}

.header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
}

.header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
}

.header-nav .notifications {
    inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
}

.header-nav .messages {
    inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .messages .message-item a {
    display: flex;
}

.header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
}

.header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
}

.header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
}

.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #444444;
}

.header-nav .profile .dropdown-header span {
    font-size: 14px;
}

.header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
}

/*--------------------------------------------------------------
    Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: #006699;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.sidebar-authenticated-user {
    color: #fff;
    font-size: small;
    margin-bottom: 10px;
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #d4d4d4;
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #4154f1;
    transition: 0.3;
    background: #f6f9ff;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-item .active {
    color: #669966 !important;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    width: 16px;
    margin-right: 10px;
    color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
    color: #006699;
    background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: #4154f1;
    background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
    color: #4154f1;
}

.sidebar-nav .nav-link a.active {
    color: #f17941 !important;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #e1e1e2;
    transition: 0.3;
    padding: 10px 0 10px 40px;
    transition: 0.3s;
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}

.sidebar-nav .nav-link .collapse .show a.active {
    background-color: #be1b1b !important;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: #669966;
}

.sidebar-nav .nav-content a.active i {
    background-color: #4154f1;
}

.sidebar-nav .content-type-active {
   color: #fff;
}


/*--------------------------------------------------------------
    Content
--------------------------------------------------------------*/

/* Non-transparent table rows when sortable, as it's confusing otherwise when they overlap. */
tbody[data-cms-sortable] > tr {
    background-color: #fff;
}

.sort-handle {
    cursor: move;
    cursor: -webkit-grabbing;
    font-size: smaller;
}

table.table-content td,th {
    vertical-align: middle;
}

td.action-buttons i {
    font-size: 16pt;
    margin-right: 5px;
}

td.content-thumbnail {
    width: 55px;
    text-align: center;
}

td.content-thumbnail img {
    max-width: 50px;
    max-height: 50px;
    border: 1px solid #aab7cf;
}

/*--------------------------------------------------------------
    Footer
--------------------------------------------------------------*/

.footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid #cddfff;
}

.footer .copyright {
    text-align: center;
    color: #012970;
}

.footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #012970;
}


/*--------------------------------------------------------------
    Messages and Alerts
--------------------------------------------------------------*/

.message {
	position: absolute;
	top: 20px;
	z-index: 2023;
	width: 500px;
	left: 0;
	right: 0;
	border-radius: 10px;
	box-shadow: 3px 3px 4px 0px rgba(50, 50, 50, 0.75);
	color: white;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 5px;
	padding-top: 5px;
	text-align: center;
}

.message.success {
	background-color: #54babb;
}

.message.error {
	background-color: #e60050;
}

.message.warning {
	background-color: #f7a000;
}

.message.info {
	background-color: #85c9e8;
}

.cmsAlert {
	position: fixed;
	top: 20px;
	z-index: 2023;
	width: 500px;
	left: 0;
	right: 0;
	border-radius: 10px;
	box-shadow: 3px 3px 4px 0px rgba(50, 50, 50, 0.75);
	color: white;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 5px;
	padding-top: 5px;
	text-align: center;
}

.cmsAlert-success {
	background-color: #54babb;
}

.cmsAlert-error {
	background-color: #e60050;
}

.cmsAlert-warning {
	background-color: #f7a000;
}

.cmsAlert-info {
	background-color: #85c9e8;
}

.cmsAlert-dismiss {
	font-size: 12pt;
	padding-top: 18px;
}

.cmsAlert a {
    color: #fff;
    text-decoration: underline;
}

#messages {
    position: absolute;
    top: 20px;
    left: 50%; /* Dit zorgt ervoor dat het wordt gecentreerd */
    transform: translateX(-50%); /* Dit zorgt ervoor dat het echt gecentreerd is */
    width: 50%; /* Dit bepaalt de breedte van de container, bijvoorbeeld 50% van de breedte van het scherm */
    max-width: 600px; /* Dit voorkomt dat de container te breed wordt */
    z-index: 2023;
    border-radius: 10px;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 5px 0;
    text-align: center;
  }

.alert {
    padding: 10px;
    z-index: 20;
    border-radius: 5px;
    text-align: center;
  }
  
  .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  #messages .alert p {
    margin: 0;
    padding: 0;
  }

/*--------------------------------------------------------------
    Content Admin
--------------------------------------------------------------*/

/* Preview image in admin UI, edit content, for when a Content Item has an image property */

.apl-cms-image-preview {
    max-width: 250px;
    max-height: 150px;
    border: 1px solid #aab7cf;
    border-radius: 5px;
}

/* ********* */
/* Dashboard */
/* ********* */

.apl-cms-dashboard .card-header {
    text-align: center;
}

.apl-cms-dashboard .card-header h5 {
    font-size: medium;
    font-weight: bold;
    color: #012970;
    margin-bottom: 0px;
}

.apl-cms-dashboard .card-block {
	font-size: small;
	color: #666;
    padding-left: 5px;
    padding-right: 5px;
}

/* ******** */
/* CKEditor */
/* ******** */

/* CKEditor can clash with Bootstrap when it comes to the z-index of elements vs modals. We'll set the z-index for the link balloon pop-up ourselves: 
https://stackoverflow.com/a/63779729 
https://stackoverflow.com/a/58446828  <- We applied this one.
*/

body {
    --ck-z-default: 100;
    --ck-z-modal: calc( var(--ck-z-default) + 999 );
}

.category-buttons {
    display: flex;
    justify-content: flex-end; /* Rechts uitlijnen */
    gap: 10px; /* Ruimte tussen de knoppen */
    padding: 10px 0;
}

.category-buttons .btn {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px; /* Ronde hoeken */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtiele schaduw */
    transition: all 0.3s ease-in-out;
}

.category-buttons .btn:hover {
    transform: translateY(-2px); /* Licht omhoog bij hover */
}

.btn-category {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-category:hover {
    background-color: #0056b3;
}

.btn-variant {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-variant:hover {
    background-color: #545b62;
}

.btn-variant-option {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-variant-option:hover {
    background-color: #117a8b;
}

.required label::after {
    content: " *";
    color: red;
    font-weight: bold;
  }
  
  .help-text {
    font-size: 0.85rem;
    font-style: italic;
    color: #6c757d; /* Subtiele grijze kleur */
  }

  .loading-spinner {
    border: 4px solid #f3f3f3; /* Lichte kleur achtergrond */
    border-top: 4px solid #3498db; /* Blauwe kleur voor de draaiende lijn */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite; /* De animatie voor de draaiende beweging */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-wrapper {
    display: inline-block;
    position: relative;
}

.image-wrapper img {
    display: block; /* Zorgt dat de afbeelding zichzelf bepaalt en geen extra witruimte krijgt */
}

.delete-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 18px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.delete-image-btn:hover {
    opacity: 1;
}


