/* Content Variables */
/* Header Variables */
/* Login Variables */
/* Form Variables */
/* Button Variables */
* {
  box-sizing: border-box;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

body, html {
  background-color: #f3f4f7;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: #474b50;
}

.form {
  display: flex;
  flex-flow: column;
  width: 100%;
}
.form .form-label {
  display: block;
  padding: 20px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #474b50;
}
.form .form-group {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.form .form-group .form-icon-left, .form .form-group .form-icon-right {
  fill: #c1c6cb;
  width: 40px;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
}
.form .form-group .form-icon-left {
  left: 0;
}
.form .form-group .form-icon-left + .form-input {
  padding-left: 40px;
}
.form .form-group .form-icon-right {
  right: 0;
}
.form .form-group .form-icon-right + .form-input {
  padding-right: 40px;
}
.form .form-group:focus-within .form-icon-left {
  fill: #98a0a8;
}
.form .form-input {
  width: 100%;
  height: 43px;
  border: 1px solid #dee2e6;
  padding: 0 15px;
  border-radius: 4px;
  outline: 0;
  color: #000;
}
.form .form-input::placeholder {
  color: #98a0a8;
}
.form .form-input:focus {
  box-shadow: 0 0 0 3px #c7def7;
  border: 1px solid #75b3f1;
}
.form .form-link {
  color: #2a77eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}
.form .form-link:hover {
  color: #135ac5;
}
.form #remember_me {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #474b50;
  user-select: none;
}
.form #remember_me input {
  margin: 0 10px 0 0;
  transform: scale(1.1);
  opacity: 0.5;
}
.form #remember_me input:checked {
  opacity: 1;
}
.form p.register-link {
  margin: 0;
  padding: 20px 0 0 0;
  font-size: 14px;
  color: #6b7179;
}
.form div.msg {
  font-size: 14px;
  font-weight: 500;
}
.form div.msg.success {
  padding: 0 0 20px 0;
  color: #0da74d;
}
.form div.msg.success .form-link {
  color: #0b6430;
}
.form div.msg.success .form-link:hover {
  color: #06361a;
}
.form div.msg.error {
  padding: 0 0 20px 0;
  color: #c21e13;
}
.form div.msg.error .form-link {
  color: #74160b;
}
.form div.msg.error .form-link:hover {
  color: #450d07;
}
.form .captcha {
  display: flex;
  padding-bottom: 20px;
}
.form .captcha img {
  min-width: 150px;
}
.form .captcha input {
  height: 50px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.form .fb-btn, .form .gl-btn, .form .dc-btn, .form .ms-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 15px;
  transition: background-color 0.2s;
}
.form .fb-btn svg, .form .gl-btn svg, .form .dc-btn svg, .form .ms-btn svg {
  position: absolute;
  left: 15px;
  fill: #fff;
}
.form .fb-btn:hover, .form .gl-btn:hover, .form .dc-btn:hover, .form .ms-btn:hover {
  color: #fff;
  transition: background-color 0.2s;
}
.form .fb-btn {
  background-color: #507CBF;
}
.form .fb-btn:hover {
  background-color: #426fb4;
}
.form .gl-btn {
  background-color: #d6523e;
}
.form .gl-btn:hover {
  background-color: #cf412c;
}
.form .dc-btn {
  background-color: #4A67CF;
}
.form .dc-btn:hover {
  background-color: #3656ca;
}
.form .ms-btn {
  background-color: #2F2F2F;
}
.form .ms-btn:hover {
  background-color: #222222;
}
.form.form-small {
  max-width: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: #26313d;
  color: #FFFFFF;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  height: 38px;
  box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.1);
}
.btn:hover {
  background: #202934;
}
.btn.blue {
  background: #086AD7;
}
.btn.blue:hover {
  background: #086AD7;
}
.btn.green {
  background: #4ab46d;
}
.btn.green:hover {
  background: #46a966;
}
.btn.red {
  background: #be4949;
}
.btn.red:hover {
  background: #b74141;
}
.btn.alt {
  color: #75797e;
  border: 1px solid #d4dbde;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
  background: #f1f3f4;
}
.btn.alt:hover {
  background: #eef1f2;
}
.btn.disabled {
  background: #b1b3b4;
}
.btn.disabled:hover {
  background: #a9abad;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.btn .loader,
.btn .loader::after {
  width: 15px;
  height: 15px;
}
.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.login, .register {
  display: flex;
  flex-flow: column;
  width: 450px;
  max-width: 95%;
  background-color: #ffffff;
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
  border-radius: 5px;
  margin: 100px auto;
  padding: 35px;
}
.login .icon, .register .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 5px auto 0 auto;
  border-radius: 50%;
  background-color: #e2e7ee;
}
.login .icon svg, .register .icon svg {
  fill: #fff;
}
.login h1, .register h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  padding: 20px 0 10px 0;
  margin: 0;
}
.login .btn[type=submit], .register .btn[type=submit] {
  height: 42px;
}

