/* Admin Bar Button Highlighting */
#wpadminbar #wp-admin-bar-sao-fl-scan-assets > .ab-item {
    background-color: #4CA249 !important;
    color: #ffffff !important;
    font-weight: bold;
    transition: background-color 0.2s;
}

#wpadminbar #wp-admin-bar-sao-fl-scan-assets > .ab-item:hover {
    background-color: #3b8a38 !important;
    color: #ffffff !important;
}

#wpadminbar #wp-admin-bar-sao-fl-scan-assets .ab-icon::before {
    color: #ffffff !important;
}

/* Smart Asset Optimizer - Modern UI */
#sao_fl-asset-manager-metabox .inside {
    margin: 0;
    padding: 15px;
}

#sao_fl_blocked_assets {
    width: 100%;
    min-height: 120px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #f6f7f7;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

#sao-fl-scanner-modal, #sao-fl-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sao-fl-warning-content {
    max-width: 450px;
}

.sao-fl-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.sao-fl-btn-primary:hover {
    background: #135e96;
}

.sao-fl-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sao-fl-slide-up 0.3s ease-out;
}

@keyframes sao-fl-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sao-fl-modal-header {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sao-fl-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.sao-fl-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.sao-fl-close-btn:hover {
    color: #ef4444;
}

.sao-fl-modal-body {
    padding: 25px;
    overflow-y: auto;
}

.sao-fl-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.sao-fl-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-size: 10px;
}

.sao-fl-asset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.sao-fl-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    font-family: monospace;
    cursor: copy;
    position: relative;
    transition: all 0.2s;
}

.sao-fl-tag:hover {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
    transform: translateY(-1px);
}

.sao-fl-tag::after {
    content: 'Click to copy';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.sao-fl-tag:hover::after {
    opacity: 1;
}

.sao-fl-modal-footer {
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    font-size: 12px;
    color: #64748b;
}
