/* **** Modal Cek Domain Button **** */
#domainInput:focus {
    border-color: #007bff !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: white !important;
}

#domainInput:focus + .input-group-append .custom-select {
    border-color: #007bff !important;
    background-color: white !important;
}

#domainInput:focus ~ .input-group-prepend .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

/* Alternative for older browsers */
.input-group:focus-within .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

.input-group:focus-within .custom-select {
    border-color: #007bff !important;
    background-color: white !important;
}

/* Fix for when select is changed without input focus */
.input-group:focus-within #domainInput {
    border-color: #007bff !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: white !important;
}

/* Ensure consistent border when select is focused */
#domainExtension:focus {
    border-color: #007bff !important;
    background-color: white !important;
}

#domainExtension:focus ~ .input-group-prepend .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

#domainExtension:focus + .input-group-prepend .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

/* When select is focused, ensure input also has blue border */
.input-group:has(#domainExtension:focus) #domainInput {
    border-color: #007bff !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: white !important;
}

/* JavaScript-added classes for consistent border */
.input-group.select-focused #domainInput {
    border-color: #007bff !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: white !important;
}

.input-group.select-focused .input-group-prepend .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

.input-group.select-focused .custom-select {
    border-color: #007bff !important;
    background-color: white !important;
}

.input-group.input-focused #domainInput {
    border-color: #007bff !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: white !important;
}

.input-group.input-focused .input-group-prepend .input-group-text {
    border-color: #007bff !important;
    background-color: white !important;
}

.input-group.input-focused .custom-select {
    border-color: #007bff !important;
    background-color: white !important;
}

/* Default border state for all elements */
#domainInput {
    border-color: #ced4da !important;
    border-left: none !important;
    border-right: none !important;
}

.input-group-prepend .input-group-text {
    border-color: #ced4da !important;
}

.custom-select {
    border-color: #ced4da !important;
}

/* Ensure button text stays in one line */
#checkDomainBtn {
    white-space: nowrap !important;
    min-width: auto !important;
}

#checkDomainBtn #btnText {
    white-space: nowrap !important;
}

/* Responsive height for background element */
.responsive-height {
    height: 100% !important;
    /* Mobile default */
}

@media (min-width: 768px) {
    .responsive-height {
        height: 75% !important;
        /* Desktop */
    }
}
/* **** END Modal Cek Domain Button **** */

/* **** Modal POPUP DOMAIN CHECK **** */
/* Modal Container */
.domain-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Modal Icon */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

/* Modal Title */
.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Modal Subtitle */
.modal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Domain Info Box */
.domain-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Domain Name */
.domain-info .domain-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #495057;
}

/* Domain Status */
.domain-info .domain-status {
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Success Modal Styles */
.success-modal .modal-body {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
}

.success-modal .modal-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.success-modal .domain-info {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-modal .domain-info .domain-name {
    color: white;
}

.success-modal .domain-status.available {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Warning Modal Styles */
.warning-modal .modal-body {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
}

.warning-modal .modal-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.warning-modal .domain-info {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.warning-modal .domain-info .domain-name {
    color: white;
}

.warning-modal .domain-status.unavailable {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* **** END Modal POPUP DOMAIN CHECK **** */
