.tenweb-dashboard {
    max-width: 1200px;
    margin: 20px auto;
}

.tenweb-websites-list {
    margin: 30px 0;
}

.tenweb-create-website {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 30px 0;
}

.tenweb-form .form-field {
    margin-bottom: 20px;
}

.tenweb-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.tenweb-form input[type="text"],
.tenweb-form input[type="password"],
.tenweb-form select {
    width: 100%;
    max-width: 400px;
    padding: 8px;
}

.tenweb-form .description {
    color: #666;
    font-style: italic;
    margin: 5px 0;
    font-size: 13px;
}

.tenweb-form button {
    margin-top: 10px;
}

/* Error and success messages */
.notice {
    margin: 20px 0;
}

/* Credential toggle styles */
.credentials-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f0f6fc;
    border: 1px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
    color: #0073aa;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.credentials-toggle:hover {
    background: #e6f3ff;
    color: #005a87;
}

.credentials-toggle:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.credentials-toggle .eye-icon {
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.credentials-toggle.active {
    background: #e6f3ff;
    border-color: #005a87;
}

.credentials-content {
    display: none !important;
    padding: 15px;
    background: #fefcf7;
    border: 1px solid #f0ad4e;
    border-left: 4px solid #f0ad4e;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
}

.credentials-content::before {
    content: "🔒 Sensitive Information";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #fff3cd;
    color: #856404;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #f0ad4e;
}

.credentials-content.visible {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credential-section {
    margin-bottom: 20px;
}

.credential-section:last-child {
    margin-bottom: 0;
}

.credential-section h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.credential-section p {
    margin: 5px 0;
    font-size: 13px;
}

.credential-section code {
    background: #fff;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d63384;
}

.credential-section a {
    color: #0073aa;
    text-decoration: none;
}

.credential-section a:hover {
    text-decoration: underline;
}

.credentials-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
}

.credentials-warning strong {
    color: #6f5400;
}

/* Password verification modal styles */
.credentials-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.credentials-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    margin: 50px auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.credentials-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #ddd;
}

.credentials-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.credentials-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.credentials-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.credentials-modal-body {
    padding: 25px;
}

.credentials-modal-body p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.5;
}

.password-input-group {
    position: relative;
    margin-bottom: 15px;
}

.password-input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.password-input-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #0073aa;
}

.password-toggle-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.password-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 10px;
    color: #c62828;
    font-size: 13px;
    margin-top: 10px;
}

.credentials-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px 25px;
    border-top: 1px solid #ddd;
}

.credentials-modal-cancel,
.credentials-modal-verify {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.credentials-modal-cancel {
    background: #f1f1f1;
    color: #555;
}

.credentials-modal-cancel:hover {
    background: #e1e1e1;
}

.credentials-modal-verify {
    background: #0073aa;
    color: #fff;
}

.credentials-modal-verify:hover {
    background: #005a87;
}

.credentials-modal-verify:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Table styling */
.tenweb-websites-list table {
    margin: 20px 0;
}

.tenweb-websites-list th {
    font-weight: 600;
}

.tenweb-websites-list td {
    vertical-align: middle;
}

.tenweb-websites-list a {
    text-decoration: none;
}

/* Form validation styles */
.tenweb-form input:invalid {
    border-color: #dc3232;
}

.tenweb-form input:valid {
    border-color: #46b450;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .tenweb-form input[type="text"],
    .tenweb-form input[type="password"],
    .tenweb-form select {
        max-width: 100%;
    }
} 

/* Website Information Dashboard */
.website-info-dashboard {
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 20px 0;
}

.website-info-dashboard h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Website Card */
.website-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 20px 0;
    border-radius: 4px;
}

.website-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.website-card h3 {
    margin: 0;
    color: #1e1e1e;
    font-size: 18px;
    flex-grow: 1;
}

.change-domain-button {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #2271b1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    line-height: 1;
}

.change-domain-button:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.change-domain-button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.website-card h4 {
    margin: 0 0 10px;
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 600;
}

.website-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Info Cards Grid */
.website-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
    overflow: hidden;
    word-wrap: break-word;
}

.info-card p {
    margin: 8px 0;
    color: #50575e;
    font-size: 13px;
}

