body {
      background-color: #f9f9f9;
      /*#efefef*/
	 
}

a {
      text-decoration: none;
      color: #1270c5;
      cursor: pointer;
}

img {
      max-width: 100%;
      max-height: 100%;
}

.custom-primary-bg {
      background-color: #1270c5;
}

.custom-primary-text {
      color: #1270c5;
}

.btn {
      margin-bottom: 5px;
}

.form-button .btn {
      min-width: 120px;
}

.page-loading {
      position: fixed;
      z-index: 1031;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: none;
      z-index: 99999;
}

.page-fade {
      position: fixed;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background: #ccc;
      opacity: 0.5;
      display: none;
      z-index: 99998;
}

.form-group {
      margin-bottom: 1.5rem;
}

.form-group .form-label {
      margin-bottom: .25rem;
      vertical-align: middle;
      font-weight: 600;
      color: #656566;
}

.form-control,
.form-select {
      border-color: #c2c3c4;
      padding: .55rem 0.8rem;
}

.form-check-input,
.form-radio-input {
      border-color: #9a9b9c;
}

label.error {
      color: #dc3545;
      font-size: .875em;
	width:100%;
}

i.fa-width {
      width: 30px;
}

i.fa-nav-width {
      width: 25px;
}

img.navbar-brand-logo {
      max-height: 50px;
      max-width: 150px;
}

.breadcrumb {
      font-size: 12px;
      font-weight: normal;
      margin: 9px 0px 5px 0px;
}

.breadcrumb a {
      font-size: 12px;
      font-weight: normal;
}

.dashbord:hover {
      background: #f4f4f4;
}

.arrow-none::after {
      display: none;
}

.alert i {
      font-size: 21px;
}

.input-group-text {
      background: #e9ecef;
      border-color: #c2c3c4;
}

.custom-toggler.navbar-toggler {
      border-color: #ffffff;
}

.card-min-height {
      min-height: 330px;
}

.select2-container--default .select2-selection--multiple {
      border-radius: .25rem;
}

.select2-container--default .select2-selection--multiple:before {
      content: ' ';
      display: block;
      position: absolute;
      border-color: #888 transparent transparent transparent;
      border-style: solid;
      border-width: 6px 5px 0 5px;
      height: 0;
      right: 10px;
      margin-left: -4px;
      margin-top: -2px;
      top: 50%;
      width: 0;
      cursor: pointer
}

.select2-container--open .select2-selection--multiple:before {
      content: ' ';
      display: block;
      position: absolute;
      border-color: transparent transparent #888 transparent;
      border-width: 0 5px 6px 5px;
      height: 0;
      right: 10px;
      margin-left: -4px;
      margin-top: -2px;
      top: 50%;
      width: 0;
      cursor: pointer
}

.badge-approval {
      width: 75px;
}

.datepicker td,
.datepicker th {
      width: 35px !important;
      height: 35px !important;
}

.datepicker table tr td span {
      width: 31% !important;
}

table.table-condensed {
      width: 100% !important;
}

.datepicker-months {
      min-width: 230px !important;
}

.datepicker-dropdown {
      min-width: 274px !important;
}

.calender-icon,
.search-calender-icon,
.calender-icon-from,
.calender-icon-to,
.calender-icon-from-all,
.calender-icon-to-all,
.calender-icon-future-from,
.calender-icon-future-to,
.calender-icon-all-dates,
.calender-icon-date-time,
.cal-icon {
      background: #ffffff url('/images/calender.png') 20px 12px no-repeat;
      background-position: right;
      background-origin: content-box;
      cursor: pointer;
      background-size: 22px;
}

.select2-container .select2-selection--multiple {
      background-image: none;
}

.ck.ck-content {
      height: 500px;
}

/*.ck-content p {
      margin: 0px;
      padding: 0px;
}*/

.dashboard.glass-card {
      background: #ffffff;
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
      padding: 25px;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
}

.dashboard.glass-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 25px 60px rgba(18, 112, 197, 0.15);
}

