/* Floating Switcher */
.wpct-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

.wpct-toggle-lang {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.wpct-toggle-lang:hover {
    background: #f9f9f9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Language Menu Popup */
.wpct-lang-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 200px;
    overflow: hidden;
    flex-direction: column;
}
.wpct-lang-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
.wpct-lang-item:last-child {
    border-bottom: none;
}
.wpct-lang-item:hover {
    background: #f0f7ff;
}
.wpct-lang-item.active-lang {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

/* Frontend Editor Panel */
.wpct-frontend-editor {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999998;
    display: none; /* hidden by default, toggled via JS */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wpct-frontend-editor.show {
    display: block;
}

.wpct-editor-header {
    background: #2271b1;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.wpct-editor-body {
    padding: 15px;
}
.wpct-form-group {
    margin-bottom: 10px;
}
.wpct-form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
    font-weight: bold;
}
.wpct-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.wpct-btn-save {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    font-weight: bold;
}
.wpct-btn-save:hover {
    background: #135e96;
}
.wpct-btn-save:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Floating Editor Toggle Button (Only when editor is hidden) */
#wpct-open-editor-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 999997;
    display: none; /* Will be managed by JS */
}
#wpct-open-editor-btn:hover {
    background: #135e96;
}