.info-card strong {
    color: #1e1e1e;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .website-info-grid {
        grid-template-columns: 1fr;
    }
    
    .website-card {
        padding: 15px;
    }
    
    .info-card {
        margin-bottom: 10px;
    }
}

.view-site-button {
    display: inline-block;
    background: #00a32a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 0;
}

.view-site-button:hover {
    background: #008a20;
    color: #fff;
}

.admin-login-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 0;
}

.admin-login-button:hover {
    background: #135e96;
    color: #fff;
}

.delete-website-button {
    display: inline-block;
    background: #dc3232;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    border: none;
}

.delete-website-button:hover {
    background: #b32d2e;
    color: #fff;
}

/* Modal styles */
.tenweb-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
}

.tenweb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    z-index: 100001;
}

.tenweb-modal h3 {
    margin-top: 0;
    color: #dc3232;
}

.tenweb-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tenweb-modal-cancel {
    background: #f6f7f7;
    border: 1px solid #2271b1;
    color: #2271b1;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
}

.tenweb-modal-confirm {
    background: #dc3232;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
}

/* Loud Analytics Test modal */
.loud-test-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
}

.loud-test-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 520px;
    width: 90%;
    z-index: 100001;
}

.loud-test-modal .loud-test-modal-title {
    margin-top: 0;
    color: #1d2327;
}

.loud-test-modal-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: #646970;
}

.loud-test-result-body {
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #dcdcde;
    max-height: 320px;
    overflow-y: auto;
}

.loud-test-result-body .loud-test-summary ul {
    margin: 0.5em 0;
    padding-left: 1.2em;
}

.loud-test-result-body .loud-test-error {
    color: #d63638;
}

.loud-test-modal-buttons {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dcdcde;
}

.tenweb-form-container {
    background: #fff;
    padding: 30px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    max-width: 100%;
    margin: 20px 0;
}

.tenweb-form-container h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1e1e1e;
    font-size: 24px;
}

.tenweb-form-container .description {
    color: #646970;
    font-size: 14px;
    margin-bottom: 25px;
}

.tenweb-form .form-field {
    margin-bottom: 25px;
}

.tenweb-form .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e1e1e;
}

.tenweb-form .form-field input[type="text"],
.tenweb-form .form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.tenweb-form .form-field input[type="text"]:focus,
.tenweb-form .form-field textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.tenweb-form .form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.tenweb-form .form-field .description {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 13px;
    font-style: italic;
}

.tenweb-form button[type="submit"] {
    background: #2271b1;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tenweb-form button[type="submit"]:hover {
    background: #135e96;
}

.tenweb-form button[type="submit"]:disabled {
    background: #c3c4c7;
    cursor: not-allowed;
}

/* Loading state */
.tenweb-form.is-submitting button[type="submit"] {
    position: relative;
    padding-left: 40px;
}

.tenweb-form.is-submitting button[type="submit"]::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tenweb-spin 1s linear infinite;
}

@keyframes tenweb-spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .tenweb-form-container {
        padding: 20px;
    }
    
    .tenweb-form .form-field input[type="text"],
    .tenweb-form .form-field textarea {
        font-size: 16px; /* Better for mobile touch */
    }
    
    .tenweb-form button[type="submit"] {
        width: 100%;
    }
} 

