/* public/chats/create-chat/create-chat.css */

.create-chat-widget-root {
    position: relative;
    z-index: 46;
}

.create-chat-launcher {
    cursor: pointer;
    color: #ffffff;
    border: 0;
    font-size: 14px;
    position: fixed;
    bottom: 52px;
    left: 10px;
    z-index: 46;
    border-radius: 999px;
    min-width: 130px;
    height: 42px;
    padding: 10px 16px;
    background: #373d4d;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.create-chat-launcher:hover {
    transform: translateY(-1px);
    background: #414756;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.create-chat-launcher:active {
    transform: translateY(0);
}

.create-chat-launcher img {
    max-width: 20px;
    max-height: 20px;
    display: block;
}

.create-chat-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.create-chat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.create-chat-modal-dialog {
background-image: linear-gradient(45deg, #313644, rgb(150, 158, 182));
    padding: 30px;
    border-radius: 20px;
    max-width: 290px;
    width: clamp(300px, 90vw, 400px);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.create-chat-modal-overlay.active .create-chat-modal-dialog {
    transform: scale(1);
}

.create-chat-modal-close {
position: absolute;
    top: 0;
    right: 0;
    width: 33px;
    height: 30px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    background: #7c8399;
    display: flex;
    line-height: 0;
    padding: 14px;
    font-size: 24px;
    border-radius: 0 20px 0 10px;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    box-shadow: inset 1px 0px 5px 0px #0000002e;
}

.create-chat-modal-close:hover {
    background-color: #c40808;
    color: #ffffff;
}

.create-chat-modal-title {
    font-size: 30px;
    color: #ffffff;
    margin: 0;
    font-weight: 100;
}

.create-chat-modal-name-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.create-chat-modal-name-input:focus {
    border-color: #4CAF50;
}

.create-chat-modal-name-input.error {
    border-color: #e74c3c;
}

.create-chat-modal-warning {
    color: #e74c3c;
    font-size: 0.9rem;
    margin: -10px 0 0 0;
    display: none;
}

.create-chat-modal-warning.active {
    display: block;
}

.create-chat-modal-checkbox-row {
    width: 100%;
    text-align: left;
    margin-top: -6px;
}

.create-chat-modal-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.create-chat-modal-checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.create-chat-modal-field {
    width: 100%;
    text-align: left;
}

.create-chat-modal-field.is-hidden {
    display: none;
}

.create-chat-modal-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.create-chat-modal-category-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    color: #111827;
}

.create-chat-modal-category-select:focus {
    border-color: #22c55e;
}

.create-chat-modal-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #15cdd714;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
    border: 1px dashed #15cdd7;
    cursor: pointer;
    position: relative;
}

.create-chat-modal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-chat-modal-initial-letter {
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
}

.create-chat-modal-file-input {
    display: none;
}

.create-chat-modal-placeholder-text {
    color: #ffffff;
    line-height: 1.2;
    font-size: 18px;
}

.create-chat-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0;
}

.create-chat-modal-submit {
padding: 12px 25px;
    font-size: 17px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 2px 5px #00000026;
    color: #000000;
    background: hsl(189 100% 50%);
    box-shadow: inset 0 -2px 10px #ffffffeb;
    width: 230px;
    height: 56px;
    font-size: 22px;
    border-left: 1px solid #00000085;
    border-right: 1px solid #000000;
    border-top: 1px solid #ffffff;
}

.create-chat-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 -2px 10px #ffffffeb, 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .create-chat-launcher {
        bottom: 58px;
        left: 8px;
        min-width: 120px;
        height: 40px;
        padding: 10px 14px;
    }

    .create-chat-modal-dialog {
        width: calc(100vw - 24px);
        padding: 26px 18px 22px 18px;
    }

    .create-chat-modal-submit {
        width: 100%;
    }
}