/* NET CORPORATION AI DESK & QUICK TICKET CHATBOT STYLES */

/* Floating Launcher Trigger */
#netcorp-chat-trigger {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.95) 0%, rgba(189, 0, 255, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 12px 35px rgba(0, 210, 255, 0.45),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#netcorp-chat-trigger:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 45px rgba(0, 210, 255, 0.6);
}

#netcorp-chat-trigger .badge-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #00d2ff;
  border: 2.5px solid #0a0a0c;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d2ff;
}

/* Chat Window Container */
#netcorp-chat-window {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.94) 0%, rgba(8, 10, 16, 0.96) 100%);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.85),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.25);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#netcorp-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.netcorp-chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.netcorp-chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.netcorp-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00d2ff 0%, #bd00ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.netcorp-chat-title-box h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.netcorp-chat-title-box p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: #00d2ff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.netcorp-chat-title-box p::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

.netcorp-chat-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.netcorp-chat-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Nav Tabs */
.netcorp-chat-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.netcorp-tab-btn {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.netcorp-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.netcorp-tab-btn.active {
  color: #00d2ff;
  border-bottom-color: #00d2ff;
  background: rgba(0, 210, 255, 0.06);
}

/* Tab Views */
.netcorp-chat-view {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.netcorp-chat-view.active {
  display: flex;
}

/* Messages Body */
.netcorp-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.netcorp-msg {
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.55;
  border-radius: 16px;
  padding: 12px 16px;
  word-break: break-word;
}

.netcorp-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e5e5e7;
  border-bottom-left-radius: 4px;
}

.netcorp-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.netcorp-msg .cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d2ff;
  margin-bottom: 4px;
}

/* Action Quick Pills */
.netcorp-quick-pills {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.netcorp-quick-pills::-webkit-scrollbar {
  display: none;
}

.netcorp-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.netcorp-pill:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
  color: #00d2ff;
}

/* Chat Input Bar */
.netcorp-chat-input-bar {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
}

.netcorp-chat-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.netcorp-chat-input-bar input:focus {
  border-color: rgba(0, 210, 255, 0.5);
}

.netcorp-chat-input-bar button {
  background: #00d2ff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.netcorp-chat-input-bar button:hover {
  transform: scale(1.05);
  background: #33e0ff;
}

/* Ticket Form View */
.netcorp-ticket-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.netcorp-ticket-form label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: -4px;
}

.netcorp-ticket-form input,
.netcorp-ticket-form select,
.netcorp-ticket-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.netcorp-ticket-form select option {
  background: #0a0a0c;
  color: #fff;
}

.netcorp-ticket-form input:focus,
.netcorp-ticket-form select:focus,
.netcorp-ticket-form textarea:focus {
  border-color: #00d2ff;
}

.netcorp-ticket-submit-btn {
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  margin-top: 6px;
}

.netcorp-ticket-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Ticket Badge Confirmation */
.ticket-badge-card {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.ticket-badge-id {
  font-size: 18px;
  font-weight: 800;
  color: #00d2ff;
  letter-spacing: 0.05em;
  margin: 6px 0;
}

/* Knowledge Base Directory View */
.netcorp-kb-directory {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.netcorp-kb-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.netcorp-kb-search:focus {
  border-color: #00d2ff;
}

.netcorp-kb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
}

.netcorp-kb-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.netcorp-kb-item:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.04);
}

.netcorp-kb-item-q {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.netcorp-kb-item-a {
  font-size: 12px;
  color: var(--smoke);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  #netcorp-chat-window {
    right: 16px;
    bottom: 85px;
    width: calc(100vw - 32px);
    height: 540px;
  }
  #netcorp-chat-trigger {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
