/* Wrapper */
.ai-domain-wrapper {
    margin-bottom: 25px;
    text-align: center;
}

/* Toggle Tabs */
.ai-toggle {
    display: inline-flex;
    background: #f5f7fa;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-tab {
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: 0.3s ease;
}

.ai-tab.active {
    background: #16a085;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

/* AI Box */
.ai-box {
    display: none;
    margin-top: 20px;
}

/* Input Group */
.ai-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    background: #f5f7fa;
    border-radius: 50px;
    padding: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 10px;
}

.ai-input-group input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    outline: none;
    background: transparent;
    font-size: 16px;
}

.ai-input-group input:focus {
    border-color: #16a085;
    box-shadow: 0 0 8px rgba(22, 160, 133, 0.2);
}

.ai-input-group button {
    padding: 12px 30px;
    border-radius: 40px;
    border: none;
    background: #16a085;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input-group button img {
    width: 20px;
    height: 20px;
}

button#aiDomainBtn {
    display: flex;
    align-items: center;
    gap: 10px;
}

button#aiDomainBtn img {
    width: 20px;
    filter: invert(1);
}
.ai-tab.active img{
    filter: unset;
}

.ai-input-group button:hover {
    background: #138d75;
}

/* AI Results */
#aiResult {
    margin-top: 15px;
    font-size: 14px;
}

#aiResult ul {
    list-style: none;
    padding: 0;
}

#aiResult li {
    padding: 6px 0;
    color: #333;
    cursor: pointer;
}

#aiResult li:hover {
    color: #16a085;
}


/*wgsAiModalStyle*/

.wgs-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.wgs-modal-content {
    background: #fff;
    width: 600px;
    margin: 5% auto;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial;
}

.wgs-modal-header {
    background: #1e73d8;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgs-ai-icon {
    width: 18px;
    height: 18px;
}

.wgs-modal-body {
    padding: 15px;
}

.wgs-modal-body textarea {
    width: 99%;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.wgs-modal-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #eee;
}

.wgs-modal-footer button {
    margin-left: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-close {
    background: #d9534f;
    color: #fff;
}

#askAiBtn {
    background: #5bc0de;
    color: #fff;
}

#copyAiReply {
    background: #337ab7;
    color: #fff;
}

.wgs_ai_logo {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Make heading container relative */
h4.bbbaslik {
    position: relative;
}

/* Button aligned to right */
.wgs-ai-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #4f46e5;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#summarizeKbArticle {
    right: 12% !important;
}

/* Hover */
.wgs-ai-btn:hover {
    background: #4338ca;
}

/* Icon white */
.wgs-ai-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* Prevent text overlap */
h4.bbbaslik strong {
    display: inline-block;
    padding-right: 120px;
}

.bbbaslik {
    width: 100% !important;
}

.summarizeDiv label {
    font-size: 18px;
    line-height: 28px;
    color: #141414;
    font-weight: 800;
    margin-bottom: 10px;
}

.summarizeDiv textarea {
    background: #f5f5f5;
    border: transparent;
    padding: 20px;
    color: #777;
    font-size: 14px;
    line-height: 24px;
    resize: none;
    width: 98%;
}



/* Container */
.wgs-domain-list {
    max-width: 80%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each item */
.wgs-domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
}

/* Hover effect */
.wgs-domain-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Domain name */
.domain-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Button */
.domain-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

/* Hover */
.domain-btn:hover {
    background: #4338ca;
}

.domain-left {
    flex: 0 0 50%;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

/* Right side container */
.domain-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.domain-status {
    min-width: 110px;
    text-align: left;
    font-weight: 600;
}

.domain-name {
    display: block;
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
}

.available {
    color: #4CAF50;
    font-weight: 600;
}

.not-available {
    color: #e74c3c;
    font-weight: 600;
}

.unknown {
    color: #999;
    font-weight: 500;
}

.domain-price {
    min-width: 90px;
    text-align: center;
    color: #2c3e50;
}

.domain-register-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.domain-register-btn:hover {
    background: #4338ca;
}

.loadMoreBtn {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.loadMoreBtn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loadMoreBtn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

.loadMoreContainer {
    text-align: center;
    margin: 20px 0;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.wgs-modal-header{
    font-size: 14px;
}
.wgs-modal-header .wgs-ai-icon {
    width: 30px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.wgs-modal-header p{
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
}
.ai-tab.active img {
    filter: unset !important;
}
.wgs-modal-body textarea{
    padding: 5px;
}
.wgs-modal-footer{
    display: flex;
    justify-content: end;
}
.wgs-modal-footer button{
    display: flex;
    align-items: center;
    gap: 5px;
}
button#askAiBtn img {
    width: 20px;
}
.wgs-modal-footer button{
    display: flex;
}
#askAiBtn img {
    width: 20px;
}
button#domainpage-aiDomainBtn img {
    width: 20px;
}

button#domainpage-aiDomainBtn {
    display: flex;
    align-items: center;
    gap: 5px;
}
button#domainpage-aiDomainBtn img {
    filter: invert(1);
}