﻿/* =====================================================
   MANAGER PORTAL CSS
   ===================================================== */


/* =========================
   Sticky Footer Layout
========================= */

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background: #f5f7fb;
}

.manager-shell {
  min-height: 100vh;
}

/* Content expands */
.manager-main {
  flex: 1;
  padding: 25px 0;
  background: #f5f7fb;
}

/* =========================
   Header
========================= */

.manager-header {
  background: #212529;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 12px 0;
}

.manager-header .container {
  max-width: 1200px;
}

.manager-user-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.manager-header .btn {
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 14px;
}


/* =========================
   Footer
========================= */

.manager-footer {
  background: #212529;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
}

.manager-footer .container {
  max-width: 1200px;
}

.manager-footer a {
  color: #ffffff;
  text-decoration: none;
}

.manager-footer a:hover {
  text-decoration: underline;
}


/* =========================
   Cards / Panels
========================= */

.manager-utility {
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.manager-utility .card-body {
  background: #ffffff;
  padding: 24px;
}

.manager-utility-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.manager-utility-header i {
  font-size: 18px;
}


/* =========================
   Tables
========================= */

.manager-table {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.manager-table th {
  background: #f1f3f7;
  font-weight: 600;
}

.manager-table td,
.manager-table th {
  vertical-align: middle;
  padding: 10px 12px;
}


/* =========================
   Buttons
========================= */

.btn-manager-primary {
  background: #0d6efd;
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-manager-primary:hover {
  background: #0b5ed7;
  color: #ffffff;
}

.btn-manager-success {
  background: #198754;
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-manager-success:hover {
  background: #157347;
  color: #ffffff;
}

.btn-manager-danger {
  background: #dc3545;
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-manager-danger:hover {
  background: #bb2d3b;
  color: #ffffff;
}

/* =========================
   Button Link Fix
========================= */

.manager-header .btn,
.manager-footer .btn,
.manager-header .btn:hover,
.manager-footer .btn:hover,
.manager-header a.btn,
.manager-footer a.btn {
  text-decoration: none !important;
}

.manager-header a.btn:hover,
.manager-footer a.btn:hover {
  text-decoration: none !important;
}

/* =========================
   Alerts
========================= */

.manager-alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
}


/* =========================
   Forms
========================= */

.manager-form-control {
  border-radius: 8px;
  padding: 8px 10px;
}

.manager-form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.25);
  border-color: #0d6efd;
}


/* =========================
   Badges
========================= */

.badge-manager {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
}


/* =========================
   PayPal Safety
========================= */

iframe[src*="paypal"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}


/* =========================
   Spacing Utilities
========================= */

.manager-mt {
  margin-top: 20px;
}

.manager-mb {
  margin-bottom: 20px;
}

.manager-p {
  padding: 20px;
}


/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

  .manager-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .manager-user-name {
    font-size: 13px;
  }

  .manager-main {
    padding: 18px 10px;
  }

}


/* =========================
   Animations
========================= */

.manager-fade-in {
  animation: managerFade 0.3s ease;
}

@keyframes managerFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Stat Cards
========================= */

.manager-stat-card{
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px 20px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
  position:relative;
  overflow:hidden;
}

/* Left color accent */
.manager-stat-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  border-radius:4px 0 0 4px;
}

/* Team */
.manager-stat-team::before{
  background:#0d6efd;
}

/* Amount */
.manager-stat-amount::before{
  background:#198754;
}

/* Icon bubble */
.manager-stat-icon{
  width:46px;
  height:46px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#fff;
  flex-shrink:0;
}

.manager-stat-team .manager-stat-icon{
  background:#0d6efd;
}

.manager-stat-amount .manager-stat-icon{
  background:#198754;
}

/* Text */
.manager-stat-label{
  font-size:13px;
  color:#6c757d;
  font-weight:600;
  letter-spacing:0.3px;
  margin-bottom:2px;
}

.manager-stat-value{
  font-size:18px;
  font-weight:700;
  color:#212529;
}

.manager-stat-money{
  font-size:22px;
  color:#198754;
}

.team-hl-target.team-highlight{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  background: rgba(13,110,253,0.10);
  outline: 2px solid rgba(13,110,253,0.45);
  animation: teamPulse 1.2s ease-in-out 0s 3;
}

@keyframes teamPulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,110,253,0.18); }
  50%  { box-shadow: 0 0 0 10px rgba(13,110,253,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(13,110,253,0.18); }
}

/* Make the row a positioning context */
tr.team-row{
  position: relative;
}

/* Ensure cells sit above overlay */
tr.team-row > td{
  position: relative;
  z-index: 2;
}

/* Put overlay behind all cells, spanning full row */
tr.team-row .team-row-overlay{
  position: absolute;
  left: 6px;
  right: 6px;
  top: 4px;
  bottom: 4px;
  border-radius: 12px;
  background: rgba(13,110,253,0.08);
  border: 2px solid rgba(13,110,253,0.45);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
}

/* The “active highlight” state toggled by JS */
tr.team-row.team-highlight .team-row-overlay{
  opacity: 1;
  transform: scale(1);
  animation: teamRowPulse 1.2s ease-in-out 0s 3;
}

/* =========================
   FULL ROW HIGHLIGHT (TABLE SAFE)
========================= */

tr.team-row.team-highlight td{
  background: rgba(13,110,253,0.08);
  box-shadow:
    inset 0 2px 0 rgba(13,110,253,0.45),
    inset 0 -2px 0 rgba(13,110,253,0.45);
}

/* left edge */
tr.team-row.team-highlight td:first-child{
  box-shadow:
    inset 2px 0 0 rgba(13,110,253,0.45),
    inset 0 2px 0 rgba(13,110,253,0.45),
    inset 0 -2px 0 rgba(13,110,253,0.45);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* right edge */
tr.team-row.team-highlight td:last-child{
  box-shadow:
    inset -2px 0 0 rgba(13,110,253,0.45),
    inset 0 2px 0 rgba(13,110,253,0.45),
    inset 0 -2px 0 rgba(13,110,253,0.45);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* pulse glow */
tr.team-row.team-highlight td{
  animation: teamRowPulse 1.2s ease-in-out 0s 3;
}

@keyframes teamRowPulse{
  0%   { background: rgba(13,110,253,0.06); }
  50%  { background: rgba(13,110,253,0.14); }
  100% { background: rgba(13,110,253,0.06); }
}

.manager-dashboard-event-flyer {
  width: 76px;
  height: 96px;
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manager-dashboard-event-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(56, 189, 248, 0.18) !important;
    color: inherit;
}

.table-hover > tbody > tr {
    transition: background-color 0.15s ease-in-out;
}

.manager-footer {
    margin-top: 2rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
}

.manager-footer-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: #fff !important;
}

