:root {
  --primary-color: #00407F;
  --primary-light: #e6f0f8;
  --primary-lighter: #f0f7ff;
  --white-color:#ffffff;
  --card-1: #4e73df;
  --card-2: #1cc88a;
  --card-3: #f6c23e;
  --card-4: #e74a3b;
  --sidebar-width: 90px;
  --header-height: 70px;
  --transition-speed: 0.3s;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "Work Sans", sans-serif;
  background-color: #f8f9fa;
}

.text-prime {
  color: var(--primary-color) !important;
}
.text-green {
  color: #08714b;
}
.bg-blue {
  background-color: var(--primary-light);
}

/* Header Styles */
.main-header {
  height: var(--header-height);
  background: white;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 42px;
  width: auto;
}

.app-name {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
  position: relative;
}

.app-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.logo-container:hover .app-name::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-icon {
  color: #5a6a85;
  font-size: 1.2rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: rgb(255, 255, 255);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(0,64,127,0.1);
}

.profile-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.profile-name {
  font-weight: 500;
  color: #4a5568;
  font-size: 0.9rem;
}

/* Search Bar */
.search-bar {
  position: relative;
  width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 8px 15px 8px 35px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,64,127,0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

/* ======================== */
/* side bar styles */
/* ========================= */

.sidebar {
  width: var(--sidebar-width);
  background: white;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  flex-shrink: 0;
  border-right: 1px solid #e9edef;
}

.nav-link {
  color: #718096;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  width: 100%;
  padding: 10px 0;
  transition: all var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::before {
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 0;
}

.nav-link span {
  padding-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-link.active span {
  font-weight: 600;
  transform: scale(1.05);
}

.logout-btn {
  margin-top: auto;
  margin-bottom: 2rem;
}

.logout-btn:hover {
  color: #ff4757 !important;
}

/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Work Sans', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 64, 127, 0.15);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    /* background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%); */
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 64, 127, 0.1);
}

.login-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.app-subtitle {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.login-body {
    padding: 40px 30px;
}
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    z-index: 2;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 13px 13px 48px;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
    font-family: 'Work Sans', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white-color);
    box-shadow: 0 0 0 4px rgba(0, 64, 127, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.login-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5490 100%);
    border: none;
    border-radius: 12px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Work Sans', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 64, 127, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    margin-left: 10px;
}


/* Main Layout */
 .main-container {
  display: flex;
  flex: 1;
  min-height: 0;
}