.icon-circle {
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 15px auto;
      border-radius: 50%;
      background: linear-gradient(135deg, #e6f0fb, #f4faff);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard.glass-card:hover .icon-circle {
      transform: scale(1.08);
}

.icon-circle i {
      font-size: 1.6rem;
      color: #1270c5;
}

.add-action-btn:hover {
      background-color: rgba(67, 97, 238, 0.2);
}

.add-action-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background-color: rgba(67, 97, 238, 0.1);
      color: var(--primary-color);
      border: 1px dashed var(--primary-color);
      padding: 10px 15px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      width: 100%;
      justify-content: center;
      transition: all 0.3s;
      margin-top: 10px;
}

.add-action-btn:hover {
      text-decoration: underline;
}

.add-action-btn {
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border: none;
      background: transparent;
      cursor: pointer;
      color: #0d6efd;
}

.remove-row,
.ajxCallRemoveQuestion {
      background: none;
      border: none;
      color: var(--danger-color);
      cursor: pointer;
      font-size: 1.2rem;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
}

.bulk-action-btn.train {
      background-color: var(--primary-color);
      color: white;
}

.bulk-action-btn.delete {
      background-color: rgba(247, 37, 133, 0.1);
      color: var(--danger-color);
}

.bulk-action-btn span {
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.8rem;
}

.bulk-action-btn.delete span {
      background-color: rgba(247, 37, 133, 0.2);
      color: var(--danger-color);
}

/* Bulk actions container */
.bulk-actions-container {
      background-color: rgba(67, 97, 238, 0.05);
      border: 1px solid rgba(67, 97, 238, 0.1);
      border-radius: 8px;
      padding: 12px 15px;
      margin-bottom: 15px;
      display: none;
}

.bulk-actions-container.show {
      display: block;
      animation: fadeIn 0.3s ease;
}

#bulk-actions-container {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 15px 30px;
      box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
      z-index: 999;
      display: none;
      /* background-color: rgba(67, 97, 238, 0.05);*/
      background-color: #eff1f8;
      border: 1px solid rgba(219, 219, 223, 0.1);
      border-radius: 8px;
      padding: 12px 15px;
      margin-bottom: 15px;
      /* Hidden by default, shown via JS when checkboxes are clicked */
}

.errorCls {
      color: red;
      /*border: red solid 1px;*/
      font-size: 13px;
}

