/* FILE: /assets/css/record.css
   Global recordings dock:
   - Collapsed button with counters
   - Expand panel with list
   - Close button minimizes
*/

/* container fixed */
.rec-dock{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1055;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none; /* children enable */
}

/* collapsed "pill" launcher */
.rec-launcher{
  pointer-events: auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  user-select:none;
}

.rec-launcher .rec-title{
  font-weight: 800;
  font-size: .95rem;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.rec-launcher .rec-title span{
  white-space:nowrap;
}
.rec-launcher .rec-counters{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}
.rec-dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
}

.rec-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.12);
}
.rec-badge-ready{
  background: rgba(25, 135, 84, .95); /* bootstrap success-ish */
}
.rec-badge-active{
  background: rgba(220, 53, 69, .95); /* bootstrap danger-ish */
}

/* expanded panel */
.rec-panel{
  pointer-events: auto;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* header with close */
.rec-panel-hd{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color:#fff;
}
.rec-panel-hd .left{
  font-weight: 800;
  display:flex;
  align-items:center;
  gap:10px;
}
.rec-panel-hd .right{
  display:flex;
  align-items:center;
  gap:8px;
}
.rec-panel-close{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.rec-panel-close:hover{
  background: rgba(255,255,255,.10);
}

/* list */
.rec-list{
  max-height: min(56vh, 460px);
  overflow:auto;
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

/* cards (your previous styling, preserved) */
.rec-card{
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
}

.rec-top{
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: center;
}

.rec-thumb{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.rec-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.rec-thumb-ph{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

.rec-meta{
  min-width: 0;
  flex: 1 1 auto;
}
.rec-title2{
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-sub{
  display:flex;
  gap: 8px;
  align-items:center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.rec-left{
  font-size: .85rem;
  color: rgba(255,255,255,.92);
}
.rec-sub2{
  margin-top: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.82);
}

.rec-actions{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.rec-actions .btn{
  border-radius: 10px;
}

.rec-err{
  padding: 0 10px 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.82);
}

@media (max-width: 576px){
  .rec-dock{ right: 10px; bottom: 10px; }
}
