/* ==========================================================================
   BERITA ACARA IT HIRING - PREMIUM EXECUTIVE DESIGN SYSTEM
   Desktop-First Elegance & Mobile-First Touch Responsiveness
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --border-subtle: #e2e8f0;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Elegant Cards with Subtle Depth */
.panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-card:hover {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Navigation Bar */
.executive-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
}

/* Custom Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Data Table Styling */
.executive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.executive-table th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.85rem;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.executive-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.executive-table tr:hover td {
  background-color: #f8fafc;
}

.executive-table tr:last-child td {
  border-bottom: none;
}

/* Score Progress Bar */
.mini-score-bar {
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-score-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Interactive Rating Buttons (1 to 5) */
.rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rating-btn {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 2px solid #cbd5e1;
  font-weight: 800;
  font-size: 1.25rem;
  color: #1e293b;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.rating-btn:hover {
  border-color: #2563eb;
  background-color: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-2px);
}

.rating-btn.active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}

.rating-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Touch-optimized Signature Canvas */
.signature-pad-container {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
  touch-action: none;
}

.signature-pad-container canvas {
  width: 100%;
  height: 150px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

/* Touch Checkbox Cards */
.touch-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.touch-checkbox-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.touch-checkbox-card.checked {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* Modal Animations */
.modal-overlay {
  animation: fadeIn 0.18s ease-out;
}

.modal-content {
  animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 0.9rem 1.35rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 5px solid #3b82f6;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 28rem;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
