/* BlockXpert Admin Settings Styles */

.blockxpert-section { 
    display: none; 
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.blockxpert-section.active { 
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-tab { 
    cursor: pointer; 
}

.blockxpert-tabs { 
    display: flex; 
    flex-wrap: wrap;
    gap: 16px; 
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    align-items: center;
    justify-content: space-between;
}

.blockxpert-tabs-buttons {
    display: flex;
    gap: 8px;
}

.blockxpert-tab { 
    padding: 10px 20px; 
    border-radius: 6px; 
    background: #fff; 
    cursor: pointer; 
    font-weight: 500; 
    color: #1d2327; 
    border: 1px solid #e5e7eb;
    outline: none; 
    transition: all 0.2s ease;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blockxpert-tab:hover:not(.active) {
    background: #f0f0f1;
    border-color: #c3c4c7;
}

.blockxpert-tab.active { 
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

 

.blockxpert-search-bar {
    position: relative;
    min-width: 300px;
}

.blockxpert-search-bar::after {
    content: "\f179";
    font-family: dashicons;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2271b1;
    font-size: 16px;
    pointer-events: none;
}

.blockxpert-search-input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blockxpert-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.blockxpert-block-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 10px;  
}

.blockxpert-block-card { 
    background: #fff; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blockxpert-block-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #2271b1;
}

.blockxpert-block-label { 
    font-size: 1.1em; 
    font-weight: 500; 
}

.blockxpert-toggle-switch { 
    position: relative; 
    display: inline-block; 
    width: 52px; 
    height: 28px; 
    margin-right: 12px; 
    vertical-align: middle; 
}

.blockxpert-toggle-switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.blockxpert-toggle-slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #e5e7eb; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blockxpert-toggle-slider:before { 
    position: absolute; 
    content: ""; 
    height: 22px; 
    width: 22px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blockxpert-toggle-switch input:checked + .blockxpert-toggle-slider { 
    background: linear-gradient(135deg, #2271b1, #135e96);
}

.blockxpert-toggle-switch input:checked + .blockxpert-toggle-slider:before { 
    transform: translateX(24px);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.blockxpert-toggle-yesno { 
    font-weight: 500; 
    color: #2271b1; 
}

@media (max-width: 700px) { 
    .blockxpert-block-list { 
        flex-direction: column; 
        gap: 12px; 
    } 
    .blockxpert-block-card { 
        min-width: 0; 
        width: 100%; 
    } 
}

/* Toast Notifications */
.blockxpert-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.blockxpert-toast.blockxpert-toast-show {
    transform: translateX(0);
}

/* Success Toast */
.blockxpert-toast-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border-left: 4px solid #27ae60;
}

.blockxpert-toast-success .blockxpert-toast-icon::before {
    content: "✓";
    font-weight: bold;
    font-size: 18px;
}

/* Error Toast */
.blockxpert-toast-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-left: 4px solid #c0392b;
}

.blockxpert-toast-error .blockxpert-toast-icon::before {
    content: "✕";
    font-weight: bold;
    font-size: 18px;
}

/* Warning Toast */
.blockxpert-toast-warning {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #fff;
    border-left: 4px solid #d68910;
}

.blockxpert-toast-warning .blockxpert-toast-icon::before {
    content: "⚠";
    font-size: 16px;
}

/* Info Toast */
.blockxpert-toast-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-left: 4px solid #2980b9;
}

.blockxpert-toast-info .blockxpert-toast-icon::before {
    content: "ℹ";
    font-weight: bold;
    font-size: 16px;
}

.blockxpert-toast-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blockxpert-toast-message {
    flex: 1;
    line-height: 1.4;
}

.blockxpert-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.blockxpert-toast-close:hover {
    opacity: 1;
}

/* Responsive - mobile */
@media (max-width: 600px) {
    .blockxpert-toast {
        min-width: auto;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}