.unifiedsmb-dashboard-widget {
    padding: 0;
    margin: -12px;
}

.unifiedsmb-widget-disconnected {
    text-align: center;
    padding: 40px 20px;
}

.unifiedsmb-widget-disconnected .unifiedsmb-widget-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.unifiedsmb-widget-disconnected h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1e1e1e;
}

.unifiedsmb-widget-disconnected p {
    color: #646970;
    margin-bottom: 20px;
}

.unifiedsmb-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.unifiedsmb-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 500;
}

.unifiedsmb-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.unifiedsmb-last-sync {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.9;
}

.unifiedsmb-last-sync .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.unifiedsmb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    margin: 0;
}

.unifiedsmb-stat-card {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.unifiedsmb-stat-card:hover {
    background: #f9fafb;
}

.unifiedsmb-stat-card.stat-card-error {
    background: #fef2f2;
}

.unifiedsmb-stat-card.stat-card-error:hover {
    background: #fee2e2;
}

.unifiedsmb-stat-card.stat-card-success {
    background: #f0fdf4;
}

.unifiedsmb-stat-card.stat-card-success:hover {
    background: #dcfce7;
}

.unifiedsmb-stat-card .stat-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.unifiedsmb-stat-card .stat-content {
    flex: 1;
}

.unifiedsmb-stat-card .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.2;
}

.unifiedsmb-stat-card .stat-label {
    font-size: 13px;
    color: #1e1e1e;
    margin-top: 4px;
    font-weight: 500;
}

.unifiedsmb-stat-card .stat-meta {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

.unifiedsmb-widget-actions {
    padding: 20px;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.unifiedsmb-widget-actions .button {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.unifiedsmb-widget-actions .button-primary {
    background: #667eea;
    border-color: #667eea;
    text-shadow: none;
    box-shadow: none;
}

.unifiedsmb-widget-actions .button-primary:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.unifiedsmb-widget-status {
    padding: 12px 20px;
    margin: 0;
    display: none;
    align-items: center;
    gap: 8px;
    border-left: 4px solid;
    font-size: 13px;
}

.unifiedsmb-widget-status.show {
    display: flex;
}

.unifiedsmb-widget-status.notice-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

.unifiedsmb-widget-status.notice-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.unifiedsmb-widget-status.notice-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.unifiedsmb-widget-status .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Tablet and smaller desktop - all three in a row */
@media (max-width: 1100px) {
    .unifiedsmb-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile landscape and larger phones - first two side by side */
@media (max-width: 782px) {
    .unifiedsmb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Third card takes full width */
    .unifiedsmb-stat-card:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    .unifiedsmb-widget-actions {
        flex-direction: column;
    }
    
    .unifiedsmb-widget-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Very small mobile - stack all */
@media (max-width: 480px) {
    .unifiedsmb-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .unifiedsmb-stat-card:nth-child(3) {
        grid-column: auto;
    }
    
    .unifiedsmb-widget-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Sync status stat card states */
.stat-card-syncing {
    border-left: 3px solid var(--usmb-orange);
    background: var(--usmb-light-orange);
}

.stat-card-syncing .stat-value {
    color: var(--usmb-orange);
}

.stat-card-idle .stat-value {
    color: var(--usmb-green);
}
