/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* Brand colors */
:root {
    --brand-primary: #007bff;    /* Your primary color */
    --brand-secondary: #6c757d;  /* Your secondary color */
}

body:after {
  content: "CSS LOADED!";
  position: fixed;
  top: 0;
  right: 0;
  background: red;
  color: white;
  padding: 5px;
  z-index: 9999;
}

/* Main background */
body {
    background-color: #ffffff !important;
}

/* Question containers */
.question-container {
    background-color: #f8f9fa !important;
}

/* Navigation buttons */
.btn-primary {
    background-color: #AD8543 !important;
    border-color: #AD8543 !important;
}

/* Secondary buttons */
.btn-default {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
}

/* Header/Navbar */
.navbar-default {
    background-color: #AD8543 !important;
}

/* Text colors */
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
}

/* Progress bar */
.progress-bar {
    background-color: #AD8543 !important;
}

/* Links */
body a {
    color: #AD8543 !important;
}

body a:hover {
    color: #8f6d36 !important;
}

/* Active navigation elements */
body .nav > li.active > a {
    background-color: #AD8543 !important;
}

/* Direct color application without variables */
body .navbar-default {
    background-color: #AD8543 !important;
}

body .btn-primary {
    background-color: #AD8543 !important;
    border-color: #AD8543 !important;
}

body .btn-primary:hover,
body .btn-primary:focus {
    background-color: #8f6d36 !important;
    border-color: #8f6d36 !important;
}

body .progress .progress-bar {
    background-color: #AD8543 !important;
}

body .navbar-default .navbar-brand,
body .navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
}

body .question-title-container {
    border-left: 5px solid #AD8543 !important;
}

body .radio input[type="radio"]:checked + label::after {
    background-color: #AD8543 !important;
}

body .checkbox input[type="checkbox"]:checked + label::before {
    background-color: #AD8543 !important;
    border-color: #AD8543 !important;
}

/* Links */
body a {
    color: #AD8543 !important;
}

body a:hover {
    color: #8f6d36 !important;
}

/* Active navigation elements */
body .nav > li.active > a {
    background-color: #AD8543 !important;
}

/* Remove button outline on hover/focus */
.btn:focus, 
.btn:hover,
.btn:active,
.btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.form-check-input:focus {
    border-color: #000000 !important;
    box-shadow: none !important;
}

/* Language selector styling */
#language-changer-select {
    color: #AD8543 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    position: relative !important;
}

/* Custom dropdown arrow container */
.language-changer {
    position: relative !important;
}

.language-changer::after {
    content: '▼' !important;
    color: #AD8543 !important;
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    font-size: 12px !important;
}

#language-changer-select:focus {
    box-shadow: none !important;
}

#language-changer-select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Radio button styling */
input[type="radio"]:checked ~ .radio-label {
    color: #AD8543 !important;
}

input[type="radio"]:checked {
    accent-color: #AD8543 !important;
}

input[type="radio"] {
    border-color: #AD8543 !important;
}

input[type="radio"]:checked + .radio-label::before,
input[type="radio"]:checked + .radio-label::after {
    border-color: #AD8543 !important;
    background-color: #AD8543 !important;
}
