/* Use the imported fonts */
body {
    font-family: 'Signika', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #7143CD;
  }
  
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #7143CD;
    padding: 0.7em 2em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }
  nav.hide-nav {
    transform: translateY(-110%);
  }
  
  .nav-left {
    display: flex;
    align-items: center;
  }
  
  .nav-icon {
    height: 36px;
    margin-right: 12px;
  }
  
  .nav-logo {
    height: 30px;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.2em;
  }
  

  .nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.18s;
    text-decoration: none;
  }
  
  .nav-icon-btn:hover, .nav-icon-btn:focus {
    background: #fff2;
  }
  
  .nav-person-icon {
    width: 27px;
    height: 27px;
    stroke: #fff;
    transition: stroke 0.2s;
  }
  
  .nav-icon-btn:hover .nav-person-icon {
    stroke: #FBA116;
  }


  
  .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 400; /* light - 300, regular - 400, medium - 500, semibold - 600, bold - 700 */
    font-family: 'Signika', Arial, sans-serif;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.08em;
    background: none;        /* No background by default */
  }
  
  /* Only the text color changes on active page */
  .nav-link.active {
    color: #FBA116;
    background: none;        /* No background */
  }
  
  /* On hover, background shows and text turns purple for contrast */
  .nav-link:hover {
    color: #FBA116;
    background: none;
  }

  
  
  h1 {
    font-family: 'Grand Hotel', cursive;
    font-size: 2.7em;
    margin-top: 1.2em;
  }
  
  p {
    font-family: 'Signika', Arial, sans-serif;
    font-size: 1.2em;
  }
  

  .login-center-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .login-box {
    background: #fff;
    border-radius: 14px;
    padding: 2.8em 2em 2.5em 2em;
    box-shadow: 0 6px 40px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    min-width: 270px;
    max-width: 90vw;
    align-items: center;
  }
  
  .login-title {
    margin-bottom: 1.5em;
    color: #7143CD;
    font-size: 2em;
    font-family: 'Signika', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
  }
  
  .login-input {
    width: 100%;
    margin-bottom: 1.15em;
    padding: 0.85em 1.1em;
    border: 1.3px solid #c8bff1;
    border-radius: 8px;
    font-size: 1.08em;
    font-family: 'Signika', Arial, sans-serif;
    outline: none;
    transition: border 0.18s;
  }
  .login-input:focus {
    border-color: #7143CD;
    background: #f2effa;
  }
  
  .login-btn {
    width: 100%;
    padding: 0.95em 1.1em;
    background: #7143CD;
    color: #fff;
    font-size: 1.09em;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.17s;
    font-family: 'Signika', Arial, sans-serif;
    margin-top: 1em;
  }
  .login-btn:hover {
    background: #5932b2;
  }


  .login-remember-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.1em;
    margin-top: -0.5em;
  }
  
  .login-checkbox {
    accent-color: #7143CD; /* Modern browsers: purple check */
    width: 18px;
    height: 18px;
    margin-right: 0.6em;
  }
  
  .login-checkbox-label {
    font-size: 1em;
    color: #555;
    font-family: 'Signika', Arial, sans-serif;
    cursor: pointer;
    user-select: none;
  }



  .dashboard-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 18px 0 18px;
  }
  
  .dashboard-greeting {
    font-family: 'Signika', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.1em;
    margin: 36px 0 36px 0;
    color: #7143CD;
    text-align: left;
  }
  
  .dashboard-cube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2em 2em;
    margin-bottom: 3em;
  }
  
  .dashboard-cube {
    background: #F8F7FD;
    border-radius: 22px;
    box-shadow: 0 2px 18px rgba(113,67,205,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 12px 17px 12px;
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    position: relative;
    border: 2px solid #f3effd;
  }
  .dashboard-cube:hover, .dashboard-cube:focus {
    box-shadow: 0 4px 28px rgba(113,67,205,0.13);
    transform: translateY(-4px) scale(1.025);
    border-color: #7143CD33;
  }
  
  .cube-svg-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dashboard-cube-icon {
    display: block;
    width: 56px;
    height: 56px;
  }
  
  .dashboard-cube-plus
  
  .dashboard-cube-name {
    margin-top: 3px;
    font-family: 'Signika', Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #7143cd;
    text-align: center;
    letter-spacing: 0.02em;
  }
  
  /* Footer styles */
  .dashboard-footer {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: 'Signika', Arial, sans-serif;
    font-size: 1.0em;
    padding: 1.2em 0 1.2em 0;
    position: relative;
    margin-top: 4em;
  }
  
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-logo img {
    height: 28px;
    width: auto;
    display: block;
  }
  .footer-rights {
    font-size: 1.01em;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: 0.86;
  }


  .dashboard-cube-name,
.dashboard-cube:link .dashboard-cube-name,
.dashboard-cube:visited .dashboard-cube-name,
.dashboard-cube:hover .dashboard-cube-name,
.dashboard-cube:active .dashboard-cube-name {
  color: #7143CD !important;
}

.smize-form {
  display: flex;
  flex-direction: column;
  gap: 0.67em;
  max-width: 920px;
  margin: 84px auto 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #7143cd13;
  padding: 1.5em 2.3em;
}

.smize-label {
  font-size: 1.07em;
  color: #6541a9;
  font-weight: 600;
  margin-bottom: 0.08em;
  margin-top: 0.31em;
  font-family: 'Signika', Arial, sans-serif;
}

.smize-input, .smize-form select, .smize-form textarea {
  font-family: 'Signika', Arial, sans-serif;
  font-size: 1.06em;
  border-radius: 8px;
  border: 1.3px solid #c8bff1;
  padding: 0.8em 1em;
  margin-bottom: 0.07em;
  background: #f9f7ff;
  transition: border 0.18s;
  width: auto;
  box-sizing: border-box;
  outline: none;
}

.smize-input:focus, .smize-form select:focus, .smize-form textarea:focus {
  border-color: #7143CD;
  background: #f2effa;
}

.smize-btn {
  background: #7143CD;
  color: #fff;
  font-size: 1.14em;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  padding: 0.95em 0;
  margin-top: 1.5em;
  transition: background 0.16s;
  font-family: 'Signika', Arial, sans-serif;
  box-shadow: 0 2px 18px #7143cd1c;
}
.smize-btn:hover {
  background: #5932b2;
}

.smize-note {
  font-size: 0.97em;
  color: #7143cd;
  margin-bottom: 0.24em;
}

.smize-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-top: 1.2em;
  margin-bottom: 1.3em;
}



