/* === SKELETON LOADERS === */
.sk{position:relative;overflow:hidden;background:linear-gradient(90deg,#e2e8f0 0%,#f1f5f9 50%,#e2e8f0 100%);background-size:200% 100%;animation:skShimmer 1.4s ease-in-out infinite;border-radius:8px;display:block}
html[data-theme="dark"] .sk{background:linear-gradient(90deg,#1e293b 0%,#334155 50%,#1e293b 100%);background-size:200% 100%}
@keyframes skShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.sk-text{height:14px;margin:6px 0;width:100%}
.sk-text.sm{height:10px;width:60%}
.sk-text.lg{height:20px;width:80%}
.sk-title{height:24px;width:50%;margin-bottom:14px}
.sk-circle{border-radius:50%;width:48px;height:48px}
.sk-square{width:60px;height:60px;border-radius:10px;flex-shrink:0}
.sk-btn{height:36px;width:100px;border-radius:8px;display:inline-block;margin:4px 6px 4px 0}
.sk-img{width:100%;height:140px;border-radius:12px}

.sk-card{background:var(--card,#fff);border:1px solid var(--border,#e2e8f0);border-radius:14px;padding:18px;margin-bottom:14px}
.sk-row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border,#f1f5f9)}
.sk-row:last-child{border-bottom:none}
.sk-row .col{flex:1;min-width:0}

.sk-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:18px}
.sk-stat{background:var(--card,#fff);border:1px solid var(--border,#e2e8f0);border-radius:14px;padding:18px}

/* Page transition overlay */
.sk-page-overlay{position:fixed;inset:0;background:var(--bg,#f8fafc);z-index:9990;padding:20px;overflow-y:auto;display:none;animation:skFadeIn .15s ease}
.sk-page-overlay.show{display:block}
@keyframes skFadeIn{from{opacity:0}to{opacity:1}}
.sk-container{max-width:1200px;margin:0 auto;padding-top:80px}

/* Inline tab strip skeleton (bovati ek thin bar) */
.sk-tab-bar{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,#6366f1,#8b5cf6,#ec4899);z-index:9999;transition:width .3s ease}
.sk-tab-bar.go{width:90%;transition:width 8s ease-out}
.sk-tab-bar.done{width:100%;transition:width .2s ease;opacity:0;transition:opacity .3s ease .15s}

/* Inline mini-spinner replacement */
.sk-dots{display:inline-flex;gap:4px;align-items:center}
.sk-dots span{width:8px;height:8px;border-radius:50%;background:var(--primary,#6366f1);animation:skBounce 1.2s infinite}
.sk-dots span:nth-child(2){animation-delay:.15s}
.sk-dots span:nth-child(3){animation-delay:.3s}
@keyframes skBounce{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}

/* Initial-state skeleton: hide once content loads */
[data-skeleton-target]{transition:opacity .2s}
.sk-hide{display:none !important}