/* Dark mode (system) – scoped to Tenweb Dashboard UI */
@media (prefers-color-scheme: dark) {
    .tenweb-dashboard,
    .tenweb-dashboard-container,
    .tenweb-create-website,
    .tenweb-form-container,
    .website-info-dashboard,
    .website-card,
    .info-card,
    .domain-item,
    .credentials-modal,
    .tenweb-modal,
    .loud-test-modal,
    .change-domain-modal {
        background: #141a22 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
    }

    .tenweb-form label,
    .tenweb-form .form-field label,
    .website-card h3,
    .website-card h4,
    .tenweb-form-container h2,
    .loud-test-modal .loud-test-modal-title,
    .credentials-modal-header h3,
    .change-domain-modal-header h3 {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .info-card strong,
    .info-card p strong,
    .website-info-grid strong,
    .website-info-grid p strong {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .info-card a,
    .website-info-grid a {
        color: #6ea8ff !important;
    }

    .tenweb-form .description,
    .tenweb-dashboard-container p,
    .info-card p,
    .domain-name,
    .loud-test-modal-subtitle,
    .waiting-message,
    .step-text,
    .progress-text {
        color: rgba(255, 255, 255, 0.72) !important;
    }

    .tenweb-form input[type="text"],
    .tenweb-form input[type="password"],
    .tenweb-form select,
    .tenweb-form .form-field textarea,
    .domain-input,
    .iwd-modal-input,
    .iwd-modal-select,
    .password-input-group input {
        background: rgba(255, 255, 255, 0.04) !important;
        color: rgba(255, 255, 255, 0.92) !important;
        border-color: rgba(255, 255, 255, 0.14) !important;
    }

    .tenweb-form input[type="text"]:focus,
    .tenweb-form .form-field textarea:focus,
    .password-input-group input:focus,
    .domain-input:focus {
        border-color: #6ea8ff !important;
        box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.20) !important;
        outline: none !important;
    }

    .credentials-toggle {
        background: rgba(110, 168, 255, 0.10) !important;
        border-color: rgba(110, 168, 255, 0.55) !important;
        color: #6ea8ff !important;
    }

    .credentials-toggle:hover {
        background: rgba(110, 168, 255, 0.16) !important;
        color: #8abaff !important;
    }

    .credentials-content {
        background: rgba(255, 193, 7, 0.10) !important;
        border-color: rgba(255, 193, 7, 0.35) !important;
    }

    .credentials-content::before {
        background: rgba(255, 193, 7, 0.16) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        border-color: rgba(255, 193, 7, 0.35) !important;
    }

    .tenweb-modal-overlay,
    .loud-test-modal-overlay,
    .credentials-modal-overlay {
        background: rgba(0,0,0,0.72) !important;
    }

    .tenweb-modal-buttons,
    .loud-test-modal-buttons,
    .credentials-modal-footer,
    .change-domain-modal-footer,
    .website-actions {
        border-top-color: rgba(255,255,255,0.10) !important;
    }

    .website-header {
        border-bottom-color: rgba(255,255,255,0.10) !important;
    }

    .loud-test-result-body {
        border-top-color: rgba(255,255,255,0.10) !important;
    }

    .change-domain-button,
    .domain-refresh-button,
    .domain-set-default-button,
    .domain-delete-button,
    .tenweb-modal-cancel,
    .credentials-modal-cancel,
    .button {
        background: rgba(255,255,255,0.04) !important;
        border-color: rgba(255,255,255,0.14) !important;
        color: rgba(255,255,255,0.85) !important;
    }

    .change-domain-button:hover,
    .domain-refresh-button:hover,
    .tenweb-modal-cancel:hover,
    .credentials-modal-cancel:hover,
    .button:hover {
        background: rgba(255,255,255,0.08) !important;
        border-color: rgba(255,255,255,0.22) !important;
        color: rgba(255,255,255,0.92) !important;
    }

    .add-website-card {
        background: rgba(255,255,255,0.03) !important;
        border-color: rgba(255,255,255,0.16) !important;
    }

    .add-website-card:hover {
        border-color: #6ea8ff !important;
        background: rgba(110, 168, 255, 0.10) !important;
    }

    .info-card {
        background: rgba(255,255,255,0.03) !important;
    }

    .domain-add-form,
    .change-domain-modal-footer,
    .tenweb-form.is-submitting::after {
        background: rgba(0,0,0,0.35) !important;
    }

    .spinner {
        border-color: rgba(255,255,255,0.14) !important;
        border-top-color: #6ea8ff !important;
    }

    .waiting-title {
        background: linear-gradient(135deg, #6ea8ff, #3d86ff) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

/* Fluent Community toggle support: it uses `html.dark` */
html.dark .tenweb-dashboard,
html.dark .tenweb-dashboard-container,
html.dark .tenweb-create-website,
html.dark .tenweb-form-container,
html.dark .website-info-dashboard,
html.dark .website-card,
html.dark .info-card,
html.dark .domain-item,
html.dark .credentials-modal,
html.dark .tenweb-modal,
html.dark .loud-test-modal,
html.dark .change-domain-modal {
    background: #141a22 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
}

html.dark .tenweb-form label,
html.dark .tenweb-form .form-field label,
html.dark .website-card h3,
html.dark .website-card h4,
html.dark .tenweb-form-container h2,
html.dark .loud-test-modal .loud-test-modal-title,
html.dark .credentials-modal-header h3,
html.dark .change-domain-modal-header h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.dark .info-card strong,
html.dark .info-card p strong,
html.dark .website-info-grid strong,
html.dark .website-info-grid p strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.dark .info-card a,
html.dark .website-info-grid a {
    color: #6ea8ff !important;
}

html.dark .tenweb-form .description,
html.dark .tenweb-dashboard-container p,
html.dark .info-card p,
html.dark .domain-name,
html.dark .loud-test-modal-subtitle,
html.dark .waiting-message,
html.dark .step-text,
html.dark .progress-text {
    color: rgba(255, 255, 255, 0.72) !important;
}

html.dark .tenweb-form input[type="text"],
html.dark .tenweb-form input[type="password"],
html.dark .tenweb-form select,
html.dark .tenweb-form .form-field textarea,
html.dark .domain-input,
html.dark .password-input-group input {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark .tenweb-form input[type="text"]:focus,
html.dark .tenweb-form .form-field textarea:focus,
html.dark .password-input-group input:focus,
html.dark .domain-input:focus {
    border-color: #6ea8ff !important;
    box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.20) !important;
    outline: none !important;
}

html.dark .credentials-toggle {
    background: rgba(110, 168, 255, 0.10) !important;
    border-color: rgba(110, 168, 255, 0.55) !important;
    color: #6ea8ff !important;
}

html.dark .credentials-toggle:hover {
    background: rgba(110, 168, 255, 0.16) !important;
    color: #8abaff !important;
}

html.dark .credentials-content {
    background: rgba(255, 193, 7, 0.10) !important;
    border-color: rgba(255, 193, 7, 0.35) !important;
}

html.dark .credentials-content::before {
    background: rgba(255, 193, 7, 0.16) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 193, 7, 0.35) !important;
}

html.dark .tenweb-modal-overlay,
html.dark .loud-test-modal-overlay,
html.dark .credentials-modal-overlay {
    background: rgba(0,0,0,0.72) !important;
}

html.dark .tenweb-modal-buttons,
html.dark .loud-test-modal-buttons,
html.dark .credentials-modal-footer,
html.dark .change-domain-modal-footer,
html.dark .website-actions {
    border-top-color: rgba(255,255,255,0.10) !important;
}

html.dark .website-header {
    border-bottom-color: rgba(255,255,255,0.10) !important;
}

html.dark .loud-test-result-body {
    border-top-color: rgba(255,255,255,0.10) !important;
}

html.dark .change-domain-button,
html.dark .domain-refresh-button,
html.dark .domain-set-default-button,
html.dark .domain-delete-button,
html.dark .tenweb-modal-cancel,
html.dark .credentials-modal-cancel,
html.dark .button {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.85) !important;
}

html.dark .change-domain-button:hover,
html.dark .domain-refresh-button:hover,
html.dark .tenweb-modal-cancel:hover,
html.dark .credentials-modal-cancel:hover,
html.dark .button:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.22) !important;
    color: rgba(255,255,255,0.92) !important;
}

