/* Glassmorphism Theme Styles */

/* Ensure text-white overrides are applied */
.text-white {
	color: #ffffff !important;
}

/* Main glass morphism container effect */
.glass-morphism {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Glass button styling */
.glass-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: all 150ms ease;
}

.glass-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-btn:active {
	background: rgba(255, 255, 255, 0.25);
}

/* Custom Tailwind Overrides and Utilities */

/* Smooth transitions for Tailwind classes */
* {
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom table styling with glass effect */
table {
	width: 100%;
	border-collapse: collapse;
}

table thead {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

table th {
	padding: 14px;
	text-align: left;
	font-weight: 700;
	color: #ffffff;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.03);
}

table tbody tr {
	transition: background-color 150ms ease;
}

table tbody tr:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

table tbody tr:last-child td {
	border-bottom: none;
}

/* Highlight classes for dynamic content */
.highlight-red {
	color: #ff6b6b;
	font-weight: 600;
}

.highlight-green {
	color: #51cf66;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(81, 207, 102, 0.3);
	text-underline-offset: 3px;
}

/* Clickable rows */
.clickable-row {
	cursor: pointer;
	transition: background-color 150ms ease;
}

.clickable-row:hover {
	background-color: rgba(255, 255, 255, 0.15) !important;
}

.clickable-row:active {
	background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Flash highlight animation for focused groups */
@keyframes flashHighlight {
	0% {
		background-color: rgba(255, 255, 255, 0.25);
		box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	}
	100% {
		background-color: rgba(255, 255, 255, 0.1);
		box-shadow: 0 0 0px rgba(255, 255, 255, 0);
	}
}

.flash-highlight {
	animation: flashHighlight 1.5s ease-out;
	background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Input focus enhancements */
input:focus,
button:focus {
	outline: none;
}

/* File input styling */
input[type="file"]::file-selector-button {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 150ms ease;
	margin-right: 8px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

input[type="file"]::file-selector-button:hover {
	background-color: rgba(255, 255, 255, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Status message styling */
#uploadStatus {
	min-height: 20px;
}

/* Input styling for glass theme */
input[type="number"],
input[type="date"],
input[type="file"],
select {
	color: #1f2937 !important;
}

/* Override color for glass-select-input to be white */
.glass-select-input {
	color: #ffffff !important;
}

input[type="number"]::placeholder,
input[type="date"]::placeholder,
select::placeholder {
	color: #6b7280 !important;
}

/* Fix for input text color in webkit browsers */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
	-webkit-text-fill-color: #1f2937 !important;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 12px;
	padding-right: 32px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Glass select styling for dropdown menus */
.glass-select {
	color-scheme: dark;
}

.glass-select option {
	background: #374151;
	color: #ffffff;
	font-weight: 500;
	padding: 4px 8px;
}

/* Enhanced glass select input styling */
.glass-select-input {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.1) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color-scheme: dark;
}

.glass-select-input option {
	background: #374151;
	color: #ffffff;
	font-weight: 500;
	padding: 8px;
}

.glass-select-input:focus {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	table {
		font-size: 0.875rem;
	}
	
	table th,
	table td {
		padding: 10px 8px;
	}
}

