/**
 * Admin styles for WH Sticky WhatsApp Button.
 *
 * @package WH_Sticky_WAButton
 */

/* General Admin Styles */
.whello-sticky-chat-button-admin {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.whello-sticky-chat-button-admin-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #fff;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.whello-sticky-chat-button-logo {
    margin-right: 20px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.whello-sticky-chat-button-logo img {
    width: 60px;
    height: auto;
}

.whello-sticky-chat-button-header-content h2 {
    margin-top: 0;
    color: #23282d;
}

.whello-sticky-chat-button-header-content p {
    margin-bottom: 0;
    color: #646970;
    font-size: 14px;
}

.whello-sticky-chat-button-admin-content {
    background: #fff;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding: 20px;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.whello-sticky-chat-button-tabs {
    margin-top: 20px;
}

.whello-sticky-chat-button-tabs-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.whello-sticky-chat-button-tabs-nav li {
    margin: 0 4px 0 0;
}

.whello-sticky-chat-button-tabs-nav li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #646970;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.whello-sticky-chat-button-tabs-nav li a:hover,
.whello-sticky-chat-button-tabs-nav li a:focus {
    background: #fff;
    color: #135e96;
}

.whello-sticky-chat-button-tabs-nav li a.ui-tabs-active {
    background: #fff;
    color: #135e96;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.whello-sticky-chat-button-tabs-nav .ui-tabs-active a {
    background-color: #fff;
    color: #25D366;
    border-color: #ccc;
    border-bottom-color: #fff;
    font-weight: 600;
}

.whello-sticky-chat-button-tab-content {
    padding: 20px 0;
}

/* Cards */
.whello-sticky-chat-button-card {
    background: #f9f9f9;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.whello-sticky-chat-button-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 18px;
    color: #23282d;
}

/* Form Fields */
.whello-sticky-chat-button-field-row {
    margin-bottom: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
}

.whello-sticky-chat-button-field {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 250px;
}

.whello-sticky-chat-button-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #23282d;
}

.whello-sticky-chat-button-field input[type="text"],
.whello-sticky-chat-button-field input[type="url"],
.whello-sticky-chat-button-field textarea,
.whello-sticky-chat-button-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
}

.whello-sticky-chat-button-field textarea {
    min-height: 100px;
    resize: vertical;
}

.whello-sticky-chat-button-field input[type="text"]:focus,
.whello-sticky-chat-button-field input[type="url"]:focus,
.whello-sticky-chat-button-field textarea:focus,
.whello-sticky-chat-button-field select:focus {
    border-color: #2271b1;
    -webkit-box-shadow: 0 0 0 1px #2271b1;
    -moz-box-shadow: 0 0 0 1px #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Radio and Checkbox Styles */
.whello-sticky-chat-button-radio-group {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
}

.whello-sticky-chat-button-radio-group label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.whello-sticky-chat-button-radio-group input[type="radio"] {
    margin-right: 6px;
}

/* Toggle Switch */
.whello-sticky-chat-button-toggle-switch {
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
}

.whello-sticky-chat-button-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.whello-sticky-chat-button-toggle-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    margin-right: 10px;
    -webkit-transition: .4s;
    -o-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
}

.whello-sticky-chat-button-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: .4s;
    -o-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
}

.whello-sticky-chat-button-toggle-switch input:checked+.whello-sticky-chat-button-toggle-slider {
    background-color: #2271b1;
}

.whello-sticky-chat-button-toggle-switch input:checked+.whello-sticky-chat-button-toggle-slider:before {
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    transform: translateX(20px);
}

/* Tooltip */
.whello-sticky-chat-button-tooltip {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background: #e5e5e5;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 5px;
    cursor: help;
}

/* Tooltip Popup */
.whello-sticky-chat-button-tooltip-popup {
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.whello-sticky-chat-button-tooltip-popup.ui-tooltip {
    max-width: 250px;
}

.ui-tooltip-content {
    position: relative;
}

.ui-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

/* Two Column Layout */
.whello-sticky-chat-button-two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.whello-sticky-chat-button-column-left {
    flex: 1;
    min-width: 300px;
}

.whello-sticky-chat-button-column-right {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 32px;
    align-self: flex-start;
}

/* Preview Section */
.whello-sticky-chat-button-preview {
    margin: 30px 0;
    text-align: center;
}

.whello-sticky-chat-button-preview h2 {
    margin-bottom: 15px;
}

.whello-sticky-chat-button-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 15px;
    background: #f6f7f7;
    padding: 40px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    border: 1px dashed #ddd;
    position: relative;
    height: 150px;
}

.whello-sticky-chat-button-preview-button {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 20px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    background-color: #25D366;
    color: #ffffff;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: 20px;
    /* right: 20px; */
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


.whello-sticky-chat-button-preview-text {
    font-weight: 600;
}



/* Icon Preview */
.whello-sticky-chat-button-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;        
}

.whello-sticky-chat-button-icon-text.whello-sticky-chat-button-preview-icon {        
    margin-right: 8px;
}

/* Advanced Settings */
.advanced-settings {
    margin-top: 20px;
    clear: both;
}

/* Save Button */
#whello-sticky-chat-button-save-settings {
    background-color: #25D366;
    border-color: #1da851;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: auto;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

#whello-sticky-chat-button-save-settings:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Select2 Customization */
.whello-sticky-chat-button-select2 {
    width: 100%;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2271b1;
    -webkit-box-shadow: 0 0 0 1px #2271b1;
    -moz-box-shadow: 0 0 0 1px #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .whello-sticky-chat-button-admin-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }

    .whello-sticky-chat-button-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .whello-sticky-chat-button-field-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .whello-sticky-chat-button-field {
        min-width: 100%;
    }

    .whello-sticky-chat-button-radio-group {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }
}