/**
 * Admin styles for Pichautari Alt Manager - Material Design
 *
 * @package    Pichautari_Alt_Manager
 * @subpackage Pichautari_Alt_Manager/admin/css
 */

:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary: #424242;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --surface: #ffffff;
    --background: #f5f5f5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #e0e0e0;
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --radius: 8px;
    --radius-sm: 4px;
}

.sam-container {
    margin: 20px 20px 20px 0;
    max-width: 100%;
    padding: 0 20px;
}

.sam-container h1 {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.sam-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    padding: 0;
    margin-bottom: 24px;
    overflow: visible;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sam-card:hover {
    box-shadow: var(--shadow-2);
}

.sam-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.sam-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sam-filters-row {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sam-stats-inline {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sam-stat-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sam-stat-inline:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.sam-stat-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.sam-stat-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.sam-stat-inline:hover .sam-stat-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.sam-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.sam-stat-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.sam-stat-manual .sam-stat-dot {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sam-stat-manual .sam-stat-dot::after {
    background: rgba(76, 175, 80, 0.4);
}

.sam-stat-generated .sam-stat-dot {
    background: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sam-stat-generated .sam-stat-dot::after {
    background: rgba(33, 150, 243, 0.4);
}

.sam-stat-missing {
    background: rgba(255, 152, 0, 0.25);
    border-color: rgba(255, 152, 0, 0.5);
}

.sam-stat-missing:hover {
    background: rgba(255, 152, 0, 0.35);
}

.sam-stat-missing .sam-stat-icon {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sam-stat-count {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.sam-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sam-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sam-search input {
    padding: 10px 20px;
    border: 2px solid var(--divider);
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 280px;
    outline: none;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sam-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.sam-search input::placeholder {
    color: var(--text-secondary);
}

.sam-btn-search {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-1);
}

.sam-btn-search:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-2);
}

.sam-btn-search .dashicons {
    font-size: 20px;
}

.sam-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.sam-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sam-btn:hover::before {
    width: 300px;
    height: 300px;
}

.sam-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.sam-btn:active {
    transform: translateY(0);
}

.sam-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sam-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.sam-btn-primary:hover {
    background: white;
}

.sam-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.sam-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sam-legend {
    display: flex;
    gap: 24px;
    font-size: 13px;
    flex-wrap: wrap;
}

.sam-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: #fafafa;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

.sam-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sam-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-1);
}

.sam-legend-manual {
    background: #d4fcd4;
}

.sam-legend-generated {
    background: #e0f0ff;
}

.sam-legend-missing {
    background: #fff2cc;
}

.sam-table {
    width: 100%;
    border-collapse: collapse;
}

.sam-table thead th {
    background: #fafafa;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--divider);
}

.sam-col-image {
    width: 90px;
}

.sam-col-quality {
    width: 80px;
}

.sam-col-used {
    width: 200px;
}

.sam-col-size {
    width: 100px;
}

.sam-col-actions {
    width: 80px;
}

.sam-quality-cell {
    text-align: center;
}

.sam-empty-state {
    text-align: center;
    padding: 40px;
}

.sam-empty-content {
    color: var(--text-secondary);
    font-size: 16px;
}

.sam-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 16px;
}

.sam-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f5f5f5;
}

.sam-table tbody tr:hover {
    background: #fafafa;
    transform: scale(1.001);
}

.sam-table tbody td {
    padding: 20px;
    vertical-align: middle;
}

.sam-img-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sam-img-thumb:hover {
    transform: scale(1.5);
    box-shadow: var(--shadow-3);
    z-index: 10;
    position: relative;
}

.sam-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--divider);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.sam-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.sam-suggestion {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
    display: block;
    line-height: 1.5;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-light);
}

.sam-usage-item {
    margin-bottom: 6px;
    padding: 4px 0;
}

.sam-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sam-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.sam-link::after {
    content: '→';
    opacity: 0;
    transition: opacity 0.2s;
}

.sam-link:hover::after {
    opacity: 1;
}

.sam-more-count {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    display: inline-block;
}

.sam-not-used {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
}

.sam-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    background: #fafafa;
    border-top: 1px solid var(--divider);
}

.sam-page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--divider);
}

.sam-page-nav:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.sam-page-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.sam-page-nav .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sam-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--divider);
}

