/* ============================================================
   Buzznation Client Requirement Portal – Custom Styles
   ============================================================ */

:root {
  --buzz-red:    #e63946;
  --buzz-dark:   #1a1a2e;
  --buzz-mid:    #16213e;
  --buzz-blue:   #0f3460;
  --buzz-light:  #f8f9fa;
  --sidebar-w:   260px;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

/* ---- Navbar ---- */
.buzz-navbar {
  background: linear-gradient(90deg, var(--buzz-dark) 0%, var(--buzz-mid) 100%);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.buzz-navbar .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.buzz-navbar .brand-name span { color: var(--buzz-red); }
.buzz-navbar .nav-link { color: rgba(255,255,255,.8) !important; font-size:.9rem; }
.buzz-navbar .nav-link:hover { color: #fff !important; }

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  min-height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid #e0e0e0;
  padding-top: 1rem;
  position: fixed;
  top: 56px;
  left: 0;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,.06);
  overflow-y: auto;
}
.sidebar .nav-link {
  color: #555;
  padding: .65rem 1.5rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--buzz-red);
  background: rgba(230,57,70,.06);
  border-left-color: var(--buzz-red);
}
.sidebar .nav-link i { width: 18px; text-align:center; }
.sidebar-section {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  padding: 1rem 1.5rem .3rem;
}

/* ---- Main content ---- */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 2rem;
  min-height: calc(100vh - 56px);
  flex: 1;      /* grow to fill remaining flex space beside the fixed sidebar */
  min-width: 0; /* prevent flex children from overflowing */
}

/* ---- Stat Cards ---- */
.stat-card {
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: .2;
}
.stat-card h3 { font-size: 2.2rem; font-weight: 700; margin: 0; }
.stat-card p  { margin: 0; opacity: .85; font-size: .9rem; }
.stat-card.red    { background: linear-gradient(135deg, #e63946, #c1121f); }
.stat-card.blue   { background: linear-gradient(135deg, #457b9d, #1d3557); }
.stat-card.green  { background: linear-gradient(135deg, #2dc653, #1a7431); }
.stat-card.orange { background: linear-gradient(135deg, #f4a261, #e76f51); }
.stat-card.purple { background: linear-gradient(135deg, #7b2d8b, #4a0e6a); }
.stat-card.teal   { background: linear-gradient(135deg, #20b2aa, #008080); }

/* ---- Status Badges ---- */
.badge { font-size: .75rem; padding: .35em .65em; }

/* ---- Notification Bell ---- */
.notif-bell { position: relative; cursor: pointer; }
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--buzz-red);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.notif-dropdown {
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0;
}
.notif-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: #f8f9fa; }
.notif-item.unread { background: #fff8f8; border-left: 3px solid var(--buzz-red); }
.notif-time { font-size: .75rem; color: #aaa; }

/* ---- Tables ---- */
.table-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
}
.table-card .table { margin: 0; }
.table-card .table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #666;
  border-bottom: 2px solid #e9ecef;
}
.table-card .table td { vertical-align: middle; font-size: .9rem; }

/* ---- Project Cards ---- */
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--buzz-red);
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.project-card .project-title { font-weight: 700; font-size: 1rem; color: var(--buzz-dark); }
.project-card .project-meta  { font-size: .8rem; color: #888; }

/* ---- File Upload Area ---- */
.upload-zone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fafafa;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--buzz-red);
  background: rgba(230,57,70,.04);
}
.upload-zone i { font-size: 2.5rem; color: #ccc; margin-bottom: .75rem; }
.upload-zone.dragover i { color: var(--buzz-red); }
.file-list { margin-top: 1rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: .5rem;
  font-size: .85rem;
}
.file-item .file-name { flex: 1; font-weight: 500; word-break: break-all; }
.file-item .file-size { color: #888; white-space: nowrap; }
.file-item .remove-file { cursor: pointer; color: var(--buzz-red); }
.progress-bar-wrap {
  height: 4px;
  background: #eee;
  border-radius: 4px;
  margin-top: .3rem;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--buzz-red), #c1121f);
  transition: width .3s;
}

/* ---- Forms ---- */
.form-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--buzz-dark);
  border-bottom: 2px solid var(--buzz-red);
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.form-label { font-weight: 600; font-size: .88rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--buzz-red);
  box-shadow: 0 0 0 .2rem rgba(230,57,70,.2);
}

/* ---- Buttons ---- */
.btn-buzz {
  background: linear-gradient(135deg, var(--buzz-red), #c1121f);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: .55rem 1.5rem;
  border-radius: 8px;
  transition: opacity .2s;
}
.btn-buzz:hover { opacity: .9; color: #fff; }

/* ---- Page Header ---- */
.page-header {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; color: var(--buzz-dark); }

/* ---- Role badge ---- */
.role-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .3em .8em;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.role-badge.admin      { background: #1a1a2e; color: #fff; }
.role-badge.sales      { background: #e63946; color: #fff; }
.role-badge.design     { background: #457b9d; color: #fff; }
.role-badge.operations { background: #2dc653; color: #fff; }

/* ---- Deadline countdown ---- */
.deadline-badge {
  padding: .3em .7em;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.deadline-badge.urgent  { background: #ffe0e0; color: #c1121f; }
.deadline-badge.warning { background: #fff3cd; color: #856404; }
.deadline-badge.ok      { background: #d1e7dd; color: #0a3622; }

/* ---- Tabs ---- */
.nav-tabs .nav-link { color: #555; font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--buzz-red); border-bottom-color: var(--buzz-red); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; }
  .stat-card { margin-bottom: 1rem; }
}

/* ---- Misc ---- */
.cursor-pointer { cursor: pointer; }
.text-buzz { color: var(--buzz-red); }
.bg-buzz    { background-color: var(--buzz-red) !important; }
.divider    { border-top: 1px solid #f0f0f0; margin: 1rem 0; }
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #aaa;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
