/* ============================================================
   🔠 BRAND LABEL STYLING
   ============================================================ */
   .brand-label {
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
  }
  
  .brand-label.alt-brand {
    color: #a63eff;
    font-family: 'Roboto Slab', serif;
  }
  

/* ============================================================
   🎛️ PAGE HEADER / NAVIGATION BAR
   ============================================================ */

   .header-bar {
    background-color: #1a2942;
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }
  
  


  .logo {
    width: 120px;
    height: 40px;
    background-image: url('https://static.wixstatic.com/media/19456a_1f594cf3b8c64987b2bbd25fae394fbf~mv2.png');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    filter: brightness(0) invert(1);
  }
  
  .logo-center {
    width: 120px;
    height: 40px;
    background-image: url('https://static.wixstatic.com/media/19456a_1f594cf3b8c64987b2bbd25fae394fbf~mv2.png');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    filter: brightness(0) invert(1);
  }
  

  .header-content {
    text-align: center;
    flex-grow: 1;
    margin-left: -120px; /* Offset to center the text accounting for logo */
  }
  
  .header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
  }
  
  .header-content p {
    font-size: 0.95rem;
    margin: 0;
    color: #c8d2e0;
  }
  
  
  .back-btn,
  .logout-btn {
      background-color: white;
      color: #1a2942;
      border: 1px solid #1a2942; /* Add thin border */
      padding: 0.5rem 1rem;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 500;
      transition: all 0.2s ease;
      text-decoration: none;
  }
  
  .back-btn:hover,
  .logout-btn:hover {
      background-color: #f0f0f0;
      text-decoration: none;
      color: #1a2942;
  }
  
  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .back-btn {
      align-self: flex-end;
    }
  }
  
  
  /* ============================================================
   🔁 RESPONSIVE MEDIA QUERIES
   ============================================================ */

  @media (max-width: 768px) {
    .card,
    .form-section {
      padding: 1rem;
    }
  
    .form-row {
      flex-direction: column;
    }
  
    .btn {
      width: 100%;
    }
  }
  



/* ============================================================
   🔁 VARIABLES
   ============================================================ */
:root {
  --primary-color: #183257;
  --secondary-color: #f8f9fa;
  --border-color: #e9ecef;
  --primary-light: #435a85;
  --unfilled-color: #BCC8D7;
  --background-color: #f2f4f8;
  --card-bg: #ffffff;
  --text-color: #183257;
  --primary-color-50: rgba(24, 50, 87, 0.5);
}

/* ============================================================
   🧼 BASE RESET & BODY
   ============================================================ */
   body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: #BCC8D6;
  }
  

/* ============================================================
   🧱 LAYOUT / CONTAINERS / CARDS
   ============================================================ */
.container {
  max-width: 1400px;
  margin: 20px auto;
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(24, 50, 87, 0.08), 0 4px 8px rgba(24, 50, 87, 0.06);
  overflow: visible !important;
}

.card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-header,
.section-header h2,
.section-header i {
    font-size: 1.25rem;
    /* opacity: 0.8; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* ============================================================
   🧾 FORM CONTROLS
   ============================================================ */
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  border-radius: 6px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.added-items-list {
  margin-top: 0.5rem;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: var(--primary-color);
}

label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: block;
}

/* ============================================================
   🔘 BUTTONS
   ============================================================ */
    .btn {
        font-weight: 500;
        border-radius: 6px;
        padding: 0.5rem 1rem;
        transition: background 0.2s ease;
    }

    .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    }

    .btn-primary:hover {
    background-color: var(--primary-light);
    }

    .btn-success {
    background-color: #198754;
    color: white;
    }

    .btn-danger {
    background-color: #dc3545;
    color: white;
    }


    .btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    }

    .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    }
  
/* ============================================================
   🪟 MODALS
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-title {
  color: #dc3545;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  transition: all 0.2s;
}

.modal-btn.cancel {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.modal-btn.delete {
  background: #dc3545;
  color: white;
}

.modal-btn:hover {
  opacity: 0.9;
}

/* ============================================================
   📊 SCORE VISUALIZATION
   ============================================================ */
