/* css/components.css */
/* ===== INFO BOX ===== */
.info-box{
  flex: 1;
  padding: 14px;

  border-radius: var(--radius);
  border: 1px solid rgba(202,161,90,.22);
  box-shadow: var(--shadow-2);

  background:
    radial-gradient(500px 240px at 10% 0%, rgba(59,183,255,.08), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}

#infoBox iframe{
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ===== HISTORY SIDEBAR ===== */
.history-sidebar{
  width: 100%;
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;

  border-radius: var(--radius);
  border: 1px solid rgba(202,161,90,.22);
  box-shadow: var(--shadow-2);

  background:
    radial-gradient(320px 220px at 50% 0%, rgba(202,161,90,.10), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}

.history-header{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 6px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(202,161,90,.24);
}

.clear-history-btn{
  width: 100%;
  background: linear-gradient(180deg, rgba(198,62,72,1), rgba(151,34,43,1));
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.clear-history-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
  filter: brightness(1.03);
}

.history-item{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(202,161,90,.18);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.history-item:hover{
  transform: translateX(-3px);
  border-color: rgba(59,183,255,.22);
  box-shadow: 0 14px 22px rgba(0,0,0,.14);
}

.history-item.active{
  border-color: rgba(59,183,255,.30);
  background: linear-gradient(135deg, rgba(59,183,255,.08) 0%, rgba(202,161,90,.10) 100%);
}

.history-item-time{
  font-size: 11px;
  color: rgba(43,27,19,.65);
  font-weight: 800;
}

.history-item-preview{
  font-size: 12px;
  color: rgba(42,28,20,.90);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.history-item-type{
  font-size: 10px;
  color: #120a06;
  background: linear-gradient(180deg, rgba(202,161,90,1), rgba(183,139,67,1));
  border: 1px solid rgba(0,0,0,.12);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 900;
  letter-spacing: .02em;
}

/* ===== AGENT IMAGE (Mixy) ===== */
#agent-image{
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

  border: 2px solid rgba(202,161,90,.40);
  box-shadow:
    0 16px 36px rgba(0,0,0,.25),
    0 0 0 6px rgba(59,183,255,.06);
  background: rgba(255,255,255,.65);
}

#agent-image:hover{
  transform: scale(1.03);
  box-shadow:
    0 18px 44px rgba(0,0,0,.28),
    0 0 0 8px rgba(59,183,255,.09);
  border-color: rgba(59,183,255,.35);
}

/* ===== NOTIFICATIONS ===== */
.notification{
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 14px;
  animation: slideIn 0.25s ease;
  border: 1px solid rgba(202,161,90,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
}

@keyframes slideIn{
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notification.info{
  border-left: 5px solid rgba(59,183,255,.9);
  color: #134b67;
}
.notification.alert{
  border-left: 5px solid rgba(198,62,72,.95);
  color: #6a1117;
}
.notification.sent{
  border-left: 5px solid rgba(32,160,90,.95);
  color: #0f4f2b;
}

/* ===== TABLE ===== */
table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(202,161,90,.18);
}

table, th, td{ border: 1px solid rgba(202,161,90,.14); }

th{
  color: #120a06;
  padding: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(202,161,90,1), rgba(183,139,67,1));
}

td{ padding: 10px; color: rgba(42,28,20,.92); }

tr:nth-child(even){ background-color: rgba(244,234,220,.35); }
tr:hover{ background-color: rgba(59,183,255,.06); }