.content-area {
  flex: 1;
  background-color: #f8f9fa;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.footer {
  text-align: center;
  padding: 15px 0;
  color: #6c757d;
  background-color: #fff;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

/* WhatsApp-like Chat Styles - Fixed Layout */
.chat-container {
    height: calc(100vh - var(--header-height));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Contacts List Section */
.contacts-list {
    background-color: #ffffff;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-list .bg-blue {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-box {
    background-color: #f0f2f5;
    padding: 10px;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    z-index: 9;
    padding-left: 20px;

}

.contacts-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Chat Area Section */
.chat-area {
    background-color: #f2f8ff;
    /* background-image: url('https://web.whatsapp.com/img/bg-chat-tile-light_a4be512e7195b6b733d9110b408f075d.png'); */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background-color: var(--white-color);
    padding: 10px;
    border-bottom: 1px solid #e9edef;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.message-input {
    background-color: #ffffff;
    padding: 10px;
    border-top: 1px solid #e9edef;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Client Details Section */
#contactInfo {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 100px); /* Adjust based on header height */
    max-height: calc(100vh - 100px);
}

.client-details {
    padding: 0 10px;
    height: 100%;
}
/* Group container */
.detail-group {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Section titles */
.detail-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 6px;
}

/* Each detail row */
.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.detail-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 70px;
    font-size: 13px;
}
.detail-value {
    color: #212529;
    font-weight: 500;
    font-size: 13px;
    text-align: right;
    flex: 1;
    margin-left: 12px;
    word-break: break-word;
}
.detail-item i {
    margin-right: 8px;
    font-size: 14px;
    color: #6c757d;
}

/* Profile image large */
.profile-img-large {
    width: 80px;
    height: 80px;
    font-size: 26px;
    font-weight: 600;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Contact and Message Styles */
.contact-item {
    border-bottom: 1px solid #e9edef;
    padding: 14px;
    padding-left: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-item:hover {
    background-color: #f5f5f5;
}

.contact-item.active {
    background-color: #f0f2f5;
}

.message {
    padding: 8px;
    margin: 5px;
    border-radius: 7.5px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    text-align: left;
    overflow-wrap: break-word;
    overflow: hidden;
}

.received {
    background-color: #ffffff;
    align-self: flex-start;
}

.sent {
    background-color: #d9fdd3;
    /* background-color: #5a79b7; */
    align-self: flex-end;
}

.message-time {
    font-size: 11px;
    color: #667781;
    text-align: right;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-img-large {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4ad504;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid white;
}

.last-message {
    font-size: 13px;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Scrollbar Styling */
.contacts-container::-webkit-scrollbar,
#messagesScroll::-webkit-scrollbar,
#contactInfo::-webkit-scrollbar {
    width: 6px;
}

.contacts-container::-webkit-scrollbar-track,
#messagesScroll::-webkit-scrollbar-track,
#contactInfo::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.contacts-container::-webkit-scrollbar-thumb,
#messagesScroll::-webkit-scrollbar-thumb,
#contactInfo::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.contacts-container::-webkit-scrollbar-thumb:hover,
#messagesScroll::-webkit-scrollbar-thumb:hover,
#contactInfo::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Image Message Styles */
.message.image-message {
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.message.image-message img {
    border-radius: 5px;
    display: block;
    width: 100%;
}

.message.image-message .message-time {
    position: absolute;
    bottom: 5px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin: 0;
}
.message.image-message.sent {
    background-color: #ffffff;
}

.message-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    line-height: 24px;
    font-family: "Roboto", sans-serif;
    font-size:16px;
    color:black;
    font-weight: 400;
}
/* Dashboard Layout - Metrics Left, Charts Right */
/* ====================== */
/* dashboard analytics */
/* ====================== */
.metric-card {
  border-radius: 10px;
  border: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  padding: 20px;
  color: #5a5c69;
  background-color: white;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  border-left: 4px solid;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.3rem 1.5rem rgba(58, 59, 69, 0.15);
}

.metric-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2.2rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.card-1 .metric-icon { color: var(--card-1); }
.card-2 .metric-icon { color: var(--card-2); }
.card-3 .metric-icon { color: var(--card-3); }
.card-4 .metric-icon { color: var(--card-4); }

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0 5px;
  letter-spacing: -1px;
}

.card-1 .metric-value { color: var(--card-1); }
.card-2 .metric-value { color: var(--card-2); }
.card-3 .metric-value { color: var(--card-3); }
.card-4 .metric-value { color: var(--card-4); }

.metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #5a5c69;
}

.metric-footer {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #858796;
}

.trend-indicator {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.positive { background-color: rgba(28, 200, 138, 0.1); color: #1cc88a; }
.negative { background-color: rgba(231, 74, 59, 0.1); color: #e74a3b; }
.neutral { background-color: rgba(94, 114, 228, 0.1); color: #5e72e4; }

.card-1 { border-left-color: var(--card-1); }
.card-2 { border-left-color: var(--card-2); }
.card-3 { border-left-color: var(--card-3); }
.card-4 { border-left-color: var(--card-4); }

.dashboard-header {
  margin-bottom: 30px;
  padding-top: 20px;
}

.dashboard-header h2 {
  font-weight: 600;
  color: #2d3436;
}

.dashboard-header p {
  color: #5a5c69;
}

/* Dashboard Layout - Metrics Left, Charts Right */
.metrics-container {
  height: 100%;
}

.charts-container {
  height: 100%;
}

.chart-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.chart-header h5, .chart-header h6 {
  margin: 0;
  color: #2d3436;
  font-weight: 600;
}

.chart-controls {
  display: flex;
  gap: 5px;
}

.chart-controls .btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
}

.chart-controls .btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

@media (max-width: 991.98px) {
  .metrics-container {
    margin-bottom: 2rem;
  }
}

canvas {
  max-height: 300px;
}

/* chat assign fucnitonlity */
.chat-filter-tabs {
    /* background-color: #f0f2f5; */
    padding: 8px 12px 8px 20px;
}

.filter-btn {
    background-color: #e9ecef;
    color: #54656f;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #00a884;
    color: white;
}

.filter-btn:hover {
    opacity: 0.8;
}

.chat-item {
    padding: 12px 16px;
    padding-left: 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-item:hover {
    background-color: #f8f9fa;
}

.chat-item.active {
    background-color: #e3f2fd;
}

.badge {
    font-size: 0.7em;
}

#chat-actions {
    display: flex;
    gap: 8px;
}

#chat-actions .btn {
    padding: 4px 8px;
    font-size: 0.8em;
}
/* css for disabled state */
.disabled-state {
    opacity: 0.5;
    pointer-events: none;
}

.disabled-state input, 
.disabled-state button {
    cursor: not-allowed !important;
}

.message-input {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

/* Enhanced tick styles */
.tick-sent { 
    color: #999 !important; 
    font-size: 12px;
}
.tick-delivered { 
    color: #999 !important; 
    font-size: 12px;
}
.tick-read { 
    color: #4fc3f7 !important; 
    font-size: 12px;
}
.tick-failed { 
    color: #f44336 !important; 
    font-size: 12px;
}
.tick-pending { 
    color: #ffc107 !important; 
    font-size: 12px;
}

/* Reply Styles */
/* Reply button next to message time */
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.reply-btn-small {
    background: none;
    border: none;
    color: #667781;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.reply-btn-small:hover {
    background: #f0f0f0;
    opacity: 1;
    color: #00a884;
}

/* Reply preview above input */
.reply-preview {
    background: #f0f2f5;
    border-left: 4px solid #00a884;
    padding: 8px 12px;
    margin: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    position: relative;
}

.reply-close {
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
    color: #667781;
    font-weight: bold;
}

/* Reply context in messages */
.reply-context {
    background: rgba(0, 168, 132, 0.1);
    border-left: 3px solid #00a884;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #667781;
}
/* id card styles */
.profile-page-card {
  align-content: center;
  align-items: center;
  border: 7px solid #b6b6b6;
  border-radius: 8px 8px 8px 8px;
  border-top: 10px solid #b6b6b6;
  box-shadow: 0 0 1.5px 0 #b9b9b9;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 1em auto;
  max-width: 500px;
  padding: 2em;
  position: relative;
}
.profile-page-card figure {
  margin: 0;
}
.profile-page-card header h1 {
  font-size: 28px;
  line-height: 1;
  margin: 0;
  min-width: 250px;
  padding: 0;
}
.profile-page-card header h1 small {
  clear: both;
  display: block;
  font-size: 16px;
  opacity: 0.6;
}
.profile-page-card main dl {
  display: block;
  width: 100%;
}
.profile-page-card main dl dt {
  font-weight: 700;
  padding-right: 10px;
  width: 40%;
}
.profile-page-card main dl dd,
.profile-page-card main dl dt {
  border-bottom: 1px solid #e1e1e1;
  float: left;
  margin: 0;
  padding: 8px 5px;
}

.profile-page-card main dl dd {
  width: 60%;
}

.profile-page-card main dl dt:after {
  content: ":";
}
div#profile-page {
  margin-top: 27px;
  position: relative;
}

.id-card-tag {
  border-left: 100px solid #0000;
  border-right: 100px solid #0000;
  border-top: 100px solid #00407f;
  border-top: 100px solid var(--primary-color);
  height: 0;
  margin: -25px auto -30px;
  width: 0;
}
.id-card-tag:after {
  border-left: 50px solid #0000;
  border-right: 50px solid #0000;
  border-top: 100px solid #eff3f6;
  content: "";
  display: block;
  height: 0;
  left: -50px;
  margin: -20px auto -30px;
  position: relative;
  top: -130px;
  width: 0;
}
.id-card-tag-strip {
  background-color: #00407f;
  background-color: var(--primary-color);
  border: 1px solid #00407f;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  height: 40px;
  margin: 0 auto;
  position: relative;
  top: 9px;
  width: 45px;
  z-index: 1;
}
.id-card-tag-strip:after {
  background-color: #c1c1c1;
  content: "";
  display: block;
  height: 1px;
  position: relative;
  top: 10px;
  width: 100%;
}
.id-card-hook {
  background-color: #b6b6b6;
  border-radius: 5px 5px 0 0;
  height: 15px;
  margin: 0 auto;
  width: 70px;
}

.id-card-hook:after {
  background-color: #d7d6d3;
  border-radius: 4px;
  content: "";
  display: block;
  height: 6px;
  margin: 0 auto;
  position: relative;
  top: 6px;
  width: 47px;
}


/* profile styles */
/* Profile Page Container */
div#profile-page {
  margin-top: 27px;
  position: relative;
}

/* ID Card Tag (Top Triangle) */
.id-card-tag {
  border-left: 100px solid #0000;
  border-right: 100px solid #0000;
  border-top: 100px solid #00407f;
  border-top: 100px solid var(--primary-color);
  height: 0;
  margin: -25px auto -30px;
  width: 0;
}

.id-card-tag:after {
  border-left: 50px solid #0000;
  border-right: 50px solid #0000;
  border-top: 100px solid #eff3f6;
  content: "";
  display: block;
  height: 0;
  left: -50px;
  margin: -20px auto -30px;
  position: relative;
  top: -130px;
  width: 0;
}

/* ID Card Strip */
.id-card-tag-strip {
  background-color: #00407f;
  background-color: var(--primary-color);
  border: 1px solid #00407f;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  height: 40px;
  margin: 0 auto;
  position: relative;
  top: 9px;
  width: 45px;
  z-index: 1;
}

.id-card-tag-strip:after {
  background-color: #c1c1c1;
  content: "";
  display: block;
  height: 1px;
  position: relative;
  top: 10px;
  width: 100%;
}

/* ID Card Hook */
.id-card-hook {
  background-color: #b6b6b6;
  border-radius: 5px 5px 0 0;
  height: 15px;
  margin: 0 auto;
  width: 70px;
}

.id-card-hook:after {
  background-color: #d7d6d3;
  border-radius: 4px;
  content: "";
  display: block;
  height: 6px;
  margin: 0 auto;
  position: relative;
  top: 6px;
  width: 47px;
}

/* Main Profile Card */
.profile-page-card {
  align-content: center;
  align-items: center;
  border: 7px solid #b6b6b6;
  border-radius: 8px 8px 8px 8px;
  border-top: 10px solid #b6b6b6;
  box-shadow: 0 0 1.5px 0 #b9b9b9;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 1em auto;
  max-width: 500px;
  padding: 2em;
  position: relative;
}

/* Profile Image */
.profile-page-card figure {
  margin: 0;
}

/* Profile Header */
.profile-page-card header h1 {
  font-size: 28px;
  line-height: 1;
  margin: 0;
  min-width: 250px;
  padding: 0;
}

.profile-page-card header h1 small {
  clear: both;
  display: block;
  font-size: 16px;
  opacity: 0.6;
}

/* Profile Details */
.profile-page-card main dl {
  display: block;
  width: 100%;
}

.profile-page-card main dl dt {
  font-weight: 700;
  padding-right: 10px;
  width: 40%;
}

.profile-page-card main dl dd,
.profile-page-card main dl dt {
  border-bottom: 1px solid #e1e1e1;
  float: left;
  margin: 0;
  padding: 8px 5px;
}

.profile-page-card main dl dd {
  width: 60%;
}

.profile-page-card main dl dt:after {
  content: ":";
}
/* Remove focus outline and box-shadow for all inputs */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
button:focus,
button:focus-visible,
.form-control:focus,
.form-control:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--primary-color) !important;
}

.btn-primary {
  color: #fff;
  background-color: #1e245a !important;
  border-color: #1e245a !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: #1e245a !important;
  border-color: #1e245a !important;
  opacity: 0.85 !important;
}
/* Delete Manager Alignment Styles */
.page-title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-tabs .nav-link {
  padding: 8px 16px;
}

.table th, .table td {
  vertical-align: middle;
  text-align: center;
}

.table th:first-child, .table td:first-child {
  text-align: left;
}

.modal-dialog {
  margin: 30px auto;
}

.btn-group {
  margin: 0;
}

#dateTime {
  font-weight: 500;
  color: #6c757d;
}

