﻿.select2-container {
    z-index: 2050 !important;
}

.autocomplete-container {
    /* relative position for at de absolut positionerede forslag får korrekt placering.*/
    position: relative;

}

    .autocomplete-container input {
        /* Både input og forslag får samme bredde som omkringliggende DIV */
        width: 100%;
        box-sizing: border-box;
    }

.dawa-autocomplete-suggestions {
    margin: 0.3em 0 0 0;
    padding: 0;
    text-align: left;
    border-radius: 0.3125em;
    background: #fcfcfc;
    box-shadow: 0 0.0625em 0.15625em rgba(0,0,0,.15);
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1060;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: 200px; /* Maksimum yükseklik sınırı */
}

/* Header stilleri */
.dawa-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0.8em;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.3125em 0.3125em 0 0;
}

.dawa-suggestions-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
}

.dawa-close-btn {
    padding: 0.2em 0.4em;
    font-size: 0.7em;
    background: #6c757d;
    border: 1px solid #6c757d;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    position: relative;
}

.dawa-close-btn:hover {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
}

.dawa-close-btn span {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.dawa-close-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 500;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.dawa-close-link:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

/* Tagify Style Multi-Select */
.tagify-style-container {
    border: 1px solid #e1e3ea;
    border-radius: 0.475rem;
    background-color: #f8f9fa;
    min-height: 42px;
    padding: 4px 8px;
}

.tagify-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tagify-tag {
    display: inline-flex;
    align-items: center;
    background: #17a1c7;
    color: white;
    border-radius: 0.425rem;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.tagify-tag-text {
    margin-right: 4px;
}

.tagify-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tagify-tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tagify-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
}

.tagify-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.tagify-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e3ea;
    border-radius: 0.475rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    z-index: 1060;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.tagify-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f4;
    transition: background-color 0.15s ease;
}

.tagify-dropdown-item:hover {
    background-color: #f8f9fa;
}

.tagify-dropdown-item:last-child {
    border-bottom: none;
}

/* Liste stilleri */
.dawa-suggestions-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

/* Scroll bar stilleri */
.dawa-suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.dawa-suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dawa-suggestions-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dawa-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion {
    margin: 0;
    list-style: none;
    cursor: pointer;
    padding: 0.6em 0.8em;
    color: #333;
    border: 0.0625em solid #ddd;
    border-bottom-width: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    border-bottom-width: 0.0625em;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion.dawa-selected,
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:hover {
    background: #f0f0f0;
    transition: background-color 0.2s ease;
}

/* SendMessageForm Autocomplete Styles */
.send-message-autocomplete-dropdown {
    background: white;
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    position: absolute;
    width: 100%;
    top: 100%;
    margin-top: 2px;
}

.send-message-autocomplete-dropdown .list-group-item {
    border: none;
    border-bottom: 1px solid #f7f9fc;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.send-message-autocomplete-dropdown .list-group-item:hover {
    background-color: #f7f9fc;
}

.send-message-autocomplete-dropdown .list-group-item:last-child {
    border-bottom: none;
}

/* SendMessageForm SMS Character Counter */
.sms-char-counter .badge {
    transition: all 0.3s ease;
}

.sms-char-counter .badge-success {
    background-color: #50cd89 !important;
}

.sms-char-counter .badge-warning {
    background-color: #ffc700 !important;
}

.sms-char-counter .badge-danger {
    background-color: #f1416c !important;
}

/* SendMessageForm Dropzone Styles */
.send-message-dropzone-item {
    display: none;
}

.send-message-dropzone-cancel {
    display: none;
}

/* SendMessageForm Quill Editor */
.send-message-quill-editor {
    min-height: 350px;
}

/* SendMessageForm Email Compose Styles */
.email-compose-section {
    background: white;
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
}

.compose-field {
    border-bottom: 1px solid #e4e6ef;
    min-height: 50px;
}

.compose-field:last-child {
    border-bottom: none;
}

.compose-label {
    width: 75px;
    font-weight: 600;
    color: #181c32;
}