/*
 * Copyright (c) 2026 Trusted Cognetics Ltd. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-Proprietary
 *
 * Proprietary and confidential. This file is part of Job Hunter AI
 * (jobseekercopilot.co.uk). Unauthorised copying, modification, distribution,
 * reverse engineering or use of this file, in whole or in part, by any means,
 * is strictly prohibited without the express written permission of the
 * copyright holder. See docs/TERMS_OF_SERVICE.md.
 */
/* client_context.css - banner and sidebar accents while a Job Hero works for a client.
   Loaded on every authenticated page; inert unless client_context.js adds the banner. */

:root {
  --jsk-cb-height: 44px;
}

.jsk-client-banner {
  position: sticky;
  top: 56px;
  z-index: 199;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--jsk-cb-height);
  padding: 6px 16px;
  background: linear-gradient(90deg, var(--color-navy-800, #1e3a5f), var(--color-indigo-600, #4f46e5));
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.jsk-client-banner--warn {
  background: linear-gradient(90deg, #92400e, #b45309);
}

.jsk-cb-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.jsk-cb-badge {
  flex-shrink: 0;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jsk-cb-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jsk-cb-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.jsk-cb-btn {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.jsk-cb-btn:hover,
.jsk-cb-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.jsk-cb-btn--ghost {
  border-color: transparent;
  text-decoration: underline;
}

/* The sidebar is sticky under the 56px header; make room for the banner. */
body.jsk-client-mode .sidebar {
  top: calc(56px + var(--jsk-cb-height));
  height: calc(100vh - 56px - var(--jsk-cb-height));
}

.sidebar-section--client {
  background: rgba(79, 70, 229, 0.07);
  border-bottom: 1px solid rgba(79, 70, 229, 0.18);
}

.sidebar-section--client .sidebar-section-title {
  color: var(--color-indigo-700, #4338ca);
}

/* Bell icon for "your Job Hero did something" notifications. */
.notif-icon--hero {
  background: #eef2ff;
  color: #4338ca;
}

@media (max-width: 720px) {
  .jsk-cb-text {
    display: none;
  }
}
