/******************
    User custom CSS // Author Alexander Scharff
    ---------------
    This file contains the complete styling adjustments for the survey.
******************/

/* Original styles for table borders */
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border: 1px solid #dadada;
}

/* General Input Fields */
input[type="text"], input[type="email"], input[type="password"], select, textarea, .form-control {
    border: 1px solid #d1d1d1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensures input fields take up the full width of the container */
    margin: 8px 0;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus, .form-control:focus {
    border-color: #007aff;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.5);
}

/* Radio and Checkbox Styling */
input[type="radio"], input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0f0f5;
    border: 1px solid #d1d1d1;
    cursor: pointer;
    position: relative;
    outline: none;
    vertical-align: middle;
    margin-right: 12px;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="radio"]:checked, input[type="checkbox"]:checked {
    background-color: #07777F;
    border-color: #07777F;
}

input[type="radio"]:checked::after, input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    transform: translate(-50%, -50%);
}

/* Hide radio buttons in the gender selection group */
.ls-answers.gender-button.btn-group-justified input[type="radio"].btn-check {
    display: none !important;
}

/* HIDE RADIO/CHECKBOX INPUTS FOR SELECTION BOXES */
.bootstrap-buttons-div input[type="radio"].btn-check, 
.bootstrap-buttons-div input[type="checkbox"].btn-check {
    display: none !important;
}

/* Dropdowns */
select {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 18px;
    color: #333;
    background-color: #f0f0f5;
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Buttons */
button, .btn {
    border-radius: 12px;
    background-color: #00B9BC;
    color: white;
    padding: 12px 24px;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

button:hover, .btn:hover {
    background-color: #008B8F;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Active Button State */
.btn-primary:active, .btn-primary:checked, .btn-primary.active, .btn-primary:focus {
    background-color: #07777F !important;
    border-color: #07777F !important;
}

/* Next/Previous Buttons */
.action-button {
    background-color: #00B9BC;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-top: 16px;
}

.action-button:hover {
    background-color: #008B8F;
}

/* Progress Bar */
.progress-bar {
    background-color: #00B9BC;
    border-radius: 5px;
}

.progress-bar .progress {
    background-color: #00B9BC;
    border-radius: 5px;
}

/* Sidebar */
.sidebar {
    background-color: #fafafa;
    border-right: 1px solid #d1d1d1;
    padding: 20px;
}

.sidebar .section {
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    font-size: 18px;
    color: #333;
    background-color: #ffffff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .section.active {
    background-color: #00B9BC;
    color: #ffffff;
}

/* Typography */
h1, h2, h3 {
    font-weight: bold;
    color: #07777F;
    margin: 15px 0;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 24px;
}

p, .question-text {
    font-size: 20px;
    line-height: 1.6;
}

/* Question Text Color */
.question-text {
    color: #07777F;
}

/* Question Help Text */
.question-help-container, .ls-questionhelp {
    color: #203556 !important;
    font-size: 16px;
}

/* Answer Text */
.checkbox-item label, .radio-item label {
    color: #000000;
    font-size: 15px;
}

/* Container Background */
#survey-wrapper {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
}

/* Language Selector */
.language-changer {
    display: inline-block;
    padding: 18px 36px;
    background-color: #00B9BC;
    color: white;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border: none;
}

.language-changer:hover {
    background-color: #008B8F;
}

/* Question Container Styling */
.question-container {
    border-radius: 12px;
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Question Index Box */
.question-index-container {
    border-radius: 12px;
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Disabled Group Styling */
.question-index-container .disabled-group {
    background-color: #f0f0f5;
    border-radius: 12px;
    padding: 10px;
    color: #a1a1a1;
    margin-top: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ändert die Farbe von .text-primary auf Schwarz */
.text-primary {
    color: #000000 !important; /* Schwarz */
}