html.dark .add-website-card {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.16) !important;
}

html.dark .add-website-card:hover {
    border-color: #6ea8ff !important;
    background: rgba(110, 168, 255, 0.10) !important;
}

html.dark .info-card {
    background: rgba(255,255,255,0.03) !important;
}

html.dark .domain-add-form,
html.dark .change-domain-modal-footer,
html.dark .tenweb-form.is-submitting::after {
    background: rgba(0,0,0,0.35) !important;
}

html.dark .spinner {
    border-color: rgba(255,255,255,0.14) !important;
    border-top-color: #6ea8ff !important;
}

html.dark .waiting-title {
    background: linear-gradient(135deg, #6ea8ff, #3d86ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.status-message {
    margin: 0 0 20px;
    padding: 10px 15px;
    border-radius: 4px;
}

.status-message.notice-info {
    background-color: #f0f6fc;
    border-left: 4px solid #72aee6;
    color: #2271b1;
}

.status-message.notice-success {
    background-color: #f0f6e6;
    border-left: 4px solid #00a32a;
    color: #00a32a;
}

.status-message.notice-error {
    background-color: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #d63638;
}

/* Loading state styles */
.tenweb-form.is-submitting {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.tenweb-form.is-submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
} 

.tenweb-dashboard-container {
    background: transparent;
    padding: 30px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.tenweb-dashboard-container h2 {
    display: none;
}

.tenweb-dashboard-container p {
    color: #646970;
    font-size: 16px;
    margin-bottom: 30px;
}

.add-website-card {
    background: #f8f9fa !important;
    border: 2px dashed #ccd0d4 !important;
    transition: all 0.3s ease;
}

.add-website-card:hover {
    border-color: #2271b1 !important;
    background: #f0f6fc !important;
}

.add-website-card h3 {
    color: #646970 !important;
    margin-bottom: 15px !important;
}

.add-website-card p {
    color: #646970;
    margin-bottom: 20px;
}

.add-website-card .button-primary {
    background: #2271b1;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-website-card .button-primary:hover {
    background: #135e96;
}

/* Back button styling */
.button {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    color: #2c3338;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    display: inline-block;
}

.button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #2c3338;
}

/* Domain Management Styles */
.domain-management-card h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    color: #1e1e1e;
    font-size: 14px;
    font-weight: 600;
}

