@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  /* Color System */
  --bg-primary: #F8F7F4;
  --dark-primary: #101820;
  --dark-secondary: #1C252D;
  --gold-accent: #C7A86B;
  --gold-light: rgba(199, 168, 107, 0.12);
  --white: #FFFFFF;
  --text-primary: #171717;
  --text-secondary: #6B6B6B;
  --border-color: #E5E2DC;
  --border-light: #F0EDE8;
  
  /* Layout & Spacing */
  --max-card-width: 480px;
  --padding-horizontal: 20px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 30px rgba(16, 24, 32, 0.08);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 84px; /* Space for sticky bottom bar */
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Material Symbols Utility */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Main Container Layout */
.app-container {
  width: 100%;
  max-width: var(--max-card-width);
  margin: 0 auto;
  padding: 0 var(--padding-horizontal);
}

/* Top Navigation / Branding Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0.85)), url('../img/Hotel-profil.jpg') center/cover no-repeat;
  border-radius: 0 0 20px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

.brand-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-accent);
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
  line-height: 1.2;
}

/* Main Card Wrapper */
.card-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 24px;
}

/* Profile Hero Banner & Photo */
.profile-banner {
  background: linear-gradient(rgba(16, 24, 32, 0.5), rgba(16, 24, 32, 0.8)), url('../img/Hotel-profil.jpg') center/cover no-repeat;
  height: 110px;
  position: relative;
}

.profile-photo-container {
  display: flex;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-medium);
  background-color: var(--border-light);
}

/* Employee Header Details */
.profile-info {
  text-align: center;
  padding: 0 20px 20px;
}

.employee-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.employee-position {
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.employee-location {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.employee-location .material-symbols-rounded {
  font-size: 16px;
  color: var(--gold-accent);
}

/* Primary CTA Button - Save Contact */
.action-primary {
  padding: 0 20px 16px;
}

.btn-save-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background-color: var(--dark-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.15);
}

.btn-save-contact:active, .btn-save-contact:hover {
  background-color: var(--dark-secondary);
  transform: translateY(-1px);
}

.btn-save-contact .material-symbols-rounded {
  font-size: 22px;
  color: var(--gold-accent);
}

/* Secondary Action Grid (WhatsApp & Call) */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 24px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background-color: var(--bg-primary);
  color: var(--dark-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.btn-secondary:active, .btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--gold-accent);
}

.btn-secondary .material-symbols-rounded {
  font-size: 20px;
  color: var(--dark-primary);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 0 20px 20px;
}

/* Contact List Info */
.contact-section {
  padding: 0 20px 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.contact-item:hover, .contact-item:active {
  border-color: var(--border-color);
  background-color: var(--white);
}

.contact-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-primary);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  margin-left: auto;
  color: var(--gold-accent);
  font-size: 18px;
  flex-shrink: 0;
}


/* QR Code Section */
.qr-section {
  text-align: center;
  padding: 0 20px 28px;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 12px auto 16px;
  padding: 12px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img, .qr-box svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--dark-primary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-share:hover, .btn-share:active {
  background-color: var(--gold-light);
  border-color: var(--gold-accent);
  color: var(--dark-primary);
}

/* Footer Section */
.footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 16px 0 24px;
}

.footer-text a {
  color: var(--gold-accent);
  font-weight: 500;
}

/* Sticky Bottom Action Bar for Mobile */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 10px var(--padding-horizontal);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.sticky-bar-content {
  max-width: var(--max-card-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.sticky-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--dark-primary);
  font-size: 11px;
  font-weight: 500;
  gap: 2px;
  transition: var(--transition-fast);
}

.sticky-action-btn:active {
  background-color: var(--bg-primary);
}

.sticky-action-btn .material-symbols-rounded {
  font-size: 20px;
  color: var(--gold-accent);
}

/* ==========================================================================
   Directory Page Specific Styling (index.html)
   ========================================================================== */

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.search-input:focus {
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

/* Filter Badges Horizontal Scroll */
.filter-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.filter-scroll-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
  background-color: var(--dark-primary);
  color: var(--white);
  border-color: var(--dark-primary);
}

/* Directory Employee Card Grid */
.directory-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.directory-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
  text-decoration: none;
}

.directory-card:hover, .directory-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--gold-accent);
}

.directory-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  margin-right: 14px;
  flex-shrink: 0;
  background-color: var(--bg-primary);
}

.directory-info {
  flex-grow: 1;
  overflow: hidden;
}

.directory-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.directory-position {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: var(--gold-light);
  color: var(--dark-primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.directory-arrow {
  color: var(--gold-accent);
  margin-left: 8px;
  flex-shrink: 0;
}

/* Empty search state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state .material-symbols-rounded {
  font-size: 48px;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: var(--dark-primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}
