/* BytNexo User Switcher Admin Styles */
.bytnexo-settings-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.bytnexo-settings-wrapper form {
    flex: 2;
    max-width: 800px;
}

.bytnexo-preview-panel {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    position: sticky;
    top: 50px;
    height: fit-content;
}

.bytnexo-preview-content {
    margin-top: 20px;
}

.bytnexo-preview-button-container {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bytnexo-preview-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d2327;
}

.bytnexo-preview-button a,
.bytnexo-preview-admin-bar-button a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bytnexo-preview-button::before{
    display: none;
}

.bytnexo-preview-button a:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bytnexo-preview-avatar,
.bytnexo-switch-back-avatar {
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 50%;
}

.bytnexo-padding-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bytnexo-padding-control input.small-text {
    width: 80px;
}

.form-table th {
    width: 200px;
}

.bytnexo-color-picker {
    max-width: 100px;
}

/* Role permissions section */
.bytnexo-role-permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.bytnexo-role-permission-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
}

.bytnexo-role-permission-item label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bytnexo-role-permission-item input[type="checkbox"] {
    margin: 0;
}

/* Position preview indicators */
#bytnexo-preview-floating-button[data-position="bottom-right"]:before {
    content: "↓→";
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 12px;
    color: #666;
}

#bytnexo-preview-floating-button[data-position="bottom-left"]:before {
    content: "↓←";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 12px;
    color: #666;
}

#bytnexo-preview-floating-button[data-position="top-right"]:before {
    content: "↑→";
    position: absolute;
    bottom: -25px;
    right: 0;
    font-size: 12px;
    color: #666;
}

#bytnexo-preview-floating-button[data-position="top-left"]:before {
    content: "↑←";
    position: absolute;
    bottom: -25px;
    left: 0;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .bytnexo-settings-wrapper {
        flex-direction: column;
    }
    
    .bytnexo-preview-panel {
        position: static;
        margin-top: 20px;
    }
}

/* Settings tabs (future use) */
.bytnexo-settings-tabs {
    margin-bottom: 20px;
}

.bytnexo-settings-tab {
    display: inline-block;
    padding: 10px 15px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
}

.bytnexo-settings-tab.active {
    background: #fff;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

/* Tooltips */
.bytnexo-tooltip {
    cursor: help;
    border-bottom: 1px dashed #999;
    position: relative;
}

.bytnexo-tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
}

/* Animation */
@keyframes bytnexo-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 88, 233, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 88, 233, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 88, 233, 0);
    }
}

.bytnexo-preview-button a {
    animation: bytnexo-pulse 2s infinite;
}