/* Version Badge */
.aptce-version {
    font-size: 13px;
    color: #646970;
    margin-left: 10px;
    font-weight: 400;
    background-color: #f0f0f1;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #c3c4c7;
    vertical-align: middle;
}

/* Toggle Switch Container */
.aptce-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.aptce-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Slider */
.aptce-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c4c7;
    transition: .3s;
    border-radius: 34px;
}

.aptce-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.aptce-toggle input:checked + .aptce-slider {
    background-color: #2271b1; /* WP primary color */
}

.aptce-toggle input:checked + .aptce-slider:before {
    transform: translateX(22px);
}

.aptce-toggle:hover .aptce-slider {
    background-color: #a7aaad;
}

.aptce-toggle input:checked + .aptce-slider:hover {
    background-color: #135e96;
}

/* Toggle Text */
.aptce-toggle-text {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
    color: #1d2327;
    line-height: 24px;
}

/* Table Cell Alignment */
/*.widefat td {
    vertical-align: middle;
}*/

/*.widefat td:first-child {
    padding-left: 15px;
}*/

/* Better spacing for form elements */
.aptce-toggle + .aptce-toggle-text {
    margin-left: 0;
}

/* Plugin/Theme tables styling */
/*.widefat.fixed td {
    padding: 12px 10px;
}*/

/* Submit button area */
/*p.submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #c3c4c7;
}*/

/* Section headings */
/*.wrap h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
}*/

/*.wrap h2:first-of-type {
    margin-top: 20px;
}*/

/* Description text */
/*.wrap p {
    margin-bottom: 15px;
    color: #646970;
}*/

/* Button styling improvements */
/*.widefat .button {
    margin: 0;
    vertical-align: middle;
}*/

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .aptce-toggle {
        width: 40px;
        height: 20px;
    }
    
    .aptce-slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    
    .aptce-toggle input:checked + .aptce-slider:before {
        transform: translateX(20px);
    }
    
    .aptce-toggle-text {
        font-size: 14px;
        line-height: 20px;
    }
    
    /*.widefat th,
    .widefat td {
        padding: 10px 8px;
    }*/
}

/* Focus states for accessibility */
.aptce-toggle input:focus + .aptce-slider {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Download button in theme/plugin lists */
.aptce-download-btn {
    text-decoration: none;
}

.aptce-download-btn:hover {
    text-decoration: none;
}

/* Loader Overlay */
#aptce-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

#aptce-loader.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Spinner */
.aptce-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #2271b1;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: aptce-spin 1s linear infinite;
}

@keyframes aptce-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader Text */
.aptce-loader-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
}