.domain-refresh-button {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 3px;
    color: #50575e;
    transition: all 0.2s ease;
    min-width: auto;
}

.domain-refresh-button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #2c3338;
}

.domain-refresh-button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.domain-list {
    margin-bottom: 10px;
    min-height: 35px;
    overflow: hidden;
}

.domain-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.domain-item:hover {
    border-color: #c3c4c7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.domain-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* Allow shrinking */
    overflow: hidden;
}

.domain-name {
    font-weight: normal;
    color: #50575e;
    text-decoration: none;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-name:hover {
    text-decoration: underline;
    color: #1e1e1e;
}

.domain-default-badge {
    background: #00a32a;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.domain-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.domain-set-default-button,
.domain-delete-button {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    line-height: 1;
}

.domain-set-default-button {
    color: #135e96;
}

.domain-set-default-button:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.domain-delete-button {
    color: #b32d2e;
    padding: 4px 6px;
}

.domain-delete-button:hover {
    background: #d63638;
    border-color: #d63638;
    color: white;
}

.domain-delete-button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.domain-add-form {
    border-top: 1px solid #e2e4e7;
    padding-top: 12px;
    margin-top: 12px;
    background: #fafafa;
    padding: 12px 14px 10px;
    border-radius: 4px;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -15px;
}

.domain-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.domain-input {
    flex-grow: 1;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
}

.domain-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.domain-add-button {
    background: #2271b1;
    color: white;
    border: 1px solid #2271b1;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 32px;
    line-height: 1;
}

.domain-add-button:hover {
    background: #135e96;
    border-color: #135e96;
}

.domain-add-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.domain-add-description {
    margin: 6px 0 0 0;
    font-size: 11px;
    color: #646970;
    font-style: italic;
    line-height: 1.4;
}

.domain-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #646970;
    font-size: 12px;
    padding: 12px 10px;
    text-align: center;
    justify-content: center;
    background: #f6f7f7;
    border-radius: 4px;
}

.domain-empty {
    text-align: center;
    color: #646970;
    font-size: 12px;
    padding: 12px 10px;
    font-style: italic;
    background: #f6f7f7;
    border-radius: 4px;
}

.domain-error {
    background: #fcf2f2;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Spin animation for loading icons */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Change Domain Modal Styles */
.change-domain-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-domain-modal {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.change-domain-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #dcdcde;
}

.change-domain-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
}

.change-domain-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #646970;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.change-domain-modal-close:hover {
    background: #f0f0f1;
    color: #2c3338;
}

.change-domain-modal-body {
    padding: 20px 24px;
}