/* =========================================================
   GLOBAL HEADER + NAVIGATION (RESPONSIVE & MOBILE SLIDE-IN)
   Theme Color: #086AD7
   ========================================================= */
.header {
    background: #086AD7;
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

/* LOGO AREA */
.header .logos {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header .logos img {
    height: 26px;
}

/* HAMBURGER MENU ICON */
#menu {
    display: none;
}

.header .wrapper label {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}

.header .wrapper label span,
.header .wrapper label::before,
.header .wrapper label::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    background: #87919e;
    transition: 0.3s;
}

.header .wrapper label::before {
    top: 12px;
}
.header .wrapper label::after {
    top: 24px;
}

/* MENU BAR */
.menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a {
    padding: 8px 14px;
    color: #cdd4df;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover,
.menu a.active {
    background: #086AD7;
    color: #fff;
}

/* -------------------------
   Dropdown Container
------------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
}

/* -------------------------
   Dropdown Button
------------------------- */
.dropdown-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    user-select: none;
    transition: background 0.2s ease;
}

.dropdown-btn:hover {
    background-color: #086AD7;
}

/* -------------------------
   Arrow Icon
------------------------- */
.dropdown-btn .arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is active */
.dropdown.active .arrow {
    transform: rotate(180deg);
}

/* -------------------------
   Dropdown Content
------------------------- */
.dropdown-content {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%; /* directly below button */
    left: 0;
    min-width: 160px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

/* Show content when dropdown is active */
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   Dropdown Links
------------------------- */
.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* -------------------------
   Responsive: optional
------------------------- */
@media (max-width: 768px) {
    .dropdown {
        display: block;
    }
    .dropdown-content {
        position: relative;
        top: 0;
        transform: translateY(0);
        box-shadow: none;
    }
}


/* =========================================================
   MOBILE — SLIDE IN MENU
   ========================================================= */
@media (max-width: 820px) {

    /* HAMBURGER SHOWS */
    .header .wrapper label {
        display: block;
    }

    /* Desktop menu becomes hidden */
    .menu {
        position: fixed;
        top: 0;
        right: -260px; /* hidden offscreen */
        width: 240px;
        height: 100%;
        background: #086AD7;
        padding: 70px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        transition: 0.35s ease;
        box-shadow: -4px 0 12px rgba(0,0,0,0.25);
    }

    /* Slide in when checked */
    #menu:checked ~ label::before {
        transform: translateY(6px) rotate(45deg);
    }
    #menu:checked ~ label::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    #menu:checked ~ .menu {
        right: 0;
    }

    /* Dropdown inside slide menu */
    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
        background: #086AD7;
    }

    .header .wrapper {
        padding: 0 10px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #086AD7;
    color: #cdd4df;
    padding: 18px 10px;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer a {
    color: white;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------
   CONTENT SPACING
----------------------------------------------------------- */
.content {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
}

.content .page-title {
  display: flex;
  align-items: center;
  padding: 25px 0 10px 0;
}
.content .page-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #086AD7;
  color: #FFFFFF;
  margin-right: 20px;
  border-radius: 50%;
  height: 55px;
  width: 55px;
  min-height: 55px;
  min-width: 55px;
}
.content .page-title .icon svg {
  fill: #fff;
}
.content .page-title h2 {
  margin: 0;
  padding: 0 0 7px 0;
  font-size: 20px;
  font-weight: 600;
  color: #53585e;
}
.content .page-title p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #777e86;
}
.content .block {
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
  margin: 25px 0;
  padding: 25px;
  border-radius: 5px;
  background-color: #fff;
}
.content .block p {
  padding: 7px;
  margin: 0;
}
.content .profile-detail {
  display: flex;
  flex-flow: column;
  font-size: 18px;
  padding: 5px 0;
}
.content .profile-detail strong {
  display: block;
  color: #92979e;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.mar-y-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.mar-y-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.mar-y-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.mar-y-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-left: 25px;
  margin-right: 25px;
}

