/* =========================
   Background / Header
========================= */
.att-bg{
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.att-header{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 6px;
}

.att-logo{
  max-width: 180px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}

.container{
  position: relative;
  z-index: 1;
}

/* =========================
   Card / Input
========================= */
.att-card{
  background: rgba(0,0,0,.22);
  border: 2px solid rgba(255,255,255,.32);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.att-input{
  background: rgba(255,255,255,.95);
  border-radius: 14px;
}

/* =========================
   Results Panel (scroll only here)
========================= */
.att-panel{
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px;

  max-height: 52vh;
  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge legacy */
}
.att-panel::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* =========================
   List Items
========================= */
.att-list .att-item{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 18px 18px;
  min-height: 68px;

  display: flex;
  align-items: center;
}

.att-list .att-item:hover{
  background: rgba(255,255,255,.16);
}

/* 이름 + pill 간격 확보 */
.att-row{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px; /* ✅ 이름과 pill 사이 간격 */
}

/* Name */
.att-name{
  font-size: 1.15rem;
  font-weight: 700;
}

.att-name-lg{
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.2;
}

.att-year{
  font-size: 1.05rem;
  opacity: .75;
  font-weight: 700;
  margin-left: 6px;
}

/* Sub */
.att-sub{
  font-size: .85rem;
  opacity: .85;
}

/* Pill */
.att-pill{
  font-size: .95rem;
  padding: .45rem .80rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  white-space: nowrap;
  margin-left: 10px; /* ✅ 혹시 모를 추가 간격 */
}

/* ✅ Active일 때 더 밝게 */
.att-pill.is-active{
  background: rgba(46, 204, 113, .28);
  border-color: rgba(46, 204, 113, .55);
  color: #eafff3;
  box-shadow: 0 0 0 1px rgba(46, 204, 113, .15) inset;
}

/* Inactive도 구분 원하면(선택) */
.att-pill.is-inactive{
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255,255,255,.85);
}

/* =========================
   Student page
========================= */
.att-photo{
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  background: rgba(255,255,255,.10);
  display: inline-block;
}

.att-photo-btn{
  padding: 8px 14px;
  font-size: .95rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 150px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.att-info-col{
  padding-top: 18px;
}

.att-title{
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.15;
}

.att-kv{
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: .45rem 0;
}

.att-k{
  width: 110px;
  color: rgba(255,255,255,.65);
  font-weight: 700;
  font-size: 1.05rem;
}

.att-v{
  font-size: 1.25rem;
  font-weight: 750;
}

.att-program-item{
  line-height: 1.45;
}

/* Buttons */
.att-action-btn{
  min-height: 66px;
  font-size: 1.18rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =========================
   Camera modal
========================= */
.att-modal{
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.att-media-box{
  width: 100%;
  height: 360px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.att-video,
.att-preview{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal{ z-index: 2055 !important; }
.modal-backdrop{ z-index: 2050 !important; }

/* =========================
   Confetti
========================= */
.att-confetti{
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 2px;
  background: rgba(255,255,255,.9);
  animation-name: attConfettiFall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes attConfettiFall{
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(0,110vh,0) rotate(720deg); }
}
