/* Base styles */
body
{
	background-color: #f5f5f5;
	color: #202124;
	display: flex;
	flex-direction: column;
	font-family: "Google Sans", Arial, sans-serif;
	margin: 0;
	min-height: 100vh;
	padding: 0;
}


/* Header styles */
.header
{
	align-items: center;
	background-color: #f5f5f5;
	border-bottom: 1px solid #dfe1e5;
	display: flex;
	gap: 8px;
	padding: 12px 24px;
}


.title
{
	align-items: center;
	display: flex;
	font-size: 18px;
	font-weight: bold;
	gap: 4px;
	margin: 0;
}


.title[contenteditable="true"]:hover,
.title[contenteditable="true"]:focus
{
	background: #f0f8ff;
	cursor: text;
	outline: 1.5px dashed #3182ce;
}


.spacer
{
	flex-grow: 1;
}


.icon
{
	height: 16px;
	width: 16px;
}


/* Main content styles */
.main-content
{
	display: flex;
	flex-grow: 1;
	gap: 16px;
	margin: 0 auto;
	max-width: 1440px;
	min-height: calc(100vh - 56px - 32px);
	padding: 16px;
}


/* Panel styles */
.panel
{
	background-color: white;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}


.sources-panel
{
	width: 25%;
}


.chat-panel
{
	display: flex;
	flex-direction: column;
	min-width: 320px;
	padding: 1rem; /* Add reasonable internal padding */
	width: 60%;
}


.studio-panel
{
	width: 25%;
}


.panel-header
{
	align-items: center;
	border-bottom: 1px solid #dfe1e5;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	display: flex;
	justify-content: space-between;
	padding: 8px 16px;
}


.panel-title
{
	color: #202124;
	font-size: 18px;
	font-weight: bold;
	margin: 0;
}


.panel-toggle
{
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	padding: 4px;
}


.panel-toggle:hover
{
	background-color: #f8f9fa;
}


.panel-buttons
{
	display: flex;
	gap: 16px;
	padding: 16px;
}


.panel-button
{
	background: transparent;
	border: 1px solid #dfe1e5;
	border-radius: 16px;
	color: #3c4043;
	cursor: pointer;
	flex-grow: 1;
	font-size: 12px;
	font-weight: normal;
	padding: 8px;
}


.panel-button:hover
{
	background-color: #f8f9fa;
}


.panel-empty-state
{
	align-items: center;
	color: #5f6368;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: center;
	padding: 24px;
	text-align: center;
}


.panel-empty-state p
{
	font-size: 14px;
	font-weight: normal;
	line-height: 1.4;
	margin: 4px 0;
}


.empty-icon
{
	margin-bottom: 12px;
}


/* Chat panel specific styles */
.chat-empty-state
{
	align-items: center;
	color: #202124;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: center;
	padding: 16px;
	text-align: center;
}


.chat-icon-container
{
	align-items: center;
	background-color: #e0e0ff;
	border-radius: 50%;
	color: #5f63ff;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	margin-bottom: 12px;
	width: 40px;
}


.chat-icon
{
	height: 20px;
	width: 20px;
}


.chat-message
{
	font-size: 16px;
	font-weight: normal;
	margin-bottom: 12px;
}


.upload-button
{
	background: transparent;
	border: 1px solid #3c4043;
	border-radius: 16px;
	color: #3c4043;
	cursor: pointer;
	font-size: 12px;
	font-weight: normal;
	padding: 8px 24px;
}


.upload-button:hover
{
	background-color: #f8f9fa;
}


.chat-form
{
	align-items: center;
	background-color: #f9f9f9; /* Optional: Add a subtle background color */
	border: 1px solid #dfe1e5;
	border-radius: 8px; /* Slightly round the edges */
	display: flex;
	gap: 8px;
	margin: 0; /* Remove extra margin */
	padding: 12px; /* Add padding inside the form */
}


.chat-input
{
	background: transparent;
	border: none;
	color: #3c4043;
	flex-grow: 1;
	font-size: 14px;
	outline: none;
}


.chat-input::placeholder
{
	color: #5f6368;
}


/* Studio panel specific styles */
.studio-section
{
	border-bottom: 1px solid #dfe1e5;
	padding: 12px 16px;
}


.section-header
{
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}


.section-title
{
	color: #202124;
	font-size: 14px;
	font-weight: bold;
	margin: 0;
}


.info-button, .more-options-button
{
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	padding: 4px;
}


.info-button:hover, .more-options-button:hover
{
	background-color: #f8f9fa;
}


.audio-card
{
	align-items: center;
	border: 1px solid #dfe1e5;
	border-radius: 8px;
	display: flex;
	gap: 16px;
	padding: 12px;
}


.audio-icon-container
{
	align-items: center;
	background-color: #e8ebfa;
	border-radius: 50%;
	color: #3c4043;
	display: flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}


.audio-info
{
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}


