/*
Theme Name: Professional Enterprise Chat Theme
Theme URI: https://example.com
Author: Professional Developer
Description: A modern, professional multi-page WordPress theme featuring a compact boxed layout, 5px spacing consistency, customizer action buttons, and interactive communication hubs.
Version: 5.6
License: GNU General Public License v2 or later
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

/* ==========================================================================
   BOX 1: CONSTRAINED CENTERED HEADER (5px Spacing)
   ========================================================================== */
.site-header {
  width: 100%;
  max-width: 1100px;
  margin: 5px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 5px;
  z-index: 1000;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.site-logo a {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* NAVIGATION MENU */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav ul li a {
  text-decoration: none;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a {
  color: #2563eb;
}

/* HEADER ACTION BUTTONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-custom-1 {
  background: transparent;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.btn-custom-1:hover { background: #eff6ff; }

.btn-custom-2 {
  background: transparent;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-custom-2:hover { background: #f1f5f9; color: #0f172a; }

.btn-custom-3 {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}
.btn-custom-3:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* INBOX BADGE */
.menu-item-inbox a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.inbox-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  line-height: 1.2;
}


/* ==========================================================================
   BOX 2: CONSTRAINED MAIN CONTENT & COMM GRID (5px Spacing)
   ========================================================================== */
.main-wrapper,
.chat-page-container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 5px auto;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-heading,
.chat-page-header {
  text-align: center;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  animation: bgPulseAnimation 12s infinite ease-in-out;
  transition: background-color 0.5s ease;
}

.hero-heading h1,
.chat-page-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.hero-heading p,
.chat-page-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.communication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 5px;
}

.comm-card,
.chat-content-box,
.enterprise-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.05);
}

/* Card Accent Themes */
.comm-card.theme-blue { border-top: 3px solid #2563eb; }
.comm-card.theme-blue .icon-box { background: #eff6ff; color: #2563eb; }
.comm-card.theme-blue .comm-action-btn:hover { background: #2563eb; border-color: #2563eb; }

.comm-card.theme-purple { border-top: 3px solid #7c3aed; }
.comm-card.theme-purple .icon-box { background: #f5f3ff; color: #7c3aed; }
.comm-card.theme-purple .comm-action-btn:hover { background: #7c3aed; border-color: #7c3aed; }

.comm-card.theme-emerald { border-top: 3px solid #059669; }
.comm-card.theme-emerald .icon-box { background: #ecfdf5; color: #059669; }
.comm-card.theme-emerald .comm-action-btn:hover { background: #059669; border-color: #059669; }

.comm-header-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.comm-header-icon h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.comm-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.comm-action-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.comm-action-btn:hover {
  color: #ffffff;
}


/* ==========================================================================
   BOX 3: FULL-WIDTH FOOTER (5px Spacing)
   ========================================================================== */
.site-footer {
  width: 100%;
  background: #0f172a;
  color: #94a3b8;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-nav ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-nav ul li a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 12px;
}