/*
    Custom Buttons Border Radius
*/

$buttons: ("btn-success", "btn-info", "btn-primary", "btn-warning", "btn-danger");
@each $class-name in $buttons {
    .#{$class-name} {
        border-radius: var(--border-radius) !important;
    }
}

.modal-backdrop {
    background-color: #000;
    opacity: 0.7 !important;
}
.modal-content {
    background-color: var(--card-background);
    .modal-header {
        .modal-title,
        .close {
            color: var(--card-color) !important;
        }
    }
}
.form-group,
.input-group {
    textarea,
    select,
    input,
    .form-control {
        display: block;
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-weight: 400;
        line-height: 1.5;
        font-size: 16px;
        color: var(--input-color);
        background-color: var(--input-background);
        background-clip: padding-box;
        border: 1px solid var(--input-border-color);
        border-radius: var(--border-radius);
        transition: all 0.1s linear;
        &:focus {
            color: var(--input-color);
            background-color: var(--input-focus-background);
            border: solid 1px var(--input-focus-border-color);
            outline: 0;
            box-shadow: var(--input-focus-shadow);
        }
    }
    select,
    input {
        height: 48px;
    }
    label {
        font-size: 16px;
    }
}

textarea {
    height: auto;
}


// Input Group
.input-group {
    .input-group-text {
        background-color: var(--input-focus-background);
        border: 1px solid var(--border-color);
    }
}
.alert-dismissible .close {
    top: -4px;
}
.table {
    margin-bottom: 0px;
}
.dropdown-toggle::after {
    display: none !important;
}
.modal {
    padding-right: 0px !important;
}
.progress {
    border-radius: var(--border-radius) !important;
}
.table-bordered td,
.table-bordered th {
    border: 1px solid var(--border-color) !important;
}
.btn-group-sm > .btn,
.btn-sm {
    line-height: 1.3 !important;
}
.badge-secondary {
    background-color: var(--btn-secondary-background);
    color: var(--btn-secondary-color);
    &:hover {
        background-color: var(--btn-main-background) !important;
        color: var(--btn-main-color) !important;
    }
}
.fade:not(.show) {
    display: none;
}
.border {
    border: 1px solid var(--border-color) !important;
}
.form-group input[type="button"] {
    display: block;
    width: auto;
    height: auto;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--btn-main-color);
    background-color: var(--btn-main-background) !important;
    background-clip: padding-box;
    border: none;
    border-radius: var(--border-radius);
}
.form-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.table {
    color: var(--color);
}
.dropdown-menu {
    background-color: var(--card-background);
    border: var(--border-color) solid 1px;
    border-radius: var(--border-radius);
    .dropdown-item {
        color: var(--card-color) !important;
    }
    .dropdown-divider {
        border-top: 1px solid var(--border-color);
    }
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--main-color);
    background-color: #fff;
    font-weight: bold;
    border-color: var(--main-color) var(--main-color) transparent;
    // position: relative;
    // &::after{
    //     content: '';
    //     position: absolute;
    //     top: -8px;
    //     right: 8px;
    //     font-size: 10px;
    //     background-color:#2579cd ;
    //     color: #fff;
    //     border-radius: 50%;
    //     width: 15px;
    //     height: 15px;

    // }
}