.audio-title
{
	color: #202124;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}


.audio-subtitle
{
	color: #5f6368;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.4;
	margin: 0;
}


.action-buttons
{
	display: flex;
	gap: 16px;
	margin-top: 12px;
}


.action-button
{
	background: transparent;
	border: 1px solid #dfe1e5;
	border-radius: 16px;
	color: #5f6368;
	cursor: not-allowed;
	flex-grow: 1;
	font-size: 12px;
	font-weight: normal;
	padding: 8px;
}


.generate-button
{
	background-color: #d3d3d3;
	border: none;
	color: #7a7a7a;
}


.add-note-button
{
	background: transparent;
	border: 1px solid #dfe1e5;
	border-radius: 16px;
	color: #3c4043;
	cursor: pointer;
	font-size: 12px;
	font-weight: normal;
	padding: 8px;
	width: 100%;
}


.add-note-button:hover
{
	background-color: #f8f9fa;
}


.note-buttons
{
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
	margin-top: 12px;
}


.note-button
{
	align-items: center;
	background: transparent;
	border: 1px solid #dfe1e5;
	border-radius: 16px;
	color: #5f6368;
	cursor: not-allowed;
	display: flex;
	font-size: 12px;
	font-weight: normal;
	gap: 4px;
	padding: 4px 12px;
}


p
{
	color: #4b5563;
	font-size: 14px;
	margin: 1.5rem auto auto auto;
	text-align: justify;
}


.drag-drop-box
{
	background-color: #f4f6f8;
	border: 2px dashed #a0aec0;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	margin: 1rem;
	padding: 1rem;
	text-align: center;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}


.drag-drop-box.drag-over
{
	background-color: #e6f7ff;
	border-color: #3182ce;
}


.drag-drop-content
{
	align-items: center;
	display: flex;
	flex-direction: column;
}


.upload-icon
{
	height: 50px;
	width: 50px;
}


.drag-drop-text
{
	color: #4a5568;
	font-size: 16px;
}


.drag-drop-text .click-to-upload
{
	color: #3182ce;
	cursor: pointer;
	font-weight: bold;
}


.enhanced-button
{
	align-items: center;
	background-color: #3182ce;
	border: none;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: bolder;
	margin: 0 auto 1rem auto;
	padding: 0.5rem;
	transition: background-color 0.3s ease;
}


.enhanced-button:disabled
{
	background: transparent;
	border: 1px solid #dfe1e5;
	border-radius: 8px;
	color: #5f6368;
	cursor: not-allowed;
	font-size: 16px;
	font-weight: bolder;
}


.enhanced-button:hover
{
	background-color: #0080ff;
}


.chat-panel
{
	display: flex;
	flex-direction: column;
	/* ensure conversation box expands */
}


.conversation-box
{
	background: #fff;
	border: 1px solid #dfe1e5;
	border-radius: 8px;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1rem; /* Increased gap between messages */
	margin-bottom: 1rem;
	margin-top: 1rem;
	max-height: 400px; /* Add a max-height for scrollability */
	overflow-y: auto;
	padding: 8px;
	scrollbar-color: #b3b3b3 #f5f5f5; /* For Firefox */
	scrollbar-width: thin; /* For Firefox */
}


/* Optional: Style the scrollbar for Webkit browsers */
.conversation-box::-webkit-scrollbar
{
	width: 8px;
}


.conversation-box::-webkit-scrollbar-thumb
{
	background: #b3b3b3;
	border-radius: 4px;
}


.conversation-box::-webkit-scrollbar-track
{
	background: #f5f5f5;
}


.message
{
	border-radius: 8px;
	max-width: 80%;
	padding: 8px;
	word-wrap: break-word;
}


.message.user
{
	align-self: flex-end;
	background-color: #e6f7ff;
}


.message.ai
{
	align-self: flex-start;
	background-color: #f1f0f0;
}


.resource-list
{
	align-items: flex-start;
	background-color: #ffffff; /* Clean white background */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: flex-start;
	padding: 8px; /* Balanced padding */
	text-align: left; /* Align text to the left */
	max-height: 260px; /* Set a max-height for scrollability */
	overflow-y: auto;  /* Enable vertical scrollbar */
}

/* Optional: Style the scrollbar for Webkit browsers */
.resource-list::-webkit-scrollbar
{
	width: 8px;
}

.resource-list::-webkit-scrollbar-thumb
{
	background: #b3b3b3;
	border-radius: 4px;
}

.resource-list::-webkit-scrollbar-track
{
	background: #f5f5f5;
}


.resource-section-title
{
	color: #202124;
	font-size: 14px;
	font-weight: bold;
	justify-content: space-between;
	margin: 0;
	padding: 8px 16px;
}


.resource-item
{
	background: #f9f9f9; /* Light gray background for contrast */
	border: 1px solid #dfe1e5; /* Subtle border for separation */
	border-radius: 6px; /* Rounded corners */
	color: #3c4043; /* Neutral text color */
	font-size: 14px; /* Standard font size */
	margin-bottom: 8px; /* Space between items */
	padding: 8px 16px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}


.resource-item:hover
{
	background-color: #e8f0fe; /* Light blue background on hover */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly elevated shadow on hover */
	cursor: pointer; /* Indicate interactivity */
}


/* Custom tooltip styles */
.custom-tooltip
{
	background: #333;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-size: 13px;
	padding: 6px 12px;
	pointer-events: none;
	position: absolute;
	white-space: nowrap;
	z-index: 1000;
}


/* Loading overlay styles */
#loadingOverlay
{
	align-items: center;
	background: rgba(255, 255, 255, 0.7);
	display: flex;
	height: 100vh;
	justify-content: center;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
	z-index: 2000;
}


.loading-spinner
{
	animation: spin 1s linear infinite;
	border: 8px solid #f3f3f3;
	border-radius: 50%;
	border-top: 8px solid #3182ce;
	height: 64px;
	width: 64px;
}


@keyframes spin
{
	0%
	{
		transform: rotate(0deg);
	}
	100%
	{
		transform: rotate(360deg);
	}
}


/* Inline spinner styles */
.inline-spinner
{
	animation: spin 1s linear infinite;
	border: 3px solid #e0e0e0;
	border-radius: 50%;
	border-top: 3px solid #3182ce;
	display: inline-block;
	height: 18px;
	margin-right: 8px;
	vertical-align: middle;
	width: 18px;
}


