/******************************************************************************
 * Cascading-Style-Sheets file for Admidio
 *
 * @copyright The Admidio Team
 * @see https://www.admidio.org/
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
 *
 * Here you can edit the look and feel of Admidio
 *
 *****************************************************************************/

:root {
    --admidio-header-font-color: #ffffff;
    --admidio-header-link-color: #263340;
    --admidio-header-link-color-hover: #000000;
    --admidio-menu-bg-color-hover: #3d5266;
    --admidio-menu-font-color-hover: #ffffff;
    --bs-primary: #349aaa;
    --bs-primary-rgb: 52, 154, 170;
    --bs-secondary: #263340;
    --bs-secondary-rgb: 38, 51, 64;
    --bs-tertiary: #e9ecef;
    --bs-tertiary-rgb: 233, 236, 269;
    --bs-body-color: #263340;
    --bs-body-bg: #ffffff;
    --bs-link-color: #349aaa;
    --bs-link-color-rgb: 52, 154, 170;
    --bs-link-hover-color: #4fb8c9;
    --bs-link-hover-color-rgb: 79, 184, 201;
    --bs-focus-ring-color: #c4e9ef;
}

#adm_installation_header {
    background-color: var(--bs-primary);
    color: var(--admidio-header-font-color);
}

.admidio-area {
    width: 100%;
}

#adm_installation_body .admidio-container {
    background-color: var(--admidio-header-font-color);
}

.admidio-container {
    max-width: 750px;
    padding: 1rem;
}

.admidio-container img {
    padding-right: 1.5rem;
}

#adm_installation_headline {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    height: 100%;
    vertical-align: bottom;
}

.admidio-content {
    order: 1;
}

#adm_installation_message h3, #adm_installation_message p {
    margin-bottom: 2rem;
}
/***********************************/
/* Default tags */
/***********************************/

a {
    text-decoration: none;
}

.btn, .btn:hover {
    color: var(--bs-body-bg);
}

.btn-primary {
    background-color: var(--bs-link-color);
    border-color: var(--bs-link-color);
}

.btn-primary:hover {
    background-color: var(--bs-link-hover-color);
    border-color: var(--bs-link-hover-color);
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.bg-info {
    background-color: var(--bs-secondary) !important;
}

/* default distance between elements */
.admidio-blog, .admidio-field-group, .pagination,
.admidio-info-created-edited, .admidio-img-presenter,
.navbar-filter, .table-responsive, .admidio-menu-function-node,
.dt-container, .admidio-margin-bottom, .admidio-content-header,
.admidio-content-subheader, .tab-content {
    margin-bottom: 2rem;
}

/* add 5px distance to all icons within a icon text combination */
.admidio-icon-chain, .nav-link .bi, .btn .bi, .alert .bi,
.admidio-profile-user-right .bi, .checkbox .bi, input[type="radio"],
.accordion .bi, .form-control-static > .bi  {
    margin-right: 0.5rem;
}

.admidio-icon {
    padding: 3px;
}

.icon-link .bi {
    height: initial;
}

.admidio-icon-link {
    padding: 3px;
    cursor: pointer;
}

.admidio-icon-link:hover {
    padding: 3px;
    border-radius: 50%;
    background-color: var(--bs-tertiary);
    filter: brightness(92%);
}

.alert-info {
    background-color: color-mix(in srgb, var(--bs-primary) 40%, white);
    border-color: color-mix(in srgb, var(--bs-primary) 70%, white);
}

/* show vertical btn group in mobile view */
@media (max-width: 500px)
{
    .btn-group {
        display: block;
    }

    .btn-group .btn {
        display: block;
        float: none;
        width: 100%;
    }
}

/***********************************/
/* Mark mandatory fields */
/***********************************/
.admidio-form-group-required .col-form-label:after,
.admidio-form-group-required .form-label:after,
.admidio-form-group-required > .form-check-label:after,
.admidio-form-required-notice span:after {
    font-family: "bootstrap-icons", serif;
    font-size: 6pt;
    content: "\F287";
    color: #d91515;
    white-space: nowrap;
    vertical-align: super;
    margin-left: 3px;
}

.admidio-form-required-notice {
    font-size: 9pt;
    margin: 0.5rem 0;
    text-align: right;
    width: 100%;
    display: inline-block;
    max-width: 1000px;
}

/***********************************/
/* Forms */
/***********************************/

.form-control:focus, .form-select:focus, button:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--bs-link-hover-color);
}

.form-switch .form-check-input, .form-check-inline input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

input[type=date], input[type=number] {
    max-width: 180px;
}

input[type=time] {
    max-width: 100px;
}

.form-switch .form-check-input:not(:checked) {
    background-color: white !important;
    border-color: #999999 !important;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(125,125,125,1.0)'/></svg>");

}

