/* DCLM-K3 — Report Library styling (dark neumorphic parity) */

.rl-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1e);
  box-shadow: 6px 6px 12px #050511, -6px -6px 12px #252545,
              inset 1px 1px 0 rgba(255,255,255,0.04);
  color: #e8e8f0;
  border: 1px solid rgba(78,154,241,0.25);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rl-fab:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px #050511, -8px -8px 16px #252545;
}
.rl-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #4e9af1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

#reportLibrary {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(145deg, #15152a, #0c0c1a);
  border-left: 1px solid rgba(78,154,241,0.18);
  box-shadow: -10px 0 30px rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(.4,.2,.2,1);
}
#reportLibrary.open { right: 0; }

.rl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1e1e38;
}
.rl-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #e8e8f0;
  letter-spacing: 0.2px;
}
.rl-close {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  color: #ff8070;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
}

.rl-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e1e38;
  background: #0f0f1e;
}
.rl-tab {
  flex: 1;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #8888aa;
  background: #141428;
  border: 1px solid #1e1e38;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}
.rl-tab:hover { color: #e8e8f0; border-color: rgba(78,154,241,0.3); }
.rl-tab.active {
  color: #4e9af1;
  background: rgba(78,154,241,0.10);
  border-color: rgba(78,154,241,0.5);
  box-shadow: inset 1px 1px 3px #050511, inset -1px -1px 3px #252545;
}

.rl-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 60px;
}
.rl-empty {
  text-align: center;
  color: #556;
  padding: 40px 16px;
  font-size: 12px;
  line-height: 1.6;
}

.rl-card {
  background: linear-gradient(145deg, #1a1a2e, #13132a);
  border: 1px solid #1e1e38;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 3px 3px 6px #050511, -3px -3px 6px #1f1f3f;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.rl-card:hover {
  border-color: rgba(78,154,241,0.4);
  transform: translateY(-1px);
}
.rl-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8e8f0;
  margin-bottom: 4px;
}
.rl-card-meta {
  font-size: 10px;
  color: #667;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.rl-card-query {
  font-size: 11px;
  color: #8899bb;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}
.rl-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rl-btn-share, .rl-btn-delete {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
}
.rl-btn-share {
  color: #4e9af1;
  border-color: rgba(78,154,241,0.35);
  background: rgba(78,154,241,0.08);
}
.rl-btn-share:hover { background: rgba(78,154,241,0.18); }
.rl-btn-delete {
  color: #ff8070;
  border-color: rgba(231,76,60,0.3);
  background: rgba(231,76,60,0.08);
}
.rl-btn-delete:hover { background: rgba(231,76,60,0.18); }