.score-ring {
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
      var(--primary-color) 0% 0%,
      var(--unfilled-color) 0% 100%
  );
}

.score-ring::before {
  content: '';
  position: absolute;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.score-ring .score-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.score-percent {
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary-color);
}

.score-fraction {
  color: var(--primary-color-50);
}

.dimension-row {
  display: grid;
  grid-template-columns: 250px 1fr 150px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 8px;
}

.dimension-score-bg {
  background-color: var(--unfilled-color);
  border-radius: 10px;
  height: 24px;
}

.dimension-score {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 10px;
}

.dimension-score-text {
  text-align: right;
}

.percentage {
  font-weight: 500;
  color: var(--primary-color);
}

.raw-score {
  color: var(--primary-color-50);
}

.score-ring:hover {
    transform: scale(1.03);
    transition: transform 0.2s ease;
  }
  
/* ============================================================
   🧾 INFO SECTION
   ============================================================ */
.info-section {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.info-value {
  font-weight: 500;
  color: var(--primary-color);
}

/* ============================================================
   🖨️ PRINT OVERRIDES
   ============================================================ */
@media print {
  body {
    background: white !important;
    margin: 0 !important;
  }
  .container {
    padding: 0 !important;
  }
  .modal,
  .modal-backdrop,
  .print-button {
    display: none !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  .score-ring,
  .dimension-score {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================
   🧩 FORM SECTION STYLING
   ============================================================ */
   .section-container {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  }
  
  .form-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  
  .section-content {
    padding-top: 1rem;
  }
  
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .form-group {
    flex: 1;
    min-width: 220px;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
  }
  
  .form-submit {
    text-align: center;
    margin-top: 2rem;
  }
  
  .form-submit .btn {
    min-width: 200px;
  }
  
  /* ============================================================
   🧠 TYPOGRAPHY & HEADINGS
   ============================================================ */

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  p {
    color: var(--primary-color-50);
  }
  
/* ============================================================
   🔑 LOGIN PAGE SPECIFIC STYLES
   ============================================================ */
.login-container {
    max-width: 480px;
    margin: 4rem auto;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.login-container .header-bar {
    background-color: var(--primary-color);
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.login-container .header-content {
    flex-grow: 1;
    text-align: center;
}

.login-container .header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.login-container .header-content p {
    font-size: 0.95rem;
    margin: 0;
    color: #c8d2e0;
}

.login-container .section-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0 0 12px 12px;
}

.login-container .form-section {
    padding: 0;
    box-shadow: none;
}

.login-content {
    text-align: center;
    padding: 1rem 0;
}

.login-content p {
    color: var(--primary-color-50);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.g_id_signin {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

#errorMessage {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Update the existing container styles to not affect login page */
.container:not(.login-container) {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

/* ============================================================
   📋 INDEX PAGE SPECIFIC STYLES
   ============================================================ */
.content {
    padding: 0 30px 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-button:hover {
    background: rgba(24, 50, 87, 0.08);
    transform: translateY(-1px);
}

.filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(24, 50, 87, 0.05);
}

.filter-group select {
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23183257%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 12px auto;
}

.filter-group select:hover,
.filter-group input[type="date"]:hover {
    border-color: #BCC8D6;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 50, 87, 0.1);
    outline: none;
}

.clear-filters-btn {
    background: linear-gradient(to bottom, #dc3545, #c82333);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
    transition: all 0.2s ease;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Table Styles */
.table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #1a2942;
    color: white;
    font-weight: 500;
    padding: 1rem;
    text-align: left;
    border: none;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.copy-link-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    background: none;
    color: #1a2942;
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    color: #2a3952;
}

.edit-link,
.duplicate-client,
.delete-client {
    color: #1a2942;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
}

.delete-client {
    color: #dc3545;
}

.responses-count {
    font-weight: 500;
    color: #1a2942;
}

.table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table td ul li {
    margin-bottom: 0.25rem;
}

.action-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}
  