
/*hmw style sheet for admin */

.wrap.hmw-div td p {
    font-size: 13px;
    font-weight: 300;
}

.modern-accordion {
    max-width: 800px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    position: relative;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question .icon {
    position: absolute;
    right: 1.5rem;
    width: 20px;
    height: 20px;
}

.faq-question .icon::before,
.faq-question .icon::after {
    content: '';
    position: absolute;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question .icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-question .icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-question .icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-question {
    color: #0073e6;
    background-color: rgba(0, 115, 230, 0.05);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: height 0.3s ease-in-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #596677;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #596677;
}

.faq-answer a {
    color: #0073e6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* Important: Add these styles for proper height transitions */
.faq-answer {
    will-change: height;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Coming-soon banner styles */
.hmw-coming-soon {
    position: relative;
    border-radius: 10px;
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #e8f1fd, #f5faff);
    border: 1px solid #d6e6fb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}
.hmw-coming-soon h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0a4b78;
}
.hmw-coming-soon p {
    margin-top: 4px;
    margin-bottom: 10px;
}
.hmw-coming-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}
@media (max-width: 782px) {
    .hmw-coming-features { grid-template-columns: 1fr; }
}
.hmw-feature-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.hmw-feature-item .dashicons { color: #0a84ff; }
.hmw-coming-note { color: #355a78; }
.hmw-coming-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(10, 132, 255, 0.08);
    color: #0a84ff;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
}
.hmw-coming-close:hover { background: rgba(10, 132, 255, 0.15); }


/*ip*/
/* Container Styles */
.hmw-settings-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.hmw-settings-left {
    flex: 1;
}

.hmw-settings-right {
    flex: 0 0 350px;
}

/* IP Card Styles */
.hmw-ip-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hmw-ip-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Header Styles */
.hmw-ip-header {
    background: linear-gradient(to right, #4a90e2, #5637d9);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hmw-ip-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.hmw-ip-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmw-ip-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Content Styles */
.hmw-ip-content {
    padding: 20px;
}

.hmw-ip-display {
    background: rgba(74, 144, 226, 0.05);
    border: 1px dashed #4a90e2;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-family: monospace;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hmw-ip-display:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), transparent);
    z-index: -1;
    animation: shine 2s infinite linear;
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Button Styles */
.hmw-ip-actions {
    display: flex;
    gap: 10px;
}

.hmw-copy-btn, .hmw-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hmw-copy-btn {
    background: #4a90e2;
    color: white;
}

.hmw-add-btn {
    background: #5cb85c;
    color: white;
}

.hmw-copy-btn:hover, .hmw-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hmw-copy-btn:active, .hmw-add-btn:active {
    transform: translateY(0);
}

.hmw-copy-btn .dashicons, .hmw-add-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Loading Animation */
#user-ip:empty:before {
    content: "Loading...";
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 782px) {
    .hmw-settings-container {
        flex-direction: column;
    }
    
    .hmw-settings-right {
        width: 100%;
    }
}
.hmw-page-item:hover {
    background: #0080006e;
}

/*exclude*/
 /* Container Styles */
 .hmw-settings-container-exclude {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.hmw-settings-left-exclude {
    flex: 1;
}

.hmw-settings-right-exclude {
    flex: 0 0 350px;
}

/* Pages Card Styles */
.hmw-pages-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hmw-pages-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Header Styles */
.hmw-pages-header {
    background: linear-gradient(to right, #3f9c35, #2c7a2a);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hmw-pages-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.hmw-pages-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Styles */
.hmw-pages-content {
    padding: 15px;
}

.hmw-pages-search {
    margin-bottom: 15px;
}

.hmw-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.hmw-pages-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

.hmw-page-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.hmw-page-item:last-child {
    border-bottom: none;
}

.hmw-page-item:hover {
    background-color: #f9f9f9;
}

.hmw-page-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.hmw-page-title {
    flex: 1;
    margin-left: 8px;
    font-weight: 500;
}

.hmw-page-slug {
    color: #888;
    font-size: 12px;
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Custom scrollbar */
.hmw-pages-list::-webkit-scrollbar {
    width: 8px;
}

.hmw-pages-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hmw-pages-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.hmw-pages-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
    .hmw-settings-container {
        flex-direction: column;
    }
    
    .hmw-settings-right {
        width: 100%;
    }
}

/* Container Styles */
.hmw-settings-container-restrictive {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.hmw-settings-left-restrictive {
    flex: 1;
}

.hmw-settings-right-restrictive {
    flex: 0 0 350px;
}

/* Messages Card Styles */
.hmw-messages-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hmw-messages-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Header Styles */
.hmw-messages-header {
    background: linear-gradient(to right, #9b7c53, #c5b429);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hmw-messages-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.hmw-messages-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Styles */
.hmw-messages-content {
    padding: 15px;
}

.hmw-messages-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hmw-message-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hmw-message-item:last-child {
    border-bottom: none;
}

.hmw-message-item:hover {
    background-color: #f9f9f9;
}

.hmw-message-text {
    font-weight: 500;
}
li.hmw-message-item:hover {
    background: #ffa5005c;
}

/*template*/
/* Container Styles */
.hmw-settings-container-template {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.hmw-settings-left-template {
    flex: 1;
}

.hmw-settings-right-template {
    flex: 0 0 350px;
}

/* Template Options Styles */
.template-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.template-option input {
    margin-right: 10px;
}

/* Template Preview Card Styles */
.template-preview-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.template-preview-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Header Styles */
.template-preview-header {
    background: linear-gradient(to right, #9c3585, #da4d4d8f);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-preview-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* Content Styles */
.template-preview-content {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.template-preview-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    display: none;
}

.template-preview-content img.active {
    display: block;
}

textarea#hmw_robots_txt_content {
    max-width: 35%;
}

/* Global Settings Tab Styles */
.hmw-settings-tab {
    width: 100%;
    max-width: none;
}

.hmw-setting-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hmw-setting-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #23282d;
    display: flex;
    align-items: center;
}

.hmw-setting-section h3 .dashicons {
    margin-right: 8px;
    color: #0073aa;
    font-size: 18px;
}

.hmw-setting-section p {
    color: #555;
    line-height: 1.5;
}

/* Welcome Notice Styles for General Tab */
.hmw-welcome-notice {
    background: linear-gradient(135deg, #f0f6fc 0%, #e3f2fd 100%);
    border: 1px solid #007cba;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.hmw-welcome-header {
    background: #0073aa;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hmw-welcome-header .dashicons {
    font-size: 20px;
}

.hmw-welcome-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.hmw-welcome-content {
    padding: 20px;
}

.hmw-welcome-content p {
    margin: 0 0 15px 0;
    color: #333;
}

.hmw-welcome-content p:last-child {
    margin-bottom: 0;
}

.hmw-important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 15px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hmw-important-note .dashicons {
    color: #856404;
    font-size: 16px;
}

/* Security Tab Styles */
.hmw-security-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hmw-security-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #23282d;
    display: flex;
    align-items: center;
}

.hmw-security-section h3 .dashicons {
    margin-right: 8px;
    color: #0073aa;
}

.hmw-security-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.hmw-status-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.hmw-status-label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.hmw-status-value {
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}

.hmw-status-value.status-active {
    color: #46b450;
    font-weight: 600;
}

.hmw-status-value.status-inactive {
    color: #999;
    font-weight: 600;
}

.hmw-status-value.status-blocked {
    color: #dc3232;
    font-weight: 600;
}

.hmw-status-value.status-allowed {
    color: #46b450;
    font-weight: 600;
}

.hmw-login-url-info {
    background: #f0f0f1;
    padding: 15px;
    border-left: 4px solid #00a0d2;
    margin: 15px 0;
    border-radius: 4px;
}

.hmw-login-url-info p {
    margin: 5px 0;
}

.hmw-login-url-info strong {
    color: #333;
}

.hmw-login-url-warning {
    color: #d63638;
    font-weight: 600;
}

.hmw-security-tab .form-table th {
    padding-left: 0;
}

.hmw-security-tab .form-table td {
    padding-left: 0;
}

/* Form Table Enhancements for All Tabs */
.hmw-settings-tab .form-table,
.hmw-security-tab .form-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hmw-settings-tab .form-table th,
.hmw-security-tab .form-table th {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-weight: 600;
    color: #495057;
}

.hmw-settings-tab .form-table td,
.hmw-security-tab .form-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.hmw-settings-tab .form-table tr:last-child td,
.hmw-security-tab .form-table tr:last-child td,
.hmw-settings-tab .form-table tr:last-child th,
.hmw-security-tab .form-table tr:last-child th {
    border-bottom: none;
}

/* Toggle Switch Styles */
.hmw-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.hmw-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hmw-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.hmw-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider {
    background-color: #0073aa;
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider:before {
    transform: translateX(26px);
}

/* Coming Soon Section Styles */
.hmw-coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
}

.hmw-coming-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hmw-feature-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hmw-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hmw-feature-item .dashicons {
    color: #6c757d;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.hmw-feature-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.hmw-feature-content p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.hmw-coming-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 20px;
    color: #856404;
    font-size: 14px;
}

/* Enhanced Input Styles */
.hmw-settings-tab input[type="text"],
.hmw-settings-tab input[type="password"],
.hmw-settings-tab input[type="email"],
.hmw-settings-tab textarea,
.hmw-settings-tab select,
.hmw-security-tab input[type="text"],
.hmw-security-tab input[type="password"],
.hmw-security-tab input[type="email"],
.hmw-security-tab textarea,
.hmw-security-tab select {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hmw-settings-tab input[type="text"]:focus,
.hmw-settings-tab input[type="password"]:focus,
.hmw-settings-tab input[type="email"]:focus,
.hmw-settings-tab textarea:focus,
.hmw-settings-tab select:focus,
.hmw-security-tab input[type="text"]:focus,
.hmw-security-tab input[type="password"]:focus,
.hmw-security-tab input[type="email"]:focus,
.hmw-security-tab textarea:focus,
.hmw-security-tab select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
}

/* Checkbox and Radio Button Styles */
.hmw-settings-tab input[type="checkbox"],
.hmw-settings-tab input[type="radio"],
.hmw-security-tab input[type="checkbox"],
.hmw-security-tab input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
}

/* Support Section Styles */
.hmw-support-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.hmw-support-buttons .button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hmw-support-buttons .button-primary {
    background: #0073aa;
    border-color: #0073aa;
}

.hmw-support-buttons .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
}

.hmw-support-buttons .button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hmw-dev-message {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Button Styles for All Tabs */
.hmw-settings-tab .button,
.hmw-security-tab .button {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hmw-settings-tab .button:hover,
.hmw-security-tab .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Template Preview Styles */
.template-preview-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-preview-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.15);
}

.template-preview-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.template-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-preview-header h3::before {
    content: "\f100";
    font-family: dashicons;
    color: #0073aa;
}

.template-preview-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
}

.template-preview-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.template-preview-content img.active {
    display: block;
}

.template-preview-content img:hover {
    transform: scale(1.02);
    border-color: #0073aa;
}

/* Enhanced Form Elements */
.hmw-settings-tab .regular-text,
.hmw-security-tab .regular-text {
    min-width: 300px;
}

/* Status Indicators */
.hmw-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.hmw-status-indicator.active {
    background: #d4edda;
    color: #155724;
}

.hmw-status-indicator.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Loading States */
.hmw-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.hmw-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: hmw-spin 1s linear infinite;
}

@keyframes hmw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hmw-security-status,
    .hmw-coming-features {
        grid-template-columns: 1fr;
    }
    
    .hmw-support-buttons {
        flex-direction: column;
    }
    
    .hmw-support-buttons .button {
        justify-content: center;
    }
    
    .hmw-settings-tab .regular-text,
    .hmw-security-tab .regular-text {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Toggle Switch Styles */
.hmw-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.hmw-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hmw-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.hmw-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider {
    background-color: #0073aa;
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider:before {
    transform: translateX(26px);
}

/* Coming Soon Section Styles */
.hmw-coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
}

.hmw-coming-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hmw-feature-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hmw-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hmw-feature-item .dashicons {
    color: #6c757d;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.hmw-feature-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.hmw-feature-content p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.hmw-coming-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 20px;
    color: #856404;
    font-size: 14px;
}
 
 / *   E n h a n c e d   P o p u p   a n d   M o d a l   S t y l e s   * / 
 . h m w - p o p u p - o v e r l a y   { 
         p o s i t i o n :   f i x e d ; 
         t o p :   0 ; 
         l e f t :   0 ; 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 6 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ; 
         z - i n d e x :   1 0 0 0 0 ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         o p a c i t y :   0 ; 
         v i s i b i l i t y :   h i d d e n ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 . h m w - p o p u p - o v e r l a y . a c t i v e   { 
         o p a c i t y :   1 ; 
         v i s i b i l i t y :   v i s i b l e ; 
 } 
 
 . h m w - p o p u p - c o n t e n t   { 
         b a c k g r o u n d :   # f f f ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         b o x - s h a d o w :   0   2 0 p x   4 0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ; 
         m a x - w i d t h :   6 0 0 p x ; 
         w i d t h :   9 0 % ; 
         m a x - h e i g h t :   8 0 v h ; 
         o v e r f l o w - y :   a u t o ; 
         t r a n s f o r m :   s c a l e ( 0 . 9 )   t r a n s l a t e Y ( 2 0 p x ) ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 . h m w - p o p u p - o v e r l a y . a c t i v e   . h m w - p o p u p - c o n t e n t   { 
         t r a n s f o r m :   s c a l e ( 1 )   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 . h m w - p o p u p - h e a d e r   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 0 7 3 a a   0 % ,   # 0 0 5 a 8 7   1 0 0 % ) ; 
         c o l o r :   w h i t e ; 
         p a d d i n g :   2 0 p x   2 5 p x ; 
         b o r d e r - r a d i u s :   1 2 p x   1 2 p x   0   0 ; 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 . h m w - p o p u p - h e a d e r   h 3   { 
         m a r g i n :   0 ; 
         f o n t - s i z e :   1 8 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   1 0 p x ; 
 } 
 
 . h m w - p o p u p - c l o s e   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ; 
         b o r d e r :   n o n e ; 
         c o l o r :   w h i t e ; 
         w i d t h :   3 2 p x ; 
         h e i g h t :   3 2 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         c u r s o r :   p o i n t e r ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
 } 
 
 . h m w - p o p u p - c l o s e : h o v e r   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 3 ) ; 
         t r a n s f o r m :   r o t a t e ( 9 0 d e g ) ; 
 } 
 
 . h m w - p o p u p - b o d y   { 
         p a d d i n g :   2 5 p x ; 
 } 
 
 . h m w - p o p u p - f o o t e r   { 
         b a c k g r o u n d :   # f 8 f 9 f a ; 
         p a d d i n g :   1 5 p x   2 5 p x ; 
         b o r d e r - r a d i u s :   0   0   1 2 p x   1 2 p x ; 
         b o r d e r - t o p :   1 p x   s o l i d   # d e e 2 e 6 ; 
         d i s p l a y :   f l e x ; 
         g a p :   1 0 p x ; 
         j u s t i f y - c o n t e n t :   f l e x - e n d ; 
 } 
 
 / *   P r o t e c t i o n   T o g g l e   S t y l e s   * /   . h m w - p r o t e c t i o n - t o g g l e   {   p o s i t i o n :   r e l a t i v e ;   d i s p l a y :   i n l i n e - b l o c k ;   w i d t h :   6 0 p x ;   h e i g h t :   3 4 p x ;   }   . h m w - p r o t e c t i o n - t o g g l e   i n p u t   {   o p a c i t y :   0 ;   w i d t h :   0 ;   h e i g h t :   0 ;   }   . h m w - p r o t e c t i o n - s l i d e r   {   p o s i t i o n :   a b s o l u t e ;   c u r s o r :   p o i n t e r ;   t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ;   b a c k g r o u n d - c o l o r :   # 4 6 b 4 5 0 ;   t r a n s i t i o n :   . 4 s ;   b o r d e r - r a d i u s :   3 4 p x ;   }   . h m w - p r o t e c t i o n - s l i d e r : b e f o r e   {   p o s i t i o n :   a b s o l u t e ;   c o n t e n t :   ' ' ;   h e i g h t :   2 6 p x ;   w i d t h :   2 6 p x ;   l e f t :   4 p x ;   b o t t o m :   4 p x ;   b a c k g r o u n d - c o l o r :   w h i t e ;   t r a n s i t i o n :   . 4 s ;   b o r d e r - r a d i u s :   5 0 % ;   }   . h m w - p r o t e c t i o n - t o g g l e   i n p u t : c h e c k e d   +   . h m w - p r o t e c t i o n - s l i d e r   {   b a c k g r o u n d - c o l o r :   # d c 3 2 3 2 ;   }   . h m w - p r o t e c t i o n - t o g g l e   i n p u t : c h e c k e d   +   . h m w - p r o t e c t i o n - s l i d e r : b e f o r e   {   t r a n s f o r m :   t r a n s l a t e X ( 2 6 p x ) ;   }   . h m w - p r o t e c t i o n - i n d i c a t o r   {   d i s p l a y :   i n l i n e - f l e x ;   a l i g n - i t e m s :   c e n t e r ;   g a p :   8 p x ;   m a r g i n - l e f t :   1 0 p x ;   f o n t - w e i g h t :   6 0 0 ;   f o n t - s i z e :   1 3 p x ;   }   . h m w - p r o t e c t i o n - i n d i c a t o r . p r o t e c t i o n - a c t i v e   {   c o l o r :   # 4 6 b 4 5 0 ;   }   . h m w - p r o t e c t i o n - i n d i c a t o r . p r o t e c t i o n - d i s a b l e d   {   c o l o r :   # d c 3 2 3 2 ;   } 
 
 
/* Protection Toggle Styles */
.hmw-protection-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.hmw-protection-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hmw-protection-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #46b450; /* Green for active protection by default */
    transition: .4s;
    border-radius: 34px;
}

.hmw-protection-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.hmw-protection-toggle input:checked + .hmw-protection-slider {
    background-color: #dc3232; /* Red when protection is disabled */
}

.hmw-protection-toggle input:checked + .hmw-protection-slider:before {
    transform: translateX(26px);
}

.hmw-protection-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    font-weight: 600;
    font-size: 13px;
}

.hmw-protection-indicator.protection-active {
    color: #46b450;
}

.hmw-protection-indicator.protection-disabled {
    color: #dc3232;
}

/* Minimal Tab Navigation Styles */
.hmw-div .nav-tab-wrapper {
    border-bottom: 1px solid #e1e5e9;
    background: #ffffff;
    padding: 0;
    margin: 20px 0 30px 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hmw-div .nav-tab {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 24px;
    margin: 0;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hmw-div .nav-tab:hover {
    color: #495057;
    background: rgba(0, 115, 170, 0.04);
    text-decoration: none;
}

.hmw-div .nav-tab-active,
.hmw-div .nav-tab-active:hover {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.08);
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.hmw-div .nav-tab:focus {
    box-shadow: none;
    outline: 2px solid rgba(0, 115, 170, 0.3);
    outline-offset: -2px;
}

/* Tab Icons (Optional Enhancement) */
.hmw-div .nav-tab:before {
    font-family: dashicons;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.hmw-div .nav-tab:hover:before,
.hmw-div .nav-tab-active:before {
    opacity: 1;
}

/* Specific tab icons */
.hmw-div a[href*="tab=general"]:before {
    content: "\f108"; /* admin-settings */
}

.hmw-div a[href*="tab=seo"]:before {
    content: "\f179"; /* search */
}

.hmw-div a[href*="tab=customise"]:before {
    content: "\f100"; /* admin-appearance */
}

.hmw-div a[href*="tab=advanced"]:before {
    content: "\f111"; /* admin-tools */
}

.hmw-div a[href*="tab=security"]:before {
    content: "\f332"; /* shield */
}

.hmw-div a[href*="tab=faq"]:before {
    content: "\f223"; /* info */
}

/* Enhanced Main Title */
.hmw-div h1 {
    color: #23282d;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hmw-div h1:before {
    content: "\f332";
    font-family: dashicons;
    color: #0073aa;
    font-size: 28px;
}

/* Responsive Tab Design */
@media (max-width: 782px) {
    .hmw-div .nav-tab-wrapper {
        margin: 15px 0 20px 0;
    }
    
    .hmw-div .nav-tab {
        padding: 12px 16px;
        font-size: 13px;
        min-width: auto;
    }
    
    .hmw-div .nav-tab:before {
        font-size: 14px;
    }
    
    .hmw-div h1 {
        font-size: 20px;
    }
    
    .hmw-div h1:before {
        font-size: 24px;
    }
}

/* Ultra-minimal alternative (uncomment to use instead) */
/*
.hmw-div .nav-tab-wrapper {
    border: none;
    background: transparent;
    margin: 15px 0 25px 0;
}

.hmw-div .nav-tab {
    border: none;
    background: transparent;
    color: #777;
    font-weight: 400;
    font-size: 14px;
    padding: 10px 20px;
    margin-right: 8px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hmw-div .nav-tab:hover {
    color: #333;
    background: #f5f5f5;
}

.hmw-div .nav-tab-active {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.1);
    font-weight: 500;
}
*/

/* Modern Radio Button Styles */
.hmw-radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.hmw-radio-option:hover {
    border-color: #0073aa;
    background: rgba(0, 115, 170, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.hmw-radio-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.hmw-radio-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
    flex-shrink: 0;
}

.hmw-radio-checkmark:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0073aa;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.2s ease;
}

.hmw-radio-option input[type="radio"]:checked + .hmw-radio-checkmark {
    border-color: #0073aa;
    background: #fff;
}

.hmw-radio-option input[type="radio"]:checked + .hmw-radio-checkmark:after {
    transform: translate(-50%, -50%) scale(1);
}

.hmw-radio-option input[type="radio"]:checked ~ .hmw-radio-label {
    color: #0073aa;
    font-weight: 600;
}

.hmw-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    flex: 1;
}

/* Modern Input Field Styles */
.hmw-input-group {
    position: relative;
    margin-bottom: 8px;
}

.hmw-modern-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.hmw-modern-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #fafbfc;
}

.hmw-input-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

.hmw-modern-input:focus + .hmw-input-label {
    color: #0073aa;
}

/* Modern Textarea Styles */
.hmw-textarea-group {
    position: relative;
    margin-bottom: 8px;
}

.hmw-modern-textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.hmw-modern-textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #fafbfc;
}

.hmw-textarea-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

.hmw-modern-textarea:focus + .hmw-textarea-label {
    color: #0073aa;
}

/* Enhanced Template Options Layout */
.template-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Enhanced Template Preview */
.template-preview-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.template-preview-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.15);
}

.template-preview-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
}

.template-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-preview-header h3::before {
    content: "\f100";
    font-family: dashicons;
    color: #0073aa;
    font-size: 18px;
}

.template-preview-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    background: #fafbfc;
}

.template-preview-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.template-preview-content img.active {
    display: block;
}

.template-preview-content img:hover {
    transform: scale(1.02);
    border-color: #0073aa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hmw-modern-input,
    .hmw-modern-textarea {
        max-width: 100%;
    }
    
    .hmw-radio-option {
        padding: 10px 12px;
    }
    
    .hmw-radio-checkmark {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .hmw-radio-checkmark:after {
        width: 6px;
        height: 6px;
    }
}

/* URL Builder Styles */
.hmw-url-builder {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 4px;
    max-width: 600px;
    transition: all 0.2s ease;
}

.hmw-url-builder:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.hmw-url-prefix,
.hmw-url-suffix {
    background: #fff;
    color: #6b7280;
    padding: 8px 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    border-radius: 4px;
    white-space: nowrap;
}
.hmw-url-copy-btn.button {
    margin-left: 8px;
}

.hmw-slug-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    min-width: 150px;
    flex: 1;
}

.hmw-slug-input:focus {
    outline: none !important;
    background: #fff !important;
    border-radius: 4px !important;
}

/* Enhanced Select Dropdown Styles */
.hmw-modern-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L2 4h8z" fill="%23666"/></svg>') no-repeat right 12px center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.hmw-modern-select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background-color: #fafbfc;
}

.hmw-modern-select:hover {
    border-color: #9ca3af;
}

/* Form Row Layout */
.hmw-form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hmw-form-col {
    flex: 1;
}

.hmw-form-col-auto {
    flex: 0 0 auto;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    .hmw-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hmw-url-builder {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .hmw-slug-input {
        min-width: 120px;
    }
}

/* Smaller Toggle Switch Styles - Override */
.hmw-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px !important;
    height: 24px !important;
}

.hmw-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hmw-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.hmw-toggle-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);
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider {
    background-color: #0073aa;
}

.hmw-toggle-switch input:checked + .hmw-toggle-slider:before {
    transform: translateX(20px);
}

/* Smaller Protection Toggle Styles - Override */
.hmw-protection-toggle {
    position: relative;
    display: inline-block;
    width: 44px !important;
    height: 24px !important;
}

.hmw-protection-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hmw-protection-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #46b450;
    transition: .3s;
    border-radius: 24px;
}

.hmw-protection-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);
}

