/* @import url('https://fonts.googleapis.com/css?family=Philosopher:700&display=swap'); */

/* Global Styles */
body {
	font-family: 'Philosopher', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #333333;
	line-height: 30px;
}

/* Utility Classes */
.my-card {   
	position: absolute !important;
	left: 40%;
	top: -47px;
	border-radius: 50% !important;
}

p {
	color: #1F313F;
	font-size: 14px;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 24px;
}
h2 {
	font-size: 20px;
}
h3 {
	font-size: 18px;
}
h4,
h5,
h6 {
	font-size: 16px;
}

/* Service Head Section */
.service_head {
	background-color: #fff;
	padding: 29px;
	border: 1px solid #e1e1e1;
	border-left: 4px solid #FF5733;
	margin-bottom: 39px;
	text-align: center;
}

/* Main Service Section */
.main_service_section {
	margin-top: 23px;
	background-color: #fff;
	padding: 29px;
	border: 1px solid #e1e1e1;
	border-left: 4px solid #FF5733;
}

/* Card Styling */
.card {
	border: none;
	box-shadow: 0px 0px 13px #c1d3fd !important;
	margin-bottom: 30px;
}

.card:hover {
	border-bottom: 1px solid #F6F7F7;
	border-radius: .25rem;
	box-shadow: 0px 0px 13px #F6F7F7 !important;
	margin-bottom: 30px;
}

/* Modals Design */
.modal {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.95);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.modal.show {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.webnlive-ai-assistant-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.webnlive-ai-assistant-modal-content {
	background: #fff;
	padding: 20px;
	border-radius: 5px;
	width: 50%;
	margin: 10% auto;
	text-align: center;
	position: relative;
}

.webnlive-ai-assistant-close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 20px;
	cursor: pointer;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin: 20px auto; /* Add margin for spacing */
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Style for general settings page */
/* Switch Styling */
.general-settings-hints {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
	border-left: 4px solid #FF5733;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0px 0px 13px #c1d3fd;
}

.general-settings-hints p {
    position: relative;
    padding-right: 25px; 
    margin-bottom: 10px;
}

.general-settings-hints p::after {
    content: "↢";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 16px;
}

.webnlive-ai-assistant-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 20px;
}

.webnlive-ai-assistant-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.webnlive-ai-assistant-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	border-radius: 20px;
}

.webnlive-ai-assistant-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

#webnlive_ai_assistant_default_api_method,
#webnlive_ai_assistant_default_api_model {
	border: 1px solid #e9e9e9;
	padding: 7px;
}

.webnlive-ai-assistant-switch input:checked + .webnlive-ai-assistant-slider {
	background-color: #0073aa; /* WordPress Blue */
}

.webnlive-ai-assistant-switch input:checked + .webnlive-ai-assistant-slider:before {
	transform: translateX(20px);
}

/* Initially hide all accordion contents */
.webnlive-ai-assistant-accordion-content {
	display: none; /* Hide all accordion content by default */
	padding: 10px;
	background-color: #fafafa;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 4px;
	font-size: 12px;
}

/* Prevent flashing issue by hiding accordion during loading */
.webnlive-ai-assistant-accordion-wrapper {
	visibility: hidden; /* Hide all content initially to prevent flashing */
}

/* OpenAI accordion content should be visible by default */
.webnlive-ai-assistant-accordion-item.openai .webnlive-ai-assistant-accordion-content {
	display: block;
}

.api-key-field div {
	max-width: 1015px !important;
}

.webnlive-ai-assistant-accordion-header {
	cursor: pointer;
	background-color: #fff;
	padding: 13px;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	border: 1px solid #ddd;
	margin: 0;
	border-radius: 5px;
}

.webnlive-ai-assistant-accordion-header .webnlive-ai-assistant-accordion-icon {
	float: right;
	font-size: 18px;
	transition: transform 0.3s ease;
}

.webnlive-ai-assistant-accordion-header.active .webnlive-ai-assistant-accordion-icon {
	transform: rotate(180deg);
}

/* API Key Section styling */
.webnlive-ai-assistant-api-key-section {
	position: relative; /* Ensure positioning for inner content */
	padding: 10px;
	margin-bottom: 15px;
	background-color: #fafafa;
	border-radius: 5px;
	border: 1px solid #ddd;
}

/* Input field takes the full width and height */
.webnlive-ai-assistant-api-key-section input[type="text"], 
.webnlive-ai-assistant-api-key-section input[type="password"],
.webnlive-ai-assistant-api-key-section textarea {
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	padding: 10px;
	font-size: 14px;
	border: none;
	border-radius: 4px;
	box-sizing: border-box; /* Ensures padding and border are included in width/height */
}

/* To make the parent div take full height */
.webnlive-ai-assistant-api-key-section {
	height: 150px; /* Or any specific height you want */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Styling for the label */
.webnlive-ai-assistant-api-key-section h6 {
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

.api-key-field {
	margin: 31px;
}

/* API Validation CSS */
.api-key-field {
	margin-bottom: 20px;
}

.api-key-field > label {
	display: block; 
	font-weight: bold;
	margin-bottom: 5px;
}

.api-key-field-inner {
	display: flex; 
	align-items: center; 
	max-width: 400px; 
	border: 1px solid #ddd; 
	border-radius: 4px; 
	overflow: hidden;
}

.api-key-field-inner > input {
	flex: 1; 
	padding: 8px;
	border: none; 
	outline: none;
}

.api-key-field-inner > span {
	padding: 8px; 
	cursor: pointer; 
	background: #f9f9f9; 
	border-left: 1px solid #ddd;
}

.description {
	margin-top: 5px;
	color: #666;
}

.description > span {
	color: #0073aa;
	margin-right: 5px;
}

.dashicons-visibility {
	width: 48px !important;
	height: 48px !important;
	border: none;
}

.dashicons-hidden {
	width: 48px !important;
	height: 48px !important;
	border: none;
}

/* Accordian Style */
.webnlive-ai-assistant-accordion-content {
	display: none;
	padding: 10px 0;
}

.webnlive-ai-assistant-accordion-content.is-visible {
	display: block;
}

.webnlive-ai-assistant-accordion-header {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.webnlive-ai-assistant-accordion-header.is-active {
	font-weight: 600;
}

.webnlive-ai-assistant-accordion-icon {
	font-size: 16px;
}