.btn-primary:focus {
    background-color: var(--bs-link-color) !important;
    border-color: var(--bs-link-color) !important;;
}

label {
    font-weight: bold;
}

@media (min-width: 768px) {
    .form-control-small {
        width: 50%;
    }
}

.form-control-static {
    margin-bottom: 0;
}

.ck-editor__editable_inline {
    min-height: 300px;
}

/***********************************/
/* Cards */
/***********************************/

.admidio-blog, .admidio-field-group, .admidio-blog .card-header, .admidio-blog .card-body,
.admidio-blog .card-footer, .admidio-field-group .card-header, .admidio-field-group .card-body,
.admidio-field-group .card-footer {
    border: none;
    background-color: var(--bs-tertiary);
}

.card-header {
    font-weight: bold;
    font-size: 150%;
}

.card-header .bi {
    margin-right: 0.5rem;
}

.card-header .float-end .bi {
    margin-right: 0;
}

.admidio-blog .card-footer {
    font-size: 80%;
}

.admidio-field-group .list-group-item {
    border: none;
    background-color: var(--bs-tertiary);
    padding: 0 0 1rem 0;
}

.admidio-field-group .list-group-item .list-group-item {
    padding: 0;
}

.card .admidio-info-created-edited {
    margin-bottom: 0;
    margin-top: 0;
}

.card-body .list-group-item {
    padding-left: 0;
    background-color: var(--bs-tertiary);
}

.card-footer .admidio-info-created-edited {
    font-size: 100% !important;
}

.admidio-blog-comment .card-header, .admidio-blog-comment .card-body, .admidio-blog-comment .card-footer {
    background-color: var(--bs-tertiary);
}

.admidio-blog-comment .card-header {
    font-size: 120%;
    padding-bottom: 0;
}

.admidio-blog-comment {
    margin-bottom: 1rem;
}

.admidio-blog .card-body > .btn {
    margin-top: 1rem;
    display: block;
    text-align: left;
}

.admidio-card {
    border: none;
    background-color: var(--bs-tertiary);
    margin: 1rem 0;
    height: 95%;
}

.admidio-card li {
    padding-left: 0;
    padding-right: 0;
    background-color: var(--bs-tertiary);
}

/***********************************/
/* Accordion */
/***********************************/

.accordion {
    --bs-accordion-bg: var(--bs-body-bg);
    --bs-accordion-btn-color: var(--bs-link-color);
    --bs-accordion-active-color: var(--bs-tertiary);
    --bs-accordion-active-bg: var(--bs-secondary);
}

.accordion-button {
    font-size: 1.3rem;
}

.accordion-button:focus {
    box-shadow: none;
}

/***********************************/
/* Navbar */
/***********************************/

.navbar-filter {
    background-color: var(--bs-tertiary);
}

.nav-tabs .nav-link {
    background-color: var(--bs-tertiary);
    font-weight: bold;
}

.navbar .form-floating.admidio-form-group {
    margin-right: 0.5rem;
}

/***********************************/
/* Various settings */
/***********************************/

.table td, .table th {
    color: var(--bs-secondary);
}

.admidio-opacity-reduced {
    opacity: 0.4;
}

.list-unstyled li {
    padding-top: 0.5rem;
}

.admidio-info-created {
    display: block;
}

.admidio-info-created-edited {
    font-size: 80%;
}

.dropdown-item {
    color: var(--bs-secondary);
    background: var(--bs-body-bg);
}

.popover {
    --bs-popover-bg: var(--bs-body-bg);
    --bs-popover-header-bg: var(--bs-tertiary);
}

.tooltip {
    --bs-tooltip-bg: var(--bs-secondary);
}

.breadcrumb {
    --bs-breadcrumb-bg: var(--bs-tertiary);
    --bs-breadcrumb-padding-y: 0.75rem;
    --bs-breadcrumb-padding-x: 1rem;
}

.breadcrumb-item {
    display: block;
}

.badge {
    --bs-badge-padding-y: .25em;
    --bs-badge-padding-x: .5em;
    margin-left: 0.5rem;
}

.page-item.active .page-link {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

#adm_imprint {
    margin-bottom: 2rem;
    font-size: 80%;
}

.admidio-info-icon {
    color: #4496dd;
    cursor: pointer;
    margin-left: 0.5rem;
}

#adm_password_strength {
    margin-top: 0.5rem;
}

#adm_password_strength_minimum {
    position: absolute;
    border: 9px solid transparent;
    border-left-color: var(--bs-body-color);
    border-right-width: 0;
    margin-top: 3px;
}

.progress {
    height: 1.5rem !important;
    background-color: var(--bs-tertiary);
    filter: brightness(92%);
}
