/* ==========================================================================
   SMART4TALENT MAIN STYLESHEET
   Reset, Typography, Layout, Header, Footer, Modals, Toasts, Chatbot
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--neutral-900);
  line-height: 1.25;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: var(--fw-black); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.35rem); font-weight: var(--fw-extrabold); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 0.75rem;
  color: var(--neutral-600);
}

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-600);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 0.9375rem;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.app-root {
  flex: 1 0 auto;
  min-height: calc(100vh - 350px);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BANNER
   ========================================================================== */
.top-announcement-banner {
  background: linear-gradient(90deg, #07172b 0%, #0d3b6e 50%, #8b1818 100%);
  color: var(--neutral-0);
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 60;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
}

.top-announcement-banner.hidden {
  display: none;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: var(--fw-bold);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.banner-text {
  font-weight: var(--fw-medium);
  opacity: 0.95;
  flex: 1;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.whatsapp-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 211, 102, 0.22);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #4ade80 !important;
  font-weight: var(--fw-bold);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.whatsapp-channel-btn:hover {
  background: rgba(37, 211, 102, 0.35);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.banner-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: var(--fw-semibold);
  font-size: 0.78rem;
}

.banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.banner-close:hover {
  color: var(--neutral-0);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  height: var(--header-height);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 59, 110, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-symbol::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary-700);
}

.brand-name span.brand-accent {
  color: var(--accent-600);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  color: var(--neutral-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item-wrapper {
  position: relative;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  color: var(--neutral-700);
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.nav-link-btn.active {
  border-color: var(--primary-200);
  color: var(--primary-700);
  font-weight: var(--fw-bold);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
  animation: dropdownFade 180ms ease-out;
}

.nav-item-wrapper:hover .nav-dropdown,
.nav-item-wrapper:focus-within .nav-dropdown {
  display: flex;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: var(--neutral-700);
  font-size: 0.84rem;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.dropdown-link:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(3px);
}

.dropdown-link .dropdown-badge {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent-100);
  color: var(--accent-700);
  font-weight: var(--fw-bold);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Currency Selector */
.currency-selector-wrap {
  position: relative;
}

.currency-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  color: var(--neutral-700);
  font-weight: var(--fw-semibold);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.currency-toggle-btn:hover {
  background: var(--neutral-200);
  border-color: var(--neutral-300);
}

.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  z-index: 110;
}

.currency-dropdown-menu.show {
  display: flex;
}

.currency-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--neutral-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.currency-opt-btn:hover, .currency-opt-btn.active {
  background-color: var(--primary-50);
  color: var(--primary-700);
  font-weight: var(--fw-bold);
}

/* User Account Menu */
.user-menu-wrap {
  position: relative;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-badge:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  color: var(--neutral-0);
  font-weight: var(--fw-bold);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name-role {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.user-name-role .name {
  font-weight: var(--fw-bold);
  font-size: 0.8125rem;
  color: var(--neutral-900);
}

.user-name-role .role-tag {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-700);
  text-transform: capitalize;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  color: var(--neutral-800);
  cursor: pointer;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: var(--neutral-950);
  color: var(--neutral-400);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col p {
  color: var(--neutral-400);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.dpiit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--neutral-300);
}

.footer-col-title {
  color: var(--neutral-0);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a, .footer-links-list button {
  color: var(--neutral-400);
  font-size: 0.84rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover, .footer-links-list button:hover {
  color: var(--neutral-0);
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-0);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  color: var(--neutral-0);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--neutral-500);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a, .footer-legal-links button {
  color: var(--neutral-400);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
}

.footer-legal-links a:hover, .footer-legal-links button:hover {
  color: var(--neutral-0);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--neutral-0);
  box-shadow: var(--shadow-xl);
  animation: toastSlideIn 250ms ease-out forwards;
  min-width: 300px;
  max-width: 440px;
}

.toast-success { background: linear-gradient(135deg, #15803d, #16a34a); border-left: 4px solid #4ade80; }
.toast-error   { background: linear-gradient(135deg, #991b1b, #dc2626); border-left: 4px solid #f87171; }
.toast-info    { background: linear-gradient(135deg, #0d3b6e, #2563eb); border-left: 4px solid #60a5fa; }
.toast-warning { background: linear-gradient(135deg, #b45309, #d97706); border-left: 4px solid #fbbf24; }

/* ==========================================================================
   MODAL WINDOW BASE
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: overlayFadeIn 200ms ease;
}

.modal-dialog {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalScaleUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--neutral-200);
}

.modal-header-gradient {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-600) 100%);
  color: var(--neutral-0);
  padding: 1.75rem 2rem 1.25rem;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--neutral-0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.modal-body-content {
  padding: 1.75rem 2rem 2.25rem;
}

/* ==========================================================================
   FLOATING TALENTAI ASSISTANT
   ========================================================================== */
.ai-bot-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  color: var(--neutral-0);
  border: none;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  box-shadow: 0 8px 30px rgba(13, 59, 110, 0.4);
  cursor: pointer;
  transition: all var(--transition-spring);
}

.ai-bot-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(13, 59, 110, 0.5);
}

.ai-bot-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--neutral-200);
  z-index: 810;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: botSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-bot-header {
  background: linear-gradient(135deg, var(--primary-700), var(--accent-700));
  color: var(--neutral-0);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--neutral-50);
}

.ai-bot-input-bar {
  padding: 0.75rem 1rem;
  background: var(--neutral-0);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   PAGE LOADER PLACEHOLDER
   ========================================================================== */
.page-loader-placeholder {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--neutral-500);
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3.5px solid var(--neutral-200);
  border-top-color: var(--primary-700);
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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