/* page link */
.page-link {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #0a0d1f;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin-top: 5px !important;
}
/* new chat button styles */
.floating-new-chat {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.floating-new-chat .btn {
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    background-color: #25d366;
    transition: all 0.3s ease;
}

.floating-new-chat .btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-new-chat .btn i {
    font-size: 20px;
    color: white;
}

.contacts-list {
    position: relative;
}

/* DataTables inline search layout for delete manager */
.dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    justify-content: flex-end !important; 
}
.dataTables_filter input {
    width: 200px !important;
}

.nav-tabs .nav-link {
    font-size: 16px;
    padding: 12px 20px;
    font-weight: 500;
}
/* Fix for Delete Manager auto-scroll issue */
.content-area {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

/* Ensure the page title stays visible */
.container-fluid {
  padding-top: 10px;
  position: relative;
}

/* Prevent DataTables from auto-scrolling */
.dataTables_wrapper {
  overflow: visible !important;
}

/* Keep the title fixed at top when tabs are clicked */
.card-title {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 5;
  padding: 10px 0;
  margin-bottom: 15px;
}

/* Fixed footer only for change password page */
body:has(.change-password-card) .footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 100;
}

.change-password-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.text-muted {
    color: #6c757d;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(36, 44, 109, 0.1);
}

