/*
Theme Name: Professional Enterprise Chat Theme
Theme URI: https://example.com
Author: Professional Developer
Description: A modern, professional multi-page WordPress theme featuring a boxed centered layout, customizer action buttons, and interactive communication hubs.
Version: 5.5
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
   ========================================================================== */
.site-header {
  width: 100%;
  max-width: 1100px;
  margin: 16px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 16px;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

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

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

.site-nav ul li a {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  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 (Register, Login, Chat) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  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: 6px;
}
.inbox-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9px;
  line-height: 1.2;
}


/* ==========================================================================
   BOX 2: CONSTRAINED MAIN CONTENT & COMMUNICATION CARDS
   ========================================================================== */
.main-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.hero-heading h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-heading p {
  font-size: 15px;
  color: #64748b;
}

.communication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.comm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -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(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.06);
}

/* Card Accent Themes */
.comm-card.theme-blue { border-top: 4px 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: 4px 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: 4px 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: 14px;
  margin-bottom: 14px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

.comm-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.comm-action-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  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;
}

/* Generic Enterprise Box Styling for Other Pages */
.enterprise-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}


/* ==========================================================================
   BOX 3: FULL-WIDTH FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 40px;
  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: 24px;
  margin: 0;
  padding: 0;
}

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

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

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