/* Shopglut Admin - Slider Settings Styles */

/* Main container styles */
.shopglut-admin-contents {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.shopglut-header-area {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    padding: 20px;
}

.shopglut-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 15px;
}

.shopglut-back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #3c434a;
    background-color: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 15px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.shopglut-back-button:hover {
    background-color: #f0f0f1;
    color: #135e96;
    border-color: #8c8f94;
}

.shopglut-back-button .dashicons {
    margin-right: 5px;
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.shopglut-header-title {
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: #1d2327;
}

.shopglut-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.shopglut-header-meta-item {
    display: flex;
    align-items: center;
}

.shopglut-header-meta-label {
    font-weight: 600;
    margin-right: 10px;
    color: #50575e;
}

.shopglut-header-meta-value {
    color: #3c434a;
}

.shopglut-shortcode-container {
    flex: 1;
}

.shopglut-shortcode {
    display: flex;
    align-items: center;
    background-color: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 6px 12px;
    max-width: 400px;
}

.shopglut-shortcode code {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #3c434a;
}

.shopglut-copy-shortcode {
    background: none;
    border: none;
    cursor: pointer;
    color: #787c82;
    margin-left: 10px;
    padding: 0;
    transition: color 0.2s ease;
}

.shopglut-copy-shortcode:hover {
    color: #2271b1;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .shopglut-header-meta {
        flex-direction: column;
        gap: 10px;
    }

    .shopglut-header-meta-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .shopglut-header-meta-label {
        margin-bottom: 5px;
    }

    .shopglut-shortcode {
        max-width: 100%;
        width: 100%;
    }
}

.shopglut-admin-contents .updated {
    border-left: 4px solid #46b450;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 5px 0 15px;
    padding: 1px 12px;
}

/* Settings container with flexbox layout */
.shopglut-settings-container {
    display: flex;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

/* Left sidebar styles */
.shopglut-settings-sidebar {
    min-width: 200px;
    background: #f9f9f9;
    border-right: 1px solid #e5e5e5;
}

.shopglut-settings-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopglut-settings-tabs li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.shopglut-settings-tabs li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
}

.shopglut-settings-tabs li a:hover {
    background-color: #f1f1f1;
    color: #0073aa;
}

.shopglut-settings-tabs li.active a {
    background: #fff;
    color: #0073aa;
    font-weight: 600;
    margin-right: -1px;
    box-shadow: inset 3px 0 0 #0073aa;
}

/* Content area styles */
.shopglut-settings-content {
    flex: 1;
    padding: 20px;
}

.shopglut-settings-section {
    display: none;
}

.shopglut-settings-section.active {
    display: block;
}

.shopglut-settings-section h2 {
    font-size: 18px;
    font-weight: 400;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Form table styles */
.shopglut-admin-contents .form-table {
    margin-top: 0;
    background: #fff;
}

.shopglut-admin-contents .form-table th {
    font-weight: 400;
    padding: 15px 10px 15px 0;
    width: 200px;
    vertical-align: top;
}

.shopglut-admin-contents .form-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.shopglut-admin-contents .form-table input[type="text"],
.shopglut-admin-contents .form-table input[type="number"] {
    width: 100%;
    max-width: 400px;
}

.shopglut-admin-contents .form-table input[type="checkbox"] {
    margin-top: 4px;
}

.shopglut-admin-contents .form-table .description {
    font-style: italic;
    color: #666;
    margin: 5px 0 0;
    font-size: 13px;
}

/* Submit button styles */
.shopglut-admin-contents .submit {
    padding: 10px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.shopglut-admin-contents .button-primary {
    background: #0085ba;
    border-color: #0073aa #006799 #006799;
    box-shadow: 0 1px 0 #006799;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
    padding: 5px 14px;
    height: auto;
    line-height: 1.4;
    font-size: 14px;
    transition: all 0.2s ease;
}

.shopglut-admin-contents .button-primary:hover {
    background: #0096d6;
    border-color: #0073aa;
}

/* Preview area styles */
.shopglut-preview-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    padding: 20px;
}

.shopglut-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.shopglut-preview-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}

.shopglut-preview-actions {
    display: flex;
    gap: 10px;
}

.shopglut-preview-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: #0073aa;
}

.shopglut-preview-toggle .dashicons {
    margin-right: 5px;
}

.shopglut-preview-content {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.shopglut-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #666;
    text-align: center;
}

.shopglut-preview-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.shopglut-device-switcher {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.shopglut-device-button {
    border: 1px solid #ddd;
    background: #f7f7f7;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.shopglut-device-button:hover {
    border-color: #999;
}

.shopglut-device-button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Preview sizes */
.shopglut-preview-content.desktop {
    width: 100%;
}

.shopglut-preview-content.tablet {
    width: 768px;
    max-width: 100%;
    margin: 0 auto;
}

.shopglut-preview-content.mobile {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

/* Loader styles */
.shopglut-preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.shopglut-preview-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive styles */
@media screen and (max-width: 782px) {
    .shopglut-settings-container {
        flex-direction: column;
    }

    .shopglut-settings-sidebar {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .shopglut-settings-tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .shopglut-settings-tabs li {
        border-bottom: none;
    }

    .shopglut-settings-tabs li a {
        padding: 10px;
        font-size: 13px;
    }

    .shopglut-settings-tabs li.active a {
        box-shadow: inset 0 -3px 0 #0073aa;
        margin-right: 0;
    }

    .shopglut-admin-contents .form-table th {
        width: 100%;
        display: block;
        padding-bottom: 0;
    }

    .shopglut-admin-contents .form-table td {
        display: block;
        padding-top: 5px;
    }
}

/* Nice toggle switch for checkboxes */
.shopglut-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.shopglut-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.shopglut-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.shopglut-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.shopglut-toggle-slider {
    background-color: #0085ba;
}

input:focus+.shopglut-toggle-slider {
    box-shadow: 0 0 1px #0085ba;
}

input:checked+.shopglut-toggle-slider:before {
    transform: translateX(24px);
}

/* Optional - Tooltip styles */
.shopglut-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.shopglut-tooltip .dashicons {
    color: #777;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.shopglut-tooltip .shopglut-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.shopglut-tooltip:hover .shopglut-tooltip-text {
    visibility: visible;
    opacity: 1;
}