.tickets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin: 6px 0 24px 0;
  align-items: center;
}
.tickets-action-btn {
  background: #7143CD;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75em 1.45em;
  font-size: 1.06em;
  font-family: 'Signika', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #7143cd16;
  transition: background 0.18s, box-shadow 0.18s;
}
.tickets-action-btn:hover {
  background: #5932b2;
  box-shadow: 0 4px 16px #7143cd26;
}
.tickets-counter {
  background: #f7f6fd;
  color: #7143CD;
  font-weight: 700;
  border-radius: 7px;
  padding: 0.7em 1.3em;
  font-size: 1.04em;
  margin-left: 0.2em;
  border: 2px solid #e4defd;
  letter-spacing: 0.02em;
}


.tickets-table-header {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 40px;
  align-items: center;
  background: #f7f6fd;
  color: #7143CD;
  font-weight: 700;
  padding: 12px 20px 12px 20px;
  border-radius: 12px 12px 0 0;
  border: 1.5px solid #e7e2fd;
  margin-bottom: 2px;
  font-size: 1.07em;
  letter-spacing: 0.01em;
}

.tickets-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 40px;
  align-items: center;
  background: #F8F7FD;
  color: #3a246c;
  font-size: 1.04em;
  padding: 14px 20px 14px 20px;
  border-radius: 0;
  margin-bottom: 2px;
  border: 1.5px solid #f3effd;
  cursor: pointer;
  transition: box-shadow 0.16s, background 0.12s;
}
.tickets-table-row:hover {
  background: #edeafb;
  box-shadow: 0 4px 14px #7143cd18;
}

.tickets-table-row:first-child {
  border-radius: 0 0 0 0; /* Still no rounding for first row, unless single row case */
}

.tickets-table-row:last-child {
  border-radius: 0 0 14px 14px; /* Rounded only for last row */
}

.tickets-table-status {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tickets-table-reply {
  font-size: 0.97em;
}
.tickets-table-reply.required {
  color: #d33;
  font-weight: 600;
}
.tickets-table-reply.noreply {
  color: #36C466;
  font-weight: 500;
}
.tickets-table-arrow {
  text-align: center;
  font-size: 1.6em;
  color: #7143CD;
}


.ticket-meta {
  display: flex;
  gap: 1.6em;
  margin-bottom: 1em;
  font-weight: 600;
  color: #7143CD;
}
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2em;
}
.message-row {
  background: #f8f7fd;
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 13px 18px;
  font-size: 1em;
  box-shadow: 0 2px 10px #7143cd12;
  display: flex;
  flex-direction: column;
  max-width: 650px;
  word-break: break-all;
}
.message-employee { align-self: flex-end; background: #ece7fa; color: #5737a6;}
.message-meta {
  font-size: 0.93em;
  color: #937ac7;
  margin-bottom: 0.2em;
}
.reply-box {
  display: flex;
  gap: 0.7em;
  margin-bottom: 2em;
  margin-top: 1.5em;
  align-items: flex-end;
}
.reply-input {
  flex: 1;
  border-radius: 9px;
  border: 1px solid #d5c5f7;
  padding: 10px 13px;
  font-size: 1.04em;
  background: #f9f7fc;
  min-height: 48px;
  resize: vertical;
}
.reply-btn {
  background: #7143cd;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.ticket-actions {
  display: flex;
  gap: 1em;
  margin-bottom: 1.2em;
}
.ticket-actions button {
  background: #fff;
  border: 1.5px solid #7143cd;
  color: #7143cd;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.ticket-actions button:hover {
  background: #7143cd;
  color: #fff;
}


.modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 20;
  background: rgba(80,70,150,0.13);
  justify-content: center; align-items: center;
}
.modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px 26px 26px 26px;
  min-width: 310px;
  box-shadow: 0 2px 20px #7143cd30;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal label { font-weight: 600; color: #7143cd; }