.hmw-protection-toggle input:checked + .hmw-protection-slider {
    background-color: #dc3232;
}

.hmw-protection-toggle input:checked + .hmw-protection-slider:before {
    transform: translateX(20px);
}

.hmw-protection-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-weight: 600;
    font-size: 12px;
}

.hmw-protection-indicator.protection-active {
    color: #46b450;
}

.hmw-protection-indicator.protection-disabled {
    color: #dc3232;
}

/* Smaller Button Styles */
.hmw-settings-tab .button,
.hmw-security-tab .button,
.wrap.hmw-div .button {
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 30px !important;
    border-radius: 4px !important;
    font-weight: 500;
}

.hmw-settings-tab .button-primary,
.hmw-security-tab .button-primary,
.wrap.hmw-div .button-primary {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.hmw-settings-tab .button-secondary,
.hmw-security-tab .button-secondary,
.wrap.hmw-div .button-secondary {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

/* Smaller Copy and Add Buttons in IP Card */
.hmw-copy-btn, .hmw-add-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-height: 32px !important;
}

.hmw-copy-btn .dashicons, .hmw-add-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* Smaller Support Buttons */
.hmw-support-buttons .button {
    padding: 8px 14px !important;
    font-size: 13px !important;
    min-height: 34px !important;
}

.hmw-support-buttons .button .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Compact Submit Button */
#submit {
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    font-weight: 600 !important;
}

/* Responsive adjustments for smaller toggles */
@media (max-width: 768px) {
    .hmw-toggle-switch,
    .hmw-protection-toggle {
        width: 40px !important;
        height: 22px !important;
    }
    
    .hmw-toggle-slider,
    .hmw-protection-slider {
        border-radius: 22px;
    }
    
    .hmw-toggle-slider:before,
    .hmw-protection-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    .hmw-toggle-switch input:checked + .hmw-toggle-slider:before,
    .hmw-protection-toggle input:checked + .hmw-protection-slider:before {
        transform: translateX(18px);
    }
}