.errorClsBorder {
      border: red solid 1px;
}
.f11{
	font-size:11px;
}
.light-grey{
	color:#8b8989;
}
.danger-message{
	font-size:14px;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* adjust if needed */
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.domain-select {
    width: 220px;
}

.domain-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

.domain-dropdown {
    height: 42px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
}
.page-header-dashboard {
    margin-top: 20px !important;
}

.input-group-lg > .form-control{
	font-size: 1rem;
}
.font14{
	font-size:14px;
}
.font16,.input-group-lg .font16{
	font-size:16px;
}
#pagination-list{
	margin-top:15px;
}
.page-item:first-child .page-link,.active > .page-link, .page-link.active,.page-item:not(:first-child) .page-link {
		font-size: 14px;
}
#untrained-questions{
	font-size:16px;
}
.text-black{
	color:#000;
}
.tab-link{
	border:1px solid #f8f8f8;
	border-bottom: 3px solid var(--primary-color);
}
.tab-link.active{
	background: #f1f5f9;
}
.form-control{
	font-size:15px;
}
.badge-untrained {
    background-color: #e6f4ea;
    color: #1e7e34;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}
.status-trained {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.status-untrained {
    background-color: #fff3cd;
    color: #856404;
}

.badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

/*chat*/
/* ===== Layout ===== */
.sidebar1 {
    border-right: 1px solid #eef1f5;
    background: #ffffff;
    height: 75vh;
    overflow-y: auto;
}

.sidebar1-header {
    padding: 18px;
    border-bottom: 1px solid #f1f3f5;
    font-weight: 600;
    background: #fafbfc;
}

.archive-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: 0.2s ease;
    border-bottom: 1px solid #f3f3f3;
}

.archive-item:hover {
    background: #f8fafc;
}

.archive-item.active {
    background: #e7f1ff;
    border-left: 4px solid #0d6efd;
}

.archive-item span:last-child {
    font-size: 12px;
}

/* ===== Chat Area ===== */

.chat-container {
    height: 75vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-header {
    padding: 18px;
    font-weight: 600;
    border-bottom: 1px solid #eef1f5;
    background: #fafbfc;
}

.chat-content {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    background: #f6f8fb;
    display: flex;
    flex-direction: column;
}

/* ===== Chat Bubbles ===== */

.msg-container {
    display: flex;
    margin-bottom: 18px;
}

.msg-container.visitor {
    justify-content: flex-end;
}

.msg-container.bot {
    justify-content: flex-start;
}

.msg-visitor,
.msg-bot {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 70%;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Visitor bubble (right side) */
.msg-visitor {
    background: #dbeafe;
    border-bottom-right-radius: 6px;
    text-align: right;
}

/* Bot bubble (left side) */
.msg-bot {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.msg-date {
    font-size: 11px;
    color: #6c757d;
    margin-top: 6px;
}

/* Buttons */
.btn-chat-action {
    text-decoration: none;
    padding: 12px;
    display: block;
    text-align: center;
    border-top: 1px solid #eee;
    color: #0d6efd;
    font-size: 14px;
}

.searchCls {
    background: #ffffff;
}

.searchCls input {
    height: 38px;
}

#load-more-visitors,
#load-more-chat {
    border-radius: 8px;
}
.visitor-list{
    max-height:500px;
    overflow-y:auto;
}

.visitor-item{
    padding:15px;
    border-radius:12px;
    cursor:pointer;
    transition:0.2s;
}

.visitor-item:hover{
    background:#f1f5f9;
}

.visitor-item.active{
    background:#e7f1ff;
    border-left:4px solid #0d6efd;
}
.date-input-wrapper .date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}
.errMsg{
font-size:13px;
}
/*end*/

.w-12{
	width:12%;
}
.bg-light-green{
	background:#ddffdd;
}

.form-check-label{
	font-size:16px;
}
.grid-box .form-select{
	font-size:14px;
}
.m-26{
		margin-left: 26%;
	}
.chart-header{
    margin-bottom:15px;
}

.chart-title{
    font-weight:600;
    font-size:18px;
}

/* date input styling */
#dateRange{
	width:220px;
}	

 @media (max-width: 576px) {
      .login-container {
          padding: 30px 20px;
      }
	  
	.form-check-label{
		font-size:16px;
	}
	#main{
		margin-top:90px;
	}
	
	.logo{
        width:80%;
        flex:1;
    }

    .header-nav{
        margin-left:auto;
    }
	
	 #header{
        flex-wrap: wrap;
    }

    .domain-select{
        width:100%;
        order:3;
        margin-top:10px !important;
    }

    .domain-dropdown{
        width:100%;
    }

    .domain-select.mx-5{
        margin-left:0 !important;
        margin-right:0 !important;
    }
	.header {
		height: 120px;
		padding-bottom: 10px;
	}
	.dashboard .h5 {
		font-size: 14px;
		font-weight: bold;
		color: #737272;
	}
	.dashboard.glass-card{
		padding:13px;
	}
	.w-12 {
		width: 100%;
	}
	.grid-box{
		margin:8px 0;
	}
	
	
	.header-buttons{
		width:100%;
		order:3;
	}

	.header-buttons .btn{
		width:48%;
	}
	.txt_details{
		word-break: break-all;
		font-size:14px;
	 }
	.w100{
		width:100%;
	}
	.msg-visitor, .msg-bot {
		max-width: 100%;
	}
	
	.m-26{
		margin-left: 0px;
	}
	.form-label,.form-check label{
		font-size:15px;
	}
	
	.jconfirm-content{
		font-size:15px;
	}
	
	.chart-header{
		flex-direction:column;
		align-items:flex-start;
	}

	
	
	.chart-header{
		gap:10px;
	}

	.date-wrapper{
		width:100%;
	}

	#dateRange{
		width:100%;
	}

	.chart-title{
		font-size:16px;
	}
	
  }