/* Golf Mentality - Executive Dashboard Portal Styling */
:root {
  --gm-green-deep: #0c261b;
  --gm-green-dark: #133b2a;
  --gm-green-primary: #1c523a;
  --gm-green-mid: #256b4c;
  --gm-green-light: #2e7d58;
  --gm-green-soft: #eaf3ee;
  --gm-green-border: #cadcd2;
  
  --gm-gold-primary: #c59b27;
  --gm-gold-dark: #9e7a17;
  --gm-gold-soft: #fef8eb;
  --gm-gold-border: #f3dfa8;
  --gm-gold-glow: rgba(197, 155, 39, 0.25);
  
  --gm-ink: #102118;
  --gm-ink-muted: #52675b;
  --gm-ink-subtle: #798f83;
  --gm-bg: #f4f6f3;
  --gm-surface: #ffffff;
  --gm-line: #dbe4dc;
  
  --gm-shadow-sm: 0 1px 3px rgba(12, 38, 27, 0.06);
  --gm-shadow-card: 0 2px 8px rgba(12, 38, 27, 0.04), 0 8px 24px rgba(12, 38, 27, 0.04);
  --gm-shadow-hover: 0 8px 24px rgba(12, 38, 27, 0.12), 0 16px 40px rgba(12, 38, 27, 0.08);
}

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

body.dashboard-page {
  min-height: 100vh;
  background-color: var(--gm-bg);
  background-image: 
    radial-gradient(at 100% 0%, rgba(28, 82, 58, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(197, 155, 39, 0.06) 0px, transparent 50%),
    url('images/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--gm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 60px;
}

/* Semi-transparent dark luxury backdrop overlay for reading clarity */
.dashboard-overlay {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(12, 38, 27, 0.88) 0%, rgba(8, 24, 18, 0.94) 340px, rgba(14, 33, 25, 0.96) 100%);
  display: flex;
  flex-direction: column;
}

/* ─── Top Navigation Bar ─── */
.dashboard-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #133b2a 0%, #0c261b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1344px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.dashboard-brand:hover {
  opacity: 0.92;
}

.dashboard-brand-logo {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.dashboard-nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-nav-section {
  color: #c5d8cb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sync status chip */
.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #a7f3d0;
  white-space: nowrap;
}

.sync-dot-active {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* User profile chip */
.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 10px;
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.35), rgba(197, 155, 39, 0.15));
  border: 1px solid var(--gm-gold-primary);
  color: #fef8eb;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-meta-text {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.user-role-label {
  color: #94d3ae;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.btn-logout {
  background: rgba(220, 38, 38, 0.85);
  color: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.5);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: 4px;
}

.btn-logout:hover {
  background: #dc2626;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* ─── Main Content Container ─── */
.dashboard-main-container {
  max-width: 1344px;
  margin: 0 auto;
  padding: 36px 32px 60px;
  width: 100%;
}

/* ─── Hero / Welcome Header ─── */
.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 125, 88, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-tag-badge .dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.dashboard-hero h1 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.dashboard-hero h1 .title-period {
  color: var(--gm-gold-primary);
}

.dashboard-hero .lead-text {
  color: #a3c4b1;
  font-size: 15px;
  font-weight: 400;
  max-width: 650px;
  line-height: 1.5;
}

.hero-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.quick-action-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #047857;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.quick-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.quick-action-amber {
  background: rgba(197, 155, 39, 0.15);
  color: #fde68a;
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.quick-action-amber:hover {
  background: rgba(197, 155, 39, 0.25);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

/* ─── Operational Sections ─── */
.dashboard-section-block {
  margin-bottom: 34px;
}

.section-label-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label-bar {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--gm-gold-primary);
}

.section-label-bar.bar-green {
  background: #34d399;
}

.section-label-bar.bar-slate {
  background: #94a3b8;
}

.section-label-title {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ─── Grid Cards ─── */
.dashboard-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dashboard-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.dashboard-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(197, 155, 39, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px var(--gm-gold-glow);
}

.dashboard-card.card-highlight-amber {
  border-color: rgba(197, 155, 39, 0.35);
  background: rgba(197, 155, 39, 0.08);
}

.dashboard-card.card-highlight-amber:hover {
  border-color: var(--gm-gold-primary);
  background: rgba(197, 155, 39, 0.14);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.dashboard-card:hover .card-icon-pill {
  transform: scale(1.08);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.icon-teal {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #5eead4;
}

.icon-amber {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.icon-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.icon-purple {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.icon-rose {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.icon-slate {
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* Card Badges */
.card-badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-amber-pulse {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
  animation: pulse-dot 2s infinite ease-in-out;
}

.card-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.dashboard-card:hover .card-title {
  color: #fef08a;
}

.card-desc {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer-action {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.dashboard-card:hover .card-footer-action {
  color: #fef08a;
}

.card-action-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.dashboard-card:hover .card-action-arrow {
  transform: translateX(4px);
}

/* Cloud Tools Card with interactive sub-buttons */
.cloud-tools-card {
  cursor: default;
}

.cloud-tools-card:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.12);
}

.cloud-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.btn-cloud-tool {
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-cloud-tool:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* ─── Responsive Queries ─── */
@media (max-width: 1024px) {
  .dashboard-main-container {
    padding: 28px 20px 50px;
  }
}

@media (max-width: 768px) {
  .dashboard-top-nav {
    padding: 12px 16px;
    min-height: 64px;
  }
  
  .dashboard-nav-divider,
  .dashboard-nav-section {
    display: none;
  }
  
  .user-role-label {
    display: none;
  }
  
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-grid-3,
  .dashboard-grid-4 {
    grid-template-columns: 1fr;
  }
}
