:root {
  --primary: #176b5b;
  --primary-dark: #0f5145;
  --primary-soft: #e9f5f1;
  --accent: #e8b04a;
  --success: #16845b;
  --warning: #b87912;
  --danger: #c74646;
  --info: #2d6cdf;
  --text: #1d2a27;
  --muted: #6b7773;
  --border: #e4e9e7;
  --surface: #ffffff;
  --bg: #f6f8f7;
  --shadow: 0 10px 30px rgba(24, 50, 44, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  top: 0 !important;
}

body {
  min-height: 100vh
}

a {
  text-decoration: none;
  color: inherit
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

img {
  max-width: 100%
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: auto
}

.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100
}

.nav {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

.brand {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.brand img {
    width: 140px;
    height: auto;
    display: block;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 1px
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 20px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcece7;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700
}

.lang {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text)
}

/* =========================
   MOBILE BUTTON
========================= */

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    display: none;
}


/* Tablet */
@media (max-width: 992px) {

    .nav-right{
        gap:15px;
    }

    .brand img{
        width:150px !important;
    }
    
}

/* Mobile */
@media (max-width: 768px) {

    .topbar{
        height: 72px;
        padding: 0 12px;
    }

    .nav{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    .brand{
        flex-shrink: 0;
    }

    .brand img{
        width: 140px !important;
        height: auto;
    }

     .nav-right {
        display: none;
    }

    /* Show hamburger */
    .mobile-menu-btn {
        display: grid;
        place-items: center;
    }

    /* Dropdown menu */
    .mobile-menu {
        position: absolute;
        top: 64px;
        right: 12px;
        width: 220px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu .lang {
        width: 100%;
        height: 40px;
    }

    .mobile-menu-item {
        width: 100%;
        padding: 10px 12px;
        border: 0;
        background: transparent;
        text-align: left;
        text-decoration: none;
        color: var(--text);
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
    }

    .mobile-menu-item:hover {
        background: #f5f5f5;
    }

    .mobile-menu-item.logout {
        color: #dc2626;
    }

    .lang{
        width: 55px;
        min-width: 55px;
        font-size: 12px;
        padding: 4px;
    }

    .icon-btn{
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .avatar{
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 12px;
    }

    .btn{
        padding: 7px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Small Mobile */
@media (max-width: 480px){

    .brand img{
        width: 120px !important;
    }

    .btn{
        padding: 6px 10px;
        font-size: 11px;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .mobile-menu {
        top: 60px;
        right: 10px;
        width: 200px;
    }
}

.page{
      padding: 50px 0;
  }

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary)
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 8px 0 8px
}

h2 {
  font-size: 22px;
  margin: 0 0 8px
}

h3 {
  font-size: 17px;
  margin: 0 0 6px
}

p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0
}

.btn {
  border: none !important;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.btn-change-language{
    border: none !important;
    border-radius: 11px;
    padding: 12px 18px;
    font-weight: 700;
    background: black !important;
    color: #fff;
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-dark)
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text)
}

.btn-danger {
  background: #fff0f0;
  color: var(--danger)
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.card-pad {
  padding: 22px
}

.grid {
  display: grid;
  gap: 18px
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.stat {
  padding: 20px
}

.stat .num {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0
}

.stat .label {
  font-size: 13px;
  color: var(--muted)
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800
}

.status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor
}

.status-progress {
  color: var(--warning);
  background: #fff7e8
}

.status-open {
  color: var(--info);
  background: #edf4ff
}

.status-resolved {
  color: var(--success);
  background: #eaf8f2
}

.status-closed {
  color: #65716e;
  background: #eef1f0
}

.status-danger {
  color: var(--danger);
  background: #fff0f0
}

.list {
  display: grid;
  gap: 12px
}

.ticket {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.ticket:hover {
  border-color: #c7d8d3;
  box-shadow: 0 5px 18px rgba(24, 50, 44, .05)
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.ticket-id {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700
}

.ticket-title {
  font-weight: 800;
  margin: 5px 0
}

.ticket-sub {
  font-size: 13px;
  color: var(--muted)
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.field {
  display: grid;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

label {
  font-size: 13px;
  font-weight: 800
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e0dd;
  background: #fff;
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--text);
  outline: none
}

textarea {
  min-height: 150px;
  resize: vertical
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, .1)
}

.help {
  font-size: 12px;
  color: var(--muted)
}

.category {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: .15s;
  cursor: pointer
}

.category:hover {
  transform: translateY(-2px);
  border-color: #a9c8bf;
  box-shadow: var(--shadow)
}

.category.selected {
  border-color: var(--primary);
  background: var(--primary-soft)
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px
}

.category p {
  font-size: 12px
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap
}

.empty {
  text-align: center;
  padding: 48px 20px
}

.empty-icon {
  font-size: 38px;
  margin-bottom: 12px
}

.notice {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px
}

.success-box {
  text-align: center;
  padding: 50px 20px
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e7f7ef;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 34px;
  margin: 0 auto 18px
}

.ticket-number {
  font-size: 25px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: .02em;
  margin: 14px 0 20px
}

.timeline {
  position: relative;
  margin: 22px 0 5px
}

.timeline:before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #dce5e2
}

.step {
  position: relative;
  display: flex;
  gap: 15px;
  padding: 0 0 24px
}

.step:last-child {
  padding-bottom: 0
}

.dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cdd8d5;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 12px;
  font-weight: 800
}

.step.done .dot {
  border-color: var(--success);
  background: #e9f8f1;
  color: var(--success)
}

.step.current .dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

.step h4 {
  margin: 2px 0 4px;
  font-size: 14px
}

.step small {
  color: var(--muted)
}

.chat {
  display: grid;
  gap: 12px
}

.bubble {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 14px
}

.bubble.employee {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px
}

.bubble.hr {
  justify-self: start;
  background: #f0f3f2;
  border-bottom-left-radius: 4px
}

.bubble .time {
  display: block;
  font-size: 10px;
  opacity: .7;
  margin-top: 6px
}

.chat-input {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 16px
}

.chat-input input {
  flex: 1
}

.attachment {
  border: 1px dashed #bccac5;
  border-radius: 13px;
  padding: 22px;
  text-align: center;
  background: #fafcfb
}

.attachment strong {
  display: block;
  margin-bottom: 5px
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px
}

.tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px
}

.tab {
  border: 0;
  background: transparent;
  padding: 12px 15px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary)
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #dcece7;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px
}

.info-row:last-child {
  border-bottom: 0
}

.info-row span:first-child {
  color: var(--muted)
}

.notification {
  display: flex;
  gap: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--border)
}

.notification:last-child {
  border-bottom: 0
}

.notif-dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex: none
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: linear-gradient(135deg, #f2f7f5, #fff)
}

.login-wrap {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(25, 54, 47, .1)
}

.login-brand {
  padding: 52px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px
}

.login-brand p {
  color: #d8ebe6
}

.login-form {
  padding: 48px
}

.otp {
  display: flex;
  gap: 10px
}

.otp input {
  text-align: center;
  font-size: 22px;
  font-weight: 800
}

footer {
  padding: 25px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center
}

.mobile-menu {
  display: none
}

@media(max-width:850px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .login-wrap {
    grid-template-columns: 1fr
  }

  .login-brand {
    min-height: auto;
    padding: 35px
  }

  .login-form {
    padding: 32px
  }
}

@media(max-width:650px) {
  .container {
    width: min(100% - 22px, 1160px)
  }

  .topbar {
    height: 64px
  }

  .brand small {
    display: none
  }

  .page {
    padding: 24px 0 40px
  }

  h1 {
    font-size: 27px
  }

  .hero {
    align-items: flex-start;
    flex-direction: column
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }

  .ticket {
    align-items: flex-start;
    flex-direction: column
  }

  .ticket .btn {
    width: 100%
  }

  .actions .btn {
    width: 100%
  }

  .bubble {
    max-width: 90%
  }
}



.category-flex{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    max-width:900px;
    margin:auto;
}

.category{
    background:#fff;
    border:1px solid #e9eef5;
    border-radius:20px;
    padding:24px;
    text-align:center;
    cursor:pointer;
    transition:.3s ease;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.category:hover{
    transform:translateY(-5px);
    border-color:var(--primary);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.category-icon{
    width:35px;
    height:35px;
    margin:0 auto 15px;
    border-radius:18px;
    background:rgba(220,9,6,.08);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;
    font-weight:700;
    color:#dc0906;
}

.category h3{
    margin:0 0 8px;
    font-size:22px;
    font-weight:500;
}

.category p{
    margin:0;
    color:#666;
    font-size:14px;
}

.language-header{
    text-align:center;
    margin-bottom:40px;
}

.language-header h1{
    font-size:40px;
    margin-bottom:10px;
    font-weight:800;
}

.language-header p{
    color:#666;
    font-size:18px;
}

@media (max-width:768px){

    .category-flex{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .category{
        padding:18px;
    }

    .category-icon{
        width:55px;
        height:55px;
        font-size:18px;
    }

    .category h3{
        font-size:18px;
    }

    .category p{
        display:none;
    }
}

@media (max-width:420px){

    .category-flex{
        grid-template-columns:repeat(2,1fr);
    }

    .category h3{
        font-size:16px;
    }
}


/* Notification */
.notification-wrapper {
    position: relative;
}

.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;

    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: #fff;

    border: 2px solid #fff;
    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 380px;
    max-width: calc(100vw - 30px);

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid #f0f0f0;
}

.notification-header h3 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.notification-header span {
    font-size: 11px;
    color: #6b7280;
}

.mark-read-btn {
    border: 0;
    background: transparent;
    color: #2563eb;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
    padding: 5px;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

/* List */
.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

/* Notification */
.notification-item {
    display: flex;
    gap: 12px;

    padding: 14px 18px;

    text-decoration: none;

    border-bottom: 1px solid #f3f4f6;

    transition: background 0.15s ease;
}

.notification-item:hover {
    background: #f9fafb;
}

/* Unread notification */
.notification-item.unread {
    background: #f5f9ff;
}

.notification-item.unread:hover {
    background: #eef5ff;
}

/* Icon */
.notification-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f3f4f6;

    font-size: 14px;
}

.notification-icon.info {
    background: #eaf2ff;
}

.notification-icon.success {
    background: #eaf9f0;
    color: #16a34a;
}

.notification-icon.warning {
    background: #fff7e6;
    color: #d97706;
}

/* Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 3px;

    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.notification-item.unread .notification-title {
    color: #111827;
    font-weight: 700;
}

.notification-content p {
    margin: 0 0 5px;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.45;
}

.notification-time {
    color: #9ca3af;
    font-size: 10px;
}

/* Unread dot */
.unread-dot {
    width: 6px;
    height: 6px;

    display: inline-block;

    background: #2563eb;
    border-radius: 50%;
}

/* Footer */
.view-all-notifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 13px;

    color: #2563eb;
    background: #fff;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.view-all-notifications:hover {
    background: #f9fafb;
}

/* Mobile */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;

        top: 70px;
        left: 15px;
        right: 15px;

        width: auto;
        max-width: none;
    }
}

.notification-empty{
  padding: 15px;
}


.mobile-notification-count{
    position: absolute;
    bottom: 125px;
    background: #e31d1d;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    color: white;
}
