/* ============================================================
   Corporate Games Ghana Manager — Public CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --cggm-primary:   #005BAC;
  --cggm-secondary: #F7B500;
  --cggm-success:   #28A745;
  --cggm-danger:    #DC3545;
  --cggm-radius:    14px;
}

/* === Base === */
.cggm-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  color: #1a1a2e;
}

.cggm-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cggm-primary);
  position: relative;
  padding-bottom: 12px;
}

.cggm-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--cggm-secondary);
  border-radius: 4px;
}

/* === Cards === */
.cggm-card {
  border-radius: var(--cggm-radius);
  overflow: hidden;
}

.cggm-card-header {
  background: var(--cggm-primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
}

/* === Nav Tabs === */
.cggm-tabs .nav-link {
  color: #555;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  transition: color .2s, border-color .2s;
}

.cggm-tabs .nav-link.active {
  color: var(--cggm-primary);
  border-bottom-color: var(--cggm-primary);
  font-weight: 700;
  background: transparent;
}

.cggm-tabs .nav-link:hover:not(.active) {
  color: var(--cggm-primary);
  border-bottom-color: rgba(0,91,172,.3);
}

/* === Buttons === */
.btn-primary {
  background: var(--cggm-primary);
  border-color: var(--cggm-primary);
}

.btn-primary:hover {
  background: #004a90;
  border-color: #004a90;
}

/* === Forms === */
.form-control:focus, .form-select:focus {
  border-color: var(--cggm-primary);
  box-shadow: 0 0 0 .2rem rgba(0,91,172,.15);
}

.form-label.fw-semibold {
  color: #333;
}

/* === Photo preview === */
.cggm-photo-preview {
  border: 3px dashed #ccc;
  transition: border-color .2s;
}

.cggm-photo-preview:hover {
  border-color: var(--cggm-primary);
}

/* === Chat === */
.cggm-chat-msg {
  max-width: 68%;
  padding: 10px 16px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: .9rem;
  margin-bottom: 10px;
  word-break: break-word;
}

.cggm-chat-msg.sent {
  background: var(--cggm-primary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.cggm-chat-msg.received {
  background: #f0f0f8;
  color: #1a1a2e;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.cggm-chat-time {
  font-size: 10px;
  opacity: .6;
  margin-top: 2px;
  text-align: right;
}

.cggm-chat-msg.received .cggm-chat-time {
  text-align: left;
}

/* === Alerts === */
.cggm-alert {
  border-radius: var(--cggm-radius);
  font-size: .92rem;
}

/* === Table responsive === */
.cggm-wrap .table {
  font-size: .9rem;
}

/* === Club header avatar === */
.cggm-club-avatar {
  flex-shrink: 0;
}

/* === Status badges === */
.badge {
  font-weight: 500;
}

/* === Responsive === */
@media (max-width: 576px) {
  .cggm-wrap {
    padding: 16px 12px;
  }
  .cggm-heading {
    font-size: 1.4rem;
  }
  .cggm-chat-msg {
    max-width: 88%;
  }
}

/* === Animations === */
.card {
  animation: cggm-fade-in .3s ease;
}

@keyframes cggm-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