.update-password-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.update-password-btn:hover {
    background: #1a2456;
    transform: translateY(-1px);
}

.update-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
/* setting module */
.settings-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.3rem 1.5rem rgba(58, 59, 69, 0.15) !important;
}

.tab-save-btn {
    position: static;
    top: 10px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-tabs .nav-link {
    font-size: 16px;
    padding: 12px 20px;
    font-weight: 500;
}

/* Bottom Sheet Styles */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    max-height: 200px;
}

.bottom-sheet.show {
    transform: translateY(0);
}

.bottom-sheet.expanded {
    transform: translateY(-50px);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
    cursor: pointer;
}

.bottom-sheet-content {
    padding: 20px;
}

/* CAPTCHA Styles */
.captcha-display {
    background: var(--primary-lighter);
    border: 2px solid var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    user-select: none;
    font-style: italic;
}

.captcha-input {
    border: 1px solid ;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 64, 127, 0.1);
}
.captcha-refresh:hover {
  background: #1a5490;
}


.drop-zone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 132, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drop-zone-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: #00a884;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-area.drag-active {
    background-color: rgba(0, 168, 132, 0.02);
}

/* New Dashboard Cards - Response Time & Unread Messages */
.metric-card.card-6 { 
    border-left-color: #6f42c1; 
}

.metric-card.card-6 .metric-icon {
    color: #6f42c1;
}

/* WhatsApp-style date headers */
.text-center .badge {
    background: rgba(0,0,0,0.05) !important;
    color: #0d0e0e !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    border: none;
}
/* list details delete button css */
.delete-member-btn {
    border: none !important;
    color: white !important;
    width: 30px;
    height: 30px;
}
.delete-member-btn:hover {
    background-color: transparent !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}
/* chat search  */
.message-search-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.search-highlight {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

.search-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Remarks Section Scrolling - Proper Alignment */
#remarksText {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 8px 0;
}

.remark-timeline-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.remark-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    bottom: -15px;
    width: 2px;
    background: #e9ecef;
}

.remark-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #1e3a8a;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e9ecef;
}

.remark-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.remark-text {
    color: #212529;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.remark-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6c757d;
}

#remarksText::-webkit-scrollbar {
    width: 3px;
}

#remarksText::-webkit-scrollbar-track {
    background: transparent;
}

#remarksText::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

#remarksText::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Remarks Edit Button - Dark Blue */
.detail-group-title .btn-outline-primary {
    border-color: #1e3a8a !important;
    color: #1e3a8a !important;
}

.detail-group-title .btn-outline-primary:hover {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: white !important;
}

