/* 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;
}

/* Review Notice Styles - Admin Notice */
.bytnexo-review-notice {
    border-left-color: #3858e9 !important;
    padding: 0 !important;
    background: #f8f9fa !important;
    border-radius: 4px;
    overflow: hidden;
}

.bytnexo-review-container {
    display: flex;
    align-items: stretch;
    padding: 15px 20px;
    gap: 20px;
}

.bytnexo-review-content {
    flex: 1;
}

.bytnexo-review-header {
    margin-bottom: 8px;
}

.bytnexo-review-header .dashicons {
    color: #ffb900;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bytnexo-review-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1d2327;
}

.bytnexo-review-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
}

.bytnexo-review-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bytnexo-review-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 20px !important;
    background: #3858e9 !important;
    border-color: #3858e9 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.bytnexo-review-button:hover {
    background: #1d4ac9 !important;
    border-color: #1d4ac9 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 88, 233, 0.3);
}

.bytnexo-review-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #ffb900;
}

.bytnexo-review-later,
.bytnexo-review-dismiss {
    background: transparent !important;
    border: none !important;
    color: #50575e !important;
    text-decoration: underline !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

.bytnexo-review-later:hover,
.bytnexo-review-dismiss:hover {
    color: #2271b1 !important;
    background: transparent !important;
}

.bytnexo-review-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.bytnexo-review-footer em {
    color: #6c7a8a;
    font-size: 13px;
}

.bytnexo-review-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bytnexo-review-avatar img {
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.bytnexo-review-notice .notice-dismiss {
    top: 10px;
    right: 10px;
}

/* Review Section Styles - Settings Page */
.bytnexo-review-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.bytnexo-review-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3858e9, #ffb900, #3858e9);
}

.bytnexo-review-section-content {
    position: relative;
    z-index: 1;
}

.bytnexo-review-section-header .dashicons {
    color: #ffb900;
    font-size: 28px;
    width: 28px;
    height: 28px;
    display: inline-block;
    margin-right: 2px;
}

.bytnexo-review-section h3 {
    font-size: 24px;
    margin: 15px 0 10px;
    color: #1d2327;
}

.bytnexo-review-section p {
    font-size: 15px;
    color: #50575e;
    line-height: 1.6;
}

.bytnexo-review-features {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3858e9;
}

.bytnexo-review-features h4 {
    margin: 0 0 10px;
    color: #1d2327;
    font-size: 16px;
}

.bytnexo-review-features ul {
    margin: 0;
    list-style: none;
    padding: 0;
}

.bytnexo-review-features ul li {
    padding: 5px 0;
    font-size: 14px;
    color: #50575e;
}

.bytnexo-review-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
    align-items: center;
}

.bytnexo-review-settings-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #3858e9 !important;
    border-color: #3858e9 !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    height: auto !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
}

.bytnexo-review-settings-btn:hover {
    background: #1d4ac9 !important;
    border-color: #1d4ac9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 88, 233, 0.3);
}

.bytnexo-review-settings-btn .dashicons {
    color: #ffb900;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bytnexo-review-dismiss-settings {
    background: #f1f1f1 !important;
    border-color: #dcdcde !important;
    color: #50575e !important;
    padding: 12px 30px !important;
    height: auto !important;
    font-size: 16px !important;
}

.bytnexo-review-dismiss-settings:hover {
    background: #e5e7eb !important;
    border-color: #c3c4c7 !important;
}
.bytnexo-review-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.bytnexo-review-footer p {
    color: #6c7a8a;
    font-size: 14px;
    margin: 0;
}

/* Responsive Review Section */
@media screen and (max-width: 782px) {
    .bytnexo-review-notice .bytnexo-review-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .bytnexo-review-notice .bytnexo-review-avatar {
        order: -1;
        align-self: center;
        margin-bottom: 10px;
    }
    
    .bytnexo-review-notice .bytnexo-review-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .bytnexo-review-notice .bytnexo-review-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .bytnexo-review-notice .bytnexo-review-button {
        justify-content: center;
    }
    
    .bytnexo-review-section {
        padding: 20px;
    }
    
    .bytnexo-review-section-header .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    .bytnexo-review-section h3 {
        font-size: 20px;
    }
    
    .bytnexo-review-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bytnexo-review-settings-btn,
    .bytnexo-review-dismiss-settings {
        justify-content: center;
        width: 100%;
    }

}

/* Plugin Row Meta Review Link */
.bytnexo-review-link {
    color: #ffb900 !important;
    font-weight: bold !important;
}

.bytnexo-review-link:hover {
    color: #f5a623 !important;
    text-decoration: underline !important;
}