.modal select, .modal button {
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 1em;
  border: 1px solid #c9b2f5;
}
.modal .actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal button {
  border: 1.5px solid #7143cd;
  color: #7143cd;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.modal button.primary {
  background: #7143cd;
  color: #fff;
}


.rating-meta{display:flex;gap:1.4em;margin-bottom:1em;font-weight:600;color:#7143CD;}
.rating-detail{background:#F8F7FD;border:1.5px solid #e7e2fd;border-radius:12px;padding:18px;white-space:pre-wrap;}
.deep-links{margin-top:24px;display:flex;gap:1em;flex-wrap:wrap;}
.deep-links button{background:#fff;border:1.5px solid #7143cd;color:#7143cd;padding:8px 20px;border-radius:8px;font-weight:600;cursor:pointer;}
.deep-links button:hover{background:#7143cd;color:#fff;}


.header-meta{
  display:flex;
  flex-wrap:wrap;        /* ‼️ lets items wrap instead of overflowing */
  column-gap:1.6em;      /* horiz gap */
  row-gap:.55em;         /* vert gap when it wraps */
  margin-bottom:1em;
  align-items:flex-start;
}
.header-meta > span{
  white-space:nowrap;    /* keep “label + value” together */
  line-height:1.3;
}

.meta-label {
  color: #7143CD;
  font-weight: 600;
}
.meta-value {
  color: #191818;
  font-weight: 500;
}

.chip{
  display:inline-block;
  background:#edeafb;
  padding:4px 10px;
  border-radius:14px;
  font-size:0.95em;
  color:#5d41a3;
  box-shadow:0 1px 6px #7143cd1a;
}

.section-title  {color:#7143CD;font-weight:600;margin:22px 0 10px;}

.filters-grid  {display:flex;flex-wrap:wrap;gap:16px;}

  @media (max-width: 900px) {
      nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.7em 1em;
      }
      .nav-left {
        justify-content: flex-start;
        margin-bottom: 0;
      }
      .nav-logo {
        height: 30px;
      }

      .dashboard-cube-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.1em 1.1em;
      }
      .dashboard-content {
        padding-top: 80px;
      }
      .footer-inner {
        flex-direction: column;
        gap: 1em;
        text-align: center;
        align-items: center;
        padding: 0 1em;
      }
      .footer-logo img {
        height: 31px;
      }

      .reply-input {
        padding: 10px 13px 50px;
      }
    }


  /* Hide nav for print */
  @media print {
    nav {
      display: none;
    }
  }

  
  @media (max-width: 600px) {

      .login-box {
        padding: 2em 1.5em 2em 1.5em; /* Reduce padding */
        min-width: 270px;                 /* Allow it to be as small as needed */
        max-width: 95vw;
      }
      .login-title {
        font-size: 1.8em;
        margin-bottom: 1em;
      }
      .login-input {
        padding: 0.6em 0.7em;
        font-size: 1em;
        margin-bottom: 0.85em;
      }
      .login-btn {
        margin-top: 1em;
        padding: 0.7em 1em;
        font-size: 1em;
      }
      .login-center-wrapper {
        min-height: 90vh; /* optional: can reduce if needed */
      }

      .login-remember-row {
        margin-top: 1em;
        font-size: 0.98em;
      }
      .login-checkbox {
        width: 17px;
        height: 17px;
        margin-right: 0.5em;
      }

      .dashboard-cube-name {
        text-align: center;
      }
      .dashboard-cube-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1em 0.7em;
      }
      .dashboard-content {
        padding-top: 80px;
      }
      .dashboard-greeting {
        font-size: 1.27em;
        margin: 26px 0 22px 0;
        text-align: center;
      }

      .smize-form {
        padding: 1.4em 1.6em;
        max-width: 99vw;
        margin-left: 1.2em;
        margin-right: 1.2em;
      }
      
      .dashboard-footer {
        font-size: 0.8em;
      }
      .footer-inner {
        flex-direction: column;
        gap: 0.6em;
        text-align: center;
        align-items: center;
        padding: 0 0.7em;
      }
      .footer-logo img {
        height: 24px;
        margin-right: 0.6em;
      }

      .reply-input {
        padding: 10px 13px 50px;
      }
  }
  
  

  @media (min-width: 1024px) {
  .footer-inner {
    width: 100vw;
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}