.change-domain-modal-body p {
    margin: 0 0 16px;
    color: #50575e;
    line-height: 1.5;
}

.current-domain-info {
    background: #f6f7f7;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #72aee6;
    margin-bottom: 20px !important;
}

.current-domain-name {
    color: #1e1e1e;
    font-weight: 600;
}

.change-domain-input-group {
    margin-bottom: 16px;
}

.change-domain-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
}

.change-domain-input-group input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.change-domain-error {
    background: #fcf2f2;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.change-domain-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.change-domain-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #dcdcde;
    background: #fafafa;
}

.change-domain-modal-cancel {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    color: #50575e;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.change-domain-modal-cancel:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #2c3338;
}

.change-domain-modal-confirm {
    background: #2271b1;
    border: 1px solid #2271b1;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-height: 36px;
}

.change-domain-modal-confirm:hover {
    background: #135e96;
    border-color: #135e96;
}

.change-domain-modal-confirm:disabled {
    background: #dcdcde;
    border-color: #dcdcde;
    color: #a7aaad;
    cursor: not-allowed;
}

.change-domain-modal-confirm .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive design for domain management */
@media screen and (max-width: 600px) {
    .domain-input-group {
        flex-direction: column;
    }
    
    .domain-item {
        padding: 12px;
    }
    
    .domain-info {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .domain-name {
        font-size: 14px;
        max-width: 200px;
    }
    
    .domain-default-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .change-domain-modal {
        width: 95%;
        margin: 20px;
    }
    
    .change-domain-modal-header,
    .change-domain-modal-body,
    .change-domain-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .change-domain-modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .change-domain-modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

/* 10Web Dashboard Shortcodes Styles */
.tenweb-websites-count {
    font-weight: 600;
    color: #2271b1;
    font-size: 1.2em;
}

.tenweb-website-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tenweb-status-live {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tenweb-status-missing {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments for shortcodes */
@media screen and (max-width: 600px) {
    .tenweb-websites-count {
        font-size: 1.1em;
    }
    
    .tenweb-website-status {
        font-size: 0.8em;
        padding: 3px 8px;
    }
}

/* 10Web Waiting Interface Styles */
.tenweb-waiting-interface {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tenweb-waiting-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.waiting-content {
    position: relative;
    z-index: 1;
}

.waiting-icon {
    margin-bottom: 25px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #00a32a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

.waiting-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #2271b1, #135e96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waiting-message {
    font-size: 16px;
    color: #646970;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.waiting-progress {
    margin-bottom: 35px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 15px auto;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    border-radius: 4px;
    width: 0%;
    animation: progressFill 5s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 14px;
    color: #8c8f94;
    margin: 0;
    font-style: italic;
}

.waiting-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #8c8f94;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active .step-icon {
    background: #2271b1;
    color: white;
    border-color: #135e96;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.step-text {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

.step.active .step-text {
    color: #2271b1;
    font-weight: 600;
}

.waiting-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(34, 113, 177, 0.1);
    border: 1px solid rgba(34, 113, 177, 0.2);
    border-radius: 8px;
    text-align: center;
}

.waiting-note p {
    margin: 0;
    color: #2271b1;
    font-size: 14px;
    line-height: 1.4;
}

.waiting-actions {
    text-align: center;
}

.waiting-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    color: #2c3338;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.waiting-actions .button:hover {
    background: #e6f3ff;
    border-color: #2271b1;
    color: #2271b1;
}

.waiting-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive design for waiting interface */
@media screen and (max-width: 768px) {
    .tenweb-waiting-interface {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .waiting-title {
        font-size: 24px;
    }
    
    .waiting-message {
        font-size: 15px;
    }
    
    .spinner, .success-icon {
        width: 50px;
        height: 50px;
    }
    
    .success-icon {
        font-size: 24px;
    }
    
    .waiting-steps {
        gap: 20px;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-text {
        font-size: 13px;
        max-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    .tenweb-waiting-interface {
        padding: 25px 15px;
    }
    
    .waiting-title {
        font-size: 22px;
    }
    
    .waiting-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-text {
        text-align: left;
        max-width: none;
    }
} 