.mar-y-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

@media screen and (max-width: 1000px) {
  .login, .register {
    margin: 20px auto;
    padding: 25px;
  }
  .content {
    width: 100%;
    padding: 5px 10px;
  }
}
/* My Company Styling */
table {
  width: 100%;
}

/* ---------- Ticket Page Layout ---------- */
.ticket-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    height: calc(100vh - 20px);
    overflow-y: hidden;
}

.ticket-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.ticket-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.page-title {
    margin-bottom: 20px;
}

/* ---------- Conversation Area ---------- */
#replies {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

#messages-box {
    flex: 1;
    overflow-y: scroll;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f1f4f9;
    border-radius: 8px;
}

/* Sticky reply bar */
.reply-bar-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #f3f4f7;
    padding: 10px 15px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
    z-index: 10;
}

.reply-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-bar textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

/* File attachments */
.file-drop-area {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c1c6cb;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.file-drop-area.dragover {
    border-color: #086AD7;
    background-color: #e6f0ff;
}

.attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.attachment {
    background-color: #e2e7ee;
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
    font-size: 13px;
}

.attachment .remove-file {
    position: absolute;
    top: 0;
    right: 2px;
    cursor: pointer;
    font-weight: bold;
}

/* ---------- Chat Message Styling ---------- */
.chat-message {
    display: flex;
    margin-bottom: 14px;
    max-width: 75%;
    align-items: flex-end;
    position: relative;
}

/* Alignment */
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.chat-message.agent {
    align-self: flex-start;
    flex-direction: row;
    text-align: left;
}

/* Avatar */
.chat-avatar-wrapper {
    position: relative;
    margin: 0 8px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Chat bubble */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.15);
    max-width: 400px;
    word-wrap: break-word;
}

/* User bubble (blue) */
.chat-message.user .chat-bubble {
    background-color: #086AD7;
    color: #fff;
    border-radius: 15px 15px 0 15px;
}

/* Agent bubble (gray/white) */
.chat-message.agent .chat-bubble {
    background-color: #f0f0f0;
    color: #222;
    border-radius: 15px 15px 15px 0;
}

/* Meta (name + timestamp) */
.chat-meta {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.6;
}

/* Attachments */
.chat-attachments {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chat-attachment {
    background: #e4ecfb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.chat-attachment a {
    text-decoration: none;
    color: #333;
}

/* Typing indicator */
.typing-bubble {
    display: inline-flex;
    background: #fff;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    gap: 6px;
    align-items: center;
}

.typing-bubble span {
    width: 8px;
    height: 8px;
    background: #086AD7; /* custom blue dots */
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

/* stagger animation for 3 dots */
.typing-bubble span:nth-child(1) { animation-delay: 0s; }
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}


/* Message status */
.msg-status { 
    font-size: 12px;
    position: absolute;
    bottom: -2px;
    right: -2px;
}

.msg-status.delivered,
.msg-status.read { color: #086AD7; font-weight: bold; animation: pop 0.3s ease; }
.msg-status.sent { color: #aaa; }

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}

/* Date separator */
.date-separator {
    text-align: center;
    margin: 12px 0;
    font-size: 12px;
    color: #777;
}

.date-separator span {
    background-color: #dfe1e6;
    padding: 3px 10px;
    border-radius: 12px;
    color: #333;
    font-size: 13px;
}

/* Scroll to bottom button */
#scroll-bottom {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: none;
    background:#086AD7;
    color:#fff;
    border:none;
    border-radius:20px;
    padding:5px 12px;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1000px) {
    .ticket-container {
        flex-direction: column;
        padding: 10px;
        height: auto;
    }

    .ticket-sidebar {
        width: 100%;
        margin-top: 10px;
    }

    #messages-box {
        padding: 10px;
    }

    .chat-bubble {
        max-width: 85%;
    }
}