.sam-page-num:hover:not(.active) {
    background: var(--primary-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.sam-page-num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    border-color: transparent;
    font-weight: 600;
}

.sam-page-dots {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 0 4px;
    user-select: none;
}

.sam-page-info {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* Spinning animation for loading states */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashicons-spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 782px) {
    .sam-header {
        padding: 16px;
    }
    
    .sam-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sam-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .sam-filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .sam-chip {
        flex-shrink: 0;
    }
    
    .sam-stats-inline {
        justify-content: center;
        width: 100%;
    }
    
    .sam-actions {
        flex-direction: column;
    }
    
    .sam-bulk-actions-modern {
        width: 100%;
    }
    
    .sam-bulk-trigger {
        width: 100%;
        justify-content: center;
    }
    
    .sam-bulk-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .sam-search {
        flex-direction: row;
        width: 100%;
    }
    
    .sam-search input {
        width: 100%;
        min-width: auto;
    }
    
    .sam-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    
    .sam-legend {
        justify-content: center;
    }
    
    .sam-table {
        font-size: 13px;
    }
    
    .sam-table thead th,
    .sam-table tbody td {
        padding: 12px 8px;
    }
    
    .sam-img-thumb {
        width: 60px;
        height: 60px;
    }
    
    .sam-legend {
        padding: 16px;
        gap: 16px;
        justify-content: center;
    }
    
    .sam-pagination {
        padding: 16px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .sam-page-nav,
    .sam-page-num {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .sam-page-info {
        width: 100%;
        text-align: center;
        margin: 8px 0 0 0;
        padding: 8px 0 0 0;
        border-left: none;
        border-top: 1px solid var(--divider);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.sam-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sam-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sam-container ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sam-container ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading state */
.sam-btn .dashicons-update {
    display: inline-block;
}

/* Focus visible for accessibility */
.sam-btn:focus-visible,
.sam-input:focus-visible,
.sam-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Bulk Actions and Filters */
.sam-filter-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sam-filter-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.sam-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.sam-chip .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sam-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sam-chip.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sam-chip-warning.active {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}

.sam-chip-success.active {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.sam-chip-info.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

/* Modern Bulk Actions Dropdown */
.sam-bulk-actions-modern {
    position: relative;
    z-index: 100;
}

.sam-bulk-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.sam-bulk-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sam-bulk-trigger .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sam-bulk-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.sam-bulk-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sam-bulk-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
    display: none;
}

.sam-bulk-menu.show::before {
    display: block;
}

.sam-bulk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    color: #424242;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sam-bulk-item:hover:not(:disabled) {
    background: #f5f5f5;
    color: #667eea;
}

.sam-bulk-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sam-bulk-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sam-bulk-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.sam-bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sam-select,
.sam-filter-select {
    padding: 10px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sam-select:hover,
.sam-filter-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sam-select option,
.sam-filter-select option {
    background: #424242;
    color: white;
}

.sam-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quality Checker */
.sam-quality-warnings {
    display: block;
    margin-top: 8px;
}

.sam-warning {
    display: block;
    color: #ff9800;
    font-size: 11px;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fff3e0;
    border-radius: 4px;
    border-left: 2px solid #ff9800;
}

.sam-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: help;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid currentColor;
}

.sam-quality-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.sam-quality-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.sam-quality-icon-wrapper .dashicons {
    color: white;
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.sam-quality-icon-wrapper .dashicons::before {
    width: 14px;
    height: 14px;
}

.sam-quality-text {
    font-weight: 700;
    line-height: 1;
}

/* Responsive adjustments for new elements */
@media (max-width: 782px) {
    .sam-quality-badge {
        font-size: 11px;
        padding: 5px 12px;
        gap: 5px;
    }
    
    .sam-quality-icon-wrapper {
        width: 18px;
        height: 18px;
    }
    
    .sam-quality-icon-wrapper .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
}

/* Notification System */
.sam-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-3);
    z-index: 999999;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid var(--primary);
}

.sam-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.sam-notification-success {
    border-left-color: var(--success);
    background: #e8f5e9;
    color: #2e7d32;
}

.sam-notification-error {
    border-left-color: var(--error);
    background: #ffebee;
    color: #c62828;
}

.sam-notification-info {
    border-left-color: var(--primary);
    background: #e3f2fd;
    color: #1565c0;
}

.sam-notification-warning {
    border-left-color: var(--warning);
    background: #fff3e0;
    color: #e65100;
}

/* Loading state for content reload */
.sam-container.loading {
    opacity: 0.5;
    pointer-events: none;
}
