/* Define color variables */
:root {
	--bg: #131313; /* Off-black */
	--color1: #f54b73; /* Pink */
	--foreground: #131313; /* Dark greyish */
	--text-color: #e0e0e0; /* Light grey for text */
	--accent: #d14d7b; /* Pink */
	--error: #ff4444; /* Red for errors */
	--success: #44ff44; /* Green for success */
	--grey-border: #222222;
	--color2: #5c4bf5;
	--color2-dark: #4539c6;
	--header-height: 60px;
	--color1-faded: rgba(73, 36, 49, 0.737);
}


.delete-btn2:hover {
	background-color: #6e3c3c !important;
}

.download-btn2:hover {
	background-color: #416e3c !important;
}

/* Image date display */
.bottom-options {
	background-color: rgba(20, 20, 20, 0.851);
	color: white;
	padding: 15px 12px;
	font-size: 12px;
	text-align: center;
	border-radius: 0 0 8px 8px;
}

document {
	font-family: Montserrat, sans-serif;

}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg);
	color: var(--text-color);
	font-family: Montserrat, sans-serif;
}

button {
	font-family: Montserrat, sans-serif;
}


/* Error and loading states */
.error,
.loading,
.no-images {
	padding: 20px;
	text-align: center;
	width: 100%;
}

.error {
	color: #ff4d4d;
	background-color: rgba(255, 77, 77, 0.1);
	border: 1px solid #ff4d4d;
	border-radius: 8px;
}

.loading {
	color: #4d8effb7;
	background-color: rgba(77, 143, 255, 0.1);
	border: 0px solid #4d8fff;
	border-radius: 8px;
}

.no-images {
	color: #999;
	background-color: rgba(0, 0, 0, 0.05);
	border: 1px solid #ccc;
	border-radius: 8px;
}

.image-gallery-description {
	color: #666;
	font-size: 14px;
	margin: -10px 0 20px 0;
	text-align: center;
}

/* Custom Dropdown Styling */
.custom-dropdown {
	position: relative;
	display: inline-block;
	min-width: 250px;
}

.dropdown-btn {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: white;
	padding: 10px 15px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
}

.dropdown-btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-btn:focus {
	outline: none;
	background-color: rgba(255, 255, 255, 0.2);
	border-color: #4d8fff;
	box-shadow: 0 0 0 2px rgba(77, 143, 255, 0.2);
}

.dropdown-btn span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	font-size: 1rem;
}

.dropdown-btn i {
	margin-left: 10px;
	transition: transform 0.3s ease;
}

.dropdown-list {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	max-height: 400px;
	margin-top: 4px;
}

.dropdown-item {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(128, 128, 128, 0.043);
	overflow-x: clip;
}

.dropdown-list > * {
	min-width: 150px;
	flex: 0 0 auto;
	max-width: 360px;
	max-height: 230px;
}

.dropdown-item:last-child {
	border-bottom: none;
}
 
.dropdown-item:hover , .dropdown-item .active {
	background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
	background-color: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--color1);
	border-radius: 9px;
}

.dropdown-item img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
	margin-right: 12px;
	flex-shrink: 0;
}

.dropdown-item .info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dropdown-item .info strong {
	color: white;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}

.dropdown-item .info small {
	color: #aaa;
	font-size: 11px;
	line-height: 1.3;
}

/* Scrollbar styling for dropdown */
.dropdown-list::-webkit-scrollbar {
	width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* Dropdown with Clear Button Layout */
.dropdown-with-clear {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dropdown-with-clear .custom-dropdown {
	flex: 1;
}

/* Clear Button Styling */
.clear-btn {
	background-color: rgba(255, 77, 77, 0.2);
	border: 1px solid rgba(255, 77, 77, 0.4);
	border-radius: 6px;
	color: #ffffff;
	padding: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	font-weight: 400 !important;
}

.clear-btn:hover {
	background-color: rgba(255, 77, 77, 0.3);
	border-color: rgba(255, 77, 77, 0.6);
}

.clear-btn:active {
	transform: scale(0.95);
}

.clear-btn i {
	font-size: 14px;
}


.pill {
	padding: 7px 12px;
	border-radius: 94px;
	font-size: 14px !important;
	margin: 10px 0px;
	max-width: fit-content;
} 

.SD15 {
	color: #ffffff !important;
	background-color: #43c075;
}

.SDXL10 {
	color: #ffffff !important;
	background-color: #4d8fff;
}

.Pony {
	color: #ffffff !important;
	background-color: #d55fba;
}

.illustrious {
	color: #ffffff !important;
	background-color: #ff4d4d;
}
