/*
  TalentscopeX - UI overrides (V5)
  - Removes legacy scaling side-effects
  - Improves responsiveness across common monitor sizes
  - Adds subtle modern polish (cards, buttons, tables)
*/

/* Safe global defaults */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, video, canvas, svg { max-width: 100%; height: auto; }

/* Prevent horizontal scroll caused by long tables / fixed widths */
body { overflow-x: hidden; }

:root {
  --tsx-radius-lg: 14px;
  --tsx-radius-md: 12px;
  --tsx-shadow-soft: 0 12px 32px rgba(2, 6, 23, 0.08);
  --tsx-shadow-hover: 0 18px 44px rgba(2, 6, 23, 0.12);
}

/* Dashboard polish */
.kpi-card,
.dash-card,
.quick-card,
.card {
  border-radius: var(--tsx-radius-lg);
}

.kpi-card:hover,
.dash-card:hover,
.quick-card:hover {
  box-shadow: var(--tsx-shadow-hover);
}

/* Assessments/List polish */
.table-clean {
  border-radius: var(--tsx-radius-lg);
}

.table-clean tbody tr {
  transition: transform 120ms ease, box-shadow 180ms ease;
}

.table-clean tbody tr:hover {
  transform: translateY(-1px);
}

/* Buttons */
.btn,
.button,
button {
  border-radius: var(--tsx-radius-md);
}

.btn:active,
.button:active,
button:active {
  transform: translateY(1px);
}

/* Inputs */
.search-input input,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  border-radius: var(--tsx-radius-md);
}

/* Make long tables usable on smaller screens */
.table-wrap,
.table-responsive,
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive spacing tweaks */
@media (max-width: 1200px) {
  .control-bar { gap: 10px; }
  .btn { padding: 8px 10px; }
}

@media (max-width: 768px) {
  .control-bar { flex-direction: column; align-items: stretch; }
  .control-bar .right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .search-input { width: 100%; }
  .search-input input { width: 100%; }
}

@media (max-width: 480px) {
  .table-clean th,
  .table-clean td { padding: 10px 10px; }
}
/* .cal-full-item.assessment-item {
  background: #e8f0fe;
  color: #0d47a1;
  border-left: 3px solid #003178;
} */

.cal-full-item.survey-item {
  background-color: #ecfdf5;  
  color: #0f0f0f;

}
.cal-full-item.survey-item:hover{ 
  background-color: rgba(34, 124, 82, 0.377);

}#tsxSuccessPopup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.tsx-success-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsx-success-popup-card {
  min-width: 320px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  animation: tsxPopupIn 0.25s ease;
}

.tsx-success-popup-icon {
  font-size: 42px;
  color: #16a34a;
  margin-bottom: 8px;
}

.tsx-success-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.tsx-success-popup-message {
  font-size: 15px;
  color: #475569;
}

#tsxSuccessPopup.hide .tsx-success-popup-card {
  animation: tsxPopupOut 0.25s ease forwards;
}

#tsxSuccessPopup.hide .tsx-success-popup-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes tsxPopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tsxPopupOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}#tsxSuccessPopup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.tsx-success-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsx-success-popup-card {
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.tsx-success-popup-icon {
  font-size: 42px;
  color: #16a34a;
  margin-bottom: 8px;
}

.tsx-success-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.tsx-success-popup-message {
  font-size: 15px;
  color: #475569;
}/* Notification button + count badge */
.notif-dropdown{
  position: relative;
  flex: 0 0 auto;
}

.btn.notif-btn{
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: visible !important;
}

.notif-btn i{
  font-size: 18px;
  color: #003178;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.notif-badge{
  position: absolute !important;
  top: -8px !important;
  right: -5px !important;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444 !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff; /* optional, makes it cleaner */
}

.hidden{
  display: none !important;
}