/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* General Body & Typography */
body {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	background-color: #121212;
	color: #e0e0e0;
	padding-top: 70px;
	overflow-x: hidden;
	box-sizing: border-box;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
}

/* Privacy Link Styling */
.privacy-link {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	z-index: 999;
	background: linear-gradient(135deg, #444 0%, #666 100%);
	border: none;
	border-radius: 25px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #a0a0a0;
	font-size: 1.2rem;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	visibility: hidden;
}

.privacy-link.visible {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.privacy-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.privacy-link:hover::before {
	left: 100%;
}

.privacy-link:hover {
	background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
	color: white;
	width: 130px;
	box-shadow: 0 6px 20px rgba(187, 134, 252, 0.4);
}

.privacy-link-icon {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 2;
}

.privacy-link:hover .privacy-link-icon {
	transform: translateX(-25px);
}

.privacy-link-text {
	position: absolute;
	right: 16px;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(20px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 2;
	color: inherit;
}

.privacy-link:hover .privacy-link-text {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 600px) {
	.privacy-link {
		bottom: 1rem;
		left: 1rem;
		width: 44px;
		height: 44px;
		font-size: 1.1rem;
	}
	
	.privacy-link:hover {
		width: 115px;
	}
	
	.privacy-link:hover .privacy-link-icon {
		transform: translateX(-20px);
	}
	
	.privacy-link-text {
		right: 14px;
		font-size: 0.85rem;
	}
}

/* Footer Styling */
footer {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-top: 1px solid #333;
	padding: 2rem 0;
	margin-top: 4rem;
	text-align: center;
}

footer p {
	color: #888;
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.5;
}

/* Privacy Policy Styling */
.important-notice, .final-reminder {
	background-color: #2d1b1e;
	border: 2px solid #cf6679;
	border-radius: 8px;
	padding: 1.5rem;
	margin: 2rem 0;
	box-shadow: 0 4px 15px rgba(207, 102, 121, 0.2);
}

.important-notice h2, .final-reminder h2 {
	color: #ff6b7a;
	margin-top: 0;
	font-size: 1.4rem;
	font-weight: 700;
}

.important-notice p, .final-reminder p {
	margin-bottom: 0.5rem;
	font-weight: 500;
	line-height: 1.6;
}

.important-notice p strong, .final-reminder p strong {
	color: #ffb3ba;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	line-height: 1.6;
}

.container h2 {
	color: #bb86fc;
	margin-top: 3rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.container h3 {
	color: #03dac6;
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.container ul {
	margin: 1rem 0;
	padding-left: 2rem;
}

.container li {
	margin-bottom: 0.5rem;
}

.container p {
	margin: 1rem 0;
}

/* Fancy Animated Heading */
h1 {
	font-size: 2.4rem;
	font-weight: 700;
	letter-spacing: 1px;
	background: linear-gradient(90deg, #bb86fc, #cf6679, #03dac6);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: heading-glow 0.1s ease-out 0.1s forwards;
	opacity: 0;
	text-align: center;
	/* margin: 2rem 0 3rem 0; */
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(18, 18, 18, 0.75);
	backdrop-filter: blur(12px);
	text-align: center;
	z-index: 1000;
	border-bottom: 1px solid #2a2a2a;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.2rem;
    font-size: 1.1rem;
    padding: 1.2rem 0.5rem;
}

nav a {
	color: #a0a0a0;
	text-decoration: none;
	font-weight: 500;
	position: relative;
	transition: color 0.3s ease;
    padding: 5px 0.7em;
    margin: 0 0.2em;
    font-size: 1em;
    min-width: 0;
    max-width: 100vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav a::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 3px;
	bottom: -3px;
	left: 0;
	background-color: #bb86fc;
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.3s ease-out;
	z-index: 1;
}

nav a:hover {
	color: #ffffff;
}

nav a:hover::after {
	transform: scaleX(1) !important;
	transform-origin: bottom left;
	opacity: 1 !important;
}

nav a.active {
	color: #ffffff;
}

nav a.active::after {
	transform: scaleX(1);
	transform-origin: bottom left;
	background: #03dac6;
}

/* Nav Item Animations */
@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav > a {
    opacity: 0;
    animation: navItemFadeIn 0.4s ease-out forwards;
}

nav > a:nth-of-type(1) { animation-delay: 0.1s; }
nav > a:nth-of-type(2) { animation-delay: 0.2s; }
nav > a:nth-of-type(3) { animation-delay: 0.3s; }
nav > a:nth-of-type(4) { animation-delay: 0.4s; }

.auth-element {
    opacity: 0;
    animation: navItemFadeIn 0.4s ease-out 0.5s forwards;
}

/* Debug - temporary visible underlines */
nav a {
	border-bottom: 1px solid transparent;
}


nav a.active {
	border-bottom: 1px solid #03dac6;
}

@media (max-width: 900px) {
    nav {
        font-size: 0.98rem;
        gap: 0.3rem 0.5rem;
        padding: 0.8rem 0.2rem;
    }
    nav a {
        font-size: 0.97em;
        padding: 4px 0.5em;
        margin: 0 0.1em;
    }
}

@media (max-width: 600px) {
    nav {
        font-size: 0.93rem;
        gap: 0.2rem 0.2rem;
        padding: 0.6rem 0.1rem;
    }
    nav a {
        font-size: 0.93em;
        padding: 3px 0.3em;
        margin: 0 0.05em;
    }
}
/* Main Page Iframe */
.main-iframe {
	display: block;
	width: 100vw;
	height: calc(100vh - 70px);
	border: none;
}

/* Albums Page Grid */
.albums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	padding: 1.5rem;
	max-width: 1500px;
	margin: 0 auto;
	transition: all 0.3s ease;
}

/* Album Card Styling */
.album-card {
	background-color: #1e1e1e;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #e0e0e0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	opacity: 1;
	position: relative; /* Needed for the image overlay */
}

.album-card:hover,
.album-card.hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(187, 134, 252, 0.3);
}

.album-card:hover .album-crew-stack,
.album-card.hover .album-crew-stack,
.album-crew-stack:focus-within {
	z-index: 10;
}

.album-card:hover .album-crew-face-link,
.album-card.hover .album-crew-face-link,
.album-crew-stack:focus-within .album-crew-face-link {
	margin-left: 4px;
	z-index: 2;
}

.album-card:hover .album-crew-face,
.album-card.hover .album-crew-face,
.album-crew-stack:focus-within .album-crew-face {
	transform: scale(1.18);
	box-shadow: 0 4px 16px #bb86fc88;
}

/* ✨ START: Modern Content Animation */
.album-card img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	background-color: #333;
	/* Initial state for animation */
	opacity: 0;
	/* transform: scale(1.1); */
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.album-card.loaded img {
	/* Final state for animation */
	opacity: 1;
	transform: scale(1);
}

.album-card-content {
	padding: 1rem;
	min-height: 7rem;
	display: flex;
	flex-direction: column;
	/* height: 100%; */
}
.album-card-content h3,
.album-card-content p {
	/* Initial state for text animation */
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.album-card.loaded .album-card-content h3,
.album-card.loaded .album-card-content p {
	/* Final state for text animation */
	opacity: 1;
	transform: translateY(0);
}

.album-card.loaded .album-card-content p {
	/* Stagger the paragraph animation */
	transition-delay: 0.15s;
}
/* ✨ END: Modern Content Animation */

/* Skeleton Loader Styles */
.album-card.loading {
	opacity: 0;
	animation: card-fade-in 0.6s ease-out forwards;
}

.album-card.loading .placeholder {
	background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
	background-size: 200% 100%;
	animation: pulse 1.5s infinite ease-in-out;
	border-radius: 4px;
}

.album-card.loading .placeholder-img {
	aspect-ratio: 3 / 4;
	width: 100%;
}

.album-card.loading .placeholder-content {
	padding: 1rem;
	min-height: 7rem;
}

.album-card.loading .placeholder-text {
	height: 1.2rem;
	margin-bottom: 0.75rem;
}

.album-card.loading .placeholder-text.short {
	width: 60%;
	height: 0.9rem;
	margin-bottom: 0.5rem;
}

/* Keyframe Animations */
@keyframes heading-glow {
	from {
		opacity: 0;
		transform: translateY(10px);
		text-shadow: none;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		text-shadow: 0 0 10px rgba(187, 134, 252, 0.3),
			0 0 20px rgba(3, 218, 198, 0.2);
	}
}

@keyframes card-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* ... (keep all styles from h1 to .album-card:hover) ... */

/* Album Card Styling */
.album-card {
	background-color: #1e1e1e;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #e0e0e0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease-out;
	opacity: 1;
	position: relative; /* Needed for the image overlay */
}

.album-card:hover {
	transform: translateY(-5px) scale(1.03);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
	border-color: rgba(187, 134, 252, 0.3);
}

/* ✨ START: New Image Overlay Animation */
.album-card .img-container {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden; /* Hides the overlay as it moves out */
	position: relative;
	background-color: #333;
}

.album-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.album-card.loaded img {
	transform: scale(1); /* Zoom out to normal size */
}

/* .album-card .img-container::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #2a2a2a;
	transform: translateX(0); /* Start covering the image */
	/*
	transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
} */

/* .album-card.loaded .img-container::after {
	transform: translateX(101%); /* Slide away to the right */
/* } */
/* ✨ END: New Image Overlay Animation */

.album-card-content {
	padding: 1rem;
	min-height: 7rem;
}

.album-card-content h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.2rem;
	color: #bb86fc;
	min-height: 1.5rem; /* Reserve space to prevent layout shift */
}

.album-card-content p {
	margin: 0;
	font-size: 0.9rem;
	color: #a0a0a0;
	line-height: 1.4;
}

/* ... (keep all styles from .album-card.loading to the end) ... */

/* .img-container img {
	opacity: 0;
	filter: blur(16px);
	transition: opacity 0.75s cubic-bezier(.4,0,.2,1), filter 0.75s cubic-bezier(.4,0,.2,1);
} */


.img-container {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #222;
	overflow: hidden;
}

.img-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	filter: blur(16px);
	transition: opacity 0.75s cubic-bezier(.4,0,.2,1), filter 0.75s cubic-bezier(.4,0,.2,1);
	background-color: #333;
}

.img-container img.loaded {
	opacity: 1;
	filter: blur(0);
}
.album-date {
	margin-top: auto;
	font-size: 0.85rem;
	color: #888;
	letter-spacing: 0.03em;
	text-align: right;
}

.page-fade {
	opacity: 1;
	transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
}
.page-fade.fade-out {
	opacity: 0;
	pointer-events: none;
}

/* --- Add these new styles at the end of your CSS file --- */

/* Masonry Grid Container on Memes Page */
#memes-container {
	display: block; /* Override the default grid display */
	position: relative;
    margin-top: 2rem;
}

/* ✅ Define the width of each grid item */
#memes-container .grid-item {
	width: calc(33.333% - 1rem); /* 3 columns with a gap */
	margin-bottom: 1.5rem;
	float: left; /* Required for Masonry's positioning */
	padding: 0 0.5rem;
	box-sizing: border-box;
}

/* Override fixed aspect ratio ONLY for memes page */
#memes-container .album-card img {
	aspect-ratio: auto;
	height: auto;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
	#memes-container .grid-item {
		width: calc(50% - 1rem); /* 2 columns */
	}
}

@media (max-width: 600px) {
	#memes-container .grid-item {
		width: 100%; /* 1 column */
		padding: 0;
	}
}
/* --- Add these new styles at the end of your CSS file --- */

/* --- Replace your existing Masonry styles with this block --- */

/* Masonry Grid Container on Memes Page */
#memes-container {
	display: block;
	position: relative;
}

/* Define the width of each grid item */
#memes-container .grid-item {
	width: calc(33.333% - 1rem);
	margin-bottom: 1.5rem;
	float: left;
	padding: 0 0.5rem;
	box-sizing: border-box;
}

/* ✅ MORE SPECIFIC RULE: This will now correctly override the default */
#memes-container .album-card .img-container {
	aspect-ratio: auto; /* Display original aspect ratio */
	height: auto;
}

/* We don't need a separate rule for the image itself anymore */
/* #memes-container .album-card img { ... } */

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
	#memes-container .grid-item {
		width: calc(50% - 1rem);
	}
}

@media (max-width: 600px) {
	#memes-container .grid-item {
		width: 100%;
		padding: 0;
	}
}


/* --- Add these new styles at the end of your CSS file --- */

/* "NEW" Badge Styling */
.album-card.new-album::before {
	content: "NEW";
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: #03dac6; /* Teal accent color from your theme */
	color: #121212;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	z-index: 10;
	/* Animation to fade the badge in */
	animation: new-badge-fade-in 0.5s ease-out 0.5s forwards;
	opacity: 0;
	pointer-events: none;
}

/* Glowing Border Animation */
.album-card.new-album {
	/* The animation will be applied to the box-shadow */
	animation: new-glow 2s infinite alternate ease-in-out;
}

/* Keyframes for the glowing border */
@keyframes new-glow {
	from {
		box-shadow: 0 0 5px rgba(3, 218, 198, 0.2),
			0 0 10px rgba(3, 218, 198, 0.2),
			0 4px 15px rgba(0, 0, 0, 0.5);
	}
	to {
		box-shadow: 0 0 15px rgba(3, 218, 198, 0.6),
			0 0 25px rgba(3, 218, 198, 0.4),
			0 4px 15px rgba(0, 0, 0, 0.5);
	}
}

/* Keyframes for the badge fade-in */
@keyframes new-badge-fade-in {
	to {
		opacity: 1;
	}
}
.level-badge {
    background: linear-gradient(90deg, #03dac6, #018786);
    color: #fff;
    border-radius: 8px;
    padding: 0.3em 1em;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 218, 198, 0.3);
    background: linear-gradient(90deg, #00acc1, #26c6da);
}

.level-badge:hover::before {
    left: 100%;
}

.level-badge:active {
    transform: translateY(0);
}
@media (max-width: 700px) {
    .crew-table thead {
        display: none;
    }
    .crew-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        background: #232323;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        margin-bottom: 1.1em;
        margin-top: 1.1em;
        padding: 0.7em 0.5em;
        width: 100%;
    }
    .crew-table td {
        display: flex;
        align-items: center;
        border: none;
        background: none;
        box-shadow: none;
        margin: 0 0.3em 0.3em 0;
        padding: 0.3em 0.4em;
        min-width: 0;
        font-size: 1.15em;
    }
    .crew-table td[data-label="Face"] {
        flex: 0 0 auto;
        margin-right: 0.7em;
        padding-right: 0;
        transition: flex 0.2s ease, margin 0.2s ease, justify-content 0.2s ease;
    }
    
    /* Mobile face enlargement: pivot ~40% so growth feels centred without layout change */
    .crew-table td[data-label="Face"] .crew-face {
        transform-origin: 40% center;
    }
    
    .crew-table td[data-label="Name"] {
        flex: 1 1;
        font-weight: 600;
        font-size: 1.25em;
        min-width: 80px;
        margin-right: 0.5em;
        align-items: center;
    }
    .crew-table td[data-label="Level"] {
        flex: 0 0 auto;
        margin-left: 0;
        font-size: 1.15em;
        align-items: center;
        order: 2;
    }
    .crew-table td[data-label="Skills"] {
        flex: 1 1 100%;
        margin-top: 0.5em;
        flex-wrap: wrap;
        font-size: 1.1em;
        order: 3;
    }
    .crew-table td[data-label="Location"] {
        display: none !important;
    }
    .crew-table td[data-label="New"] {
        display: none !important;
    }
    /* Optional: ensure order for name and face */
    .crew-table td[data-label="Face"] { order: 0; }
    .crew-table td[data-label="Name"] { order: 1; }
    /* When face is enlarged, let it grow to (almost) full viewport width and center it */
    .crew-table td[data-label="Face"]:has(.crew-face-container.enlarged) {
        flex: 1 1 100%;
        margin-right: 0;
        justify-content: center;
        padding-right: 2vw; /* extra right margin */
    }

    .crew-table td[data-label="Face"] .crew-face.enlarged {
        width: 92vw;   /* leave small side gutters */
        height: 92vw;  /* keep square aspect */
        max-width: 500px; /* don't get ridiculously big on tablets */
        max-height: 500px;
    }
}
.highlighted-crew {
	outline: 2px solid #03dac6;
    box-shadow: 0 0 0 3px #03dac655;
    background: linear-gradient(230deg, #232323 55%, #03dac622 100%) !important; 
    transition: outline 0.3s, box-shadow 0.3s, background 0.3s;
    z-index: 2;
}
.crew-table tr:nth-child(even) {
	background: #232323;
}

.crew-table tbody tr {
    transition: all 0.2s ease;
}

/* Smooth deletion animations */
.crew-table tbody tr {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out;
}

.crew-table tbody tr:hover:not(.highlighted-crew) {
    /* background: rgba(255, 255, 255, 0.05); */
    transform: translateY(-5px);
}

/* Progress Shelf Styles */
.expanded-row {
    position: relative;
}

/* Desktop Progress Shelf Styles (min-width: 701px) */
@media (min-width: 701px) {
    .progress-shelf-content {
        order: 9;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        z-index: 5;
        background: #232323;
        border: none;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-5px);
    }

    .progress-shelf-content.expanded {
        max-height: 220px;
        opacity: 1;
        transform: translateY(0);
    }

    .progress-shelf-content.closing {
        max-height: 0;
        opacity: 0;
        transform: translateY(-5px);
    }

    .progress-shelf-inner {
        padding: 1.2em 1.5em 1.5em 1.5em;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 12px;
    }
}

/* Mobile Progress Shelf Styles (max-width: 700px) - UNCHANGED */
@media (max-width: 700px) {
    .progress-shelf-content {
        position: relative;
        width: 100%;
        margin-top: 0.5em;
        order: 9;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .progress-shelf-inner {
        padding: 0.8em 0.5em 1.2em 0.5em;
    }
    .progress-shelf-content.expanded {
        max-height: 250px;
        opacity: 1;
    }
    .progress-shelf-content.closing {
        max-height: 0;
        opacity: 0;
    }
}

/* Progress Bar Styles */
.progress-bar-label {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #03dac6;
    text-align: center;
}
.progress-bar {
    width: 100%;
    height: 18px;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.7em;
    border: 1.5px solid #03dac6;
    position: relative;
    display: flex;
}
.progress-bar-inner.crew {
    background: linear-gradient(90deg, #03dac6, #03dac6);
}
.progress-bar-inner.skills {
    background: linear-gradient(90deg, #bb86fc, #bb86fc);
}
.progress-bar-inner.climbs {
    background: linear-gradient(90deg, #ff8052
    , #ff5252);
}
.progress-bar-inner.achievements {
    background: linear-gradient(90deg, #f3646e, #531c1f);
}
.progress-bar-inner {
    height: 100%;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.progress-bar-text {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.98em;
    font-weight: 600;
    transform: translateX(-50%);
    line-height: 18px;
    pointer-events: none;
    text-shadow: 0 1px 4px #000b;
}
.progress-breakdown {
    margin-top: 0.7em;
    color: #fff;
    font-size: 1em;
    text-align: center;
}
.progress-breakdown span {
    display: inline-block;
    margin: 0 0.5em;
    font-weight: 600;
}
.progress-breakdown .crew { color: #03dac6; }
.progress-breakdown .skills { color: #bb86fc; }
.progress-breakdown .climbs { color: #ffae52; }
.progress-breakdown .achievements { color: #f3646e; }

.progress-next-label {
    font-size: 1em;
    font-weight: 600;
    margin: 0.7em 0 0.3em 0;
    color: #ffae52;
    text-align: center;
}
.progress-next-bar {
    width: 100%;
    height: 18px;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #ffae52;
    position: relative;
    margin-bottom: 0.2em;
}
.progress-next-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #ffae52, #ff5252);
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.progress-next-bar-text {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
    transform: translateX(-50%);
    line-height: 14px;
    pointer-events: none;
    text-shadow: 0 1px 4px #000b;
}

.climbs-badge {
    background: linear-gradient(90deg, #bb86fc, #ff5252);
    color: #fff;
    border-radius: 8px;
    padding: 0.3em 1em;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.climbs-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.climbs-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
    background: linear-gradient(90deg, #cf6679, #ff8a80);
}

.climbs-badge:hover::before {
    left: 100%;
}

.climbs-badge:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .crew-table td[data-label="Climbs"] {
        flex: 0 0 auto;
        margin-left: 0.5em;
        align-items: center;
        order: 2;
    }
    .climbs-badge {
        display: none !important;
    }
}

/* --- Album Crew Face Stack --- */
.album-crew-stack {
  position: absolute;
  left: 0.7em;
  bottom: 0.7em;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  z-index: 2;
  height: 32px;
  width: auto;
  min-width: 0;
  max-width: 120px;
  pointer-events: auto;
}
.album-crew-face-link {
  display: block;
  position: relative;
  z-index: 1;
  margin-left: -12px;
  transition: margin 0.25s, z-index 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0008;
  aspect-ratio: 1/1;
  width: 32px;
  height: 32px;
}
.album-crew-face-link:first-child {
  margin-left: 0;
}
.album-crew-face {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid #bb86fc;
  background: #222;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px #0006;
  display: block;
}
.album-card:hover .album-crew-face-link,
.album-crew-stack:focus-within .album-crew-face-link {
  margin-left: 4px;
  z-index: 2;
}
.album-card:hover .album-crew-face,
.album-crew-stack:focus-within .album-crew-face {
  transform: scale(1.18);
  box-shadow: 0 4px 16px #bb86fc88;
}
.album-crew-face-link:focus .album-crew-face,
.album-crew-face-link:hover .album-crew-face {
  transform: scale(1.25);
  box-shadow: 0 6px 24px #03dac688;
  border-color: #03dac6;
}

/* New climber styling for album crew faces */
.album-crew-face.new-climber {
  border: 2px solid #ffae52;
  animation: new-climber-glow 3s ease-in-out infinite;
  position: relative;
}

.album-crew-face.new-climber::before {
  content: "✨";
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ffae52 0%, #ff6b35 100%);
  color: #121212;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 2px;
  border-radius: 4px;
  z-index: 10;
  animation: new-badge-pulse 2s ease-in-out infinite;
  transform: scale(0.7);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(255, 174, 82, 0.6);
  border: 1px solid #ff6b35;
}
.album-card-content {
  padding-bottom: 2.5em;
}

/* ===== CREW PAGE STYLES ===== */

/* Crew Table */
.crew-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem auto;
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
}

/* Hide the "New" column */
.crew-table th[data-key="new"],
.crew-table td[data-label="New"] {
    display: none !important;
}

.crew-table th, .crew-table td {
    padding: 1.2rem;
    text-align: left;
    font-size: 1.1em;
}

.crew-table th {
    background: #222;
    color: #03dac6;
    cursor: pointer;
    user-select: none;
    font-size: 1.15em;
    font-weight: 700;
}

.crew-face {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #bb86fc;
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border 0.3s ease,
                box-shadow 0.3s ease;
    display: block;
}

.crew-face:hover:not(.enlarged) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
}

.crew-face.enlarged {
    width: 300px;
    height: 300px;
    border: 4px solid #bb86fc;
    box-shadow: 0 10px 30px rgba(187, 134, 252, 0.8), 
                0 0 20px rgba(3, 218, 198, 0.4);
    animation: glow-pulse 2s infinite alternate ease-in-out;
}

/* New climber face styling */
.crew-face.new-climber {
    border: 3px solid #ffae52;
    animation: new-climber-glow 3s ease-in-out infinite;
    position: relative;
}

.crew-face.new-climber::before {
    content: "✨ NEW";
    position: absolute;
    top: -10px;
    right: -15px;
    background: linear-gradient(135deg, #ffae52 0%, #ff6b35 100%);
    color: #121212;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 8px;
    z-index: 10;
    animation: new-badge-pulse 2s ease-in-out infinite;
    transform: scale(0.85);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 174, 82, 0.6);
    border: 1px solid #ff6b35;
}

@keyframes new-climber-glow {
    0%, 100% { 
        border-color: #ffae52;
        box-shadow: 0 0 8px rgba(255, 174, 82, 0.4);
    }
    50% { 
        border-color: #ff6b35;
        box-shadow: 0 0 18px rgba(255, 174, 82, 0.8);
    }
}

@keyframes new-badge-pulse {
    0%, 100% { 
        transform: scale(0.85);
        opacity: 0.9;
    }
    50% { 
        transform: scale(0.95);
        opacity: 1;
    }
}

/* Auto-refresh loading animations */
@keyframes refresh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes refresh-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.refresh-loading {
    animation: refresh-fade-in 0.5s ease-out;
}

.refresh-loading .refresh-spinner {
    display: inline-block;
    animation: refresh-spin 1s linear infinite;
}

.refresh-success {
    animation: refresh-fade-in 0.5s ease-out;
}

.refresh-error {
    animation: refresh-fade-in 0.5s ease-out;
}

/* Particle Animation System */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.particle.blue {
    background: radial-gradient(circle, rgba(3, 218, 198, 0), #03dac6);
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.6);
}

.particle.red {
    background: radial-gradient(circle, rgba(255, 107, 107, 0), #ff6b6b);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.particle.green {
    background: radial-gradient(circle, rgba(78, 205, 196, 0), #4ecdc4);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

/* Particle animation keyframes */
@keyframes particle-created {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 0.4;
        transform: scale(0.6) translateY(0px);
    }
    40% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
    80% {
        opacity: 0.8;
        transform: scale(0.8) translateY(-40px);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-80px);
    }
}

@keyframes particle-deleted {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 0.4;
        transform: scale(0.6) translateY(0px);
    }
    40% {
        opacity: 1;
        transform: scale(1) translateY(10px);
    }
    80% {
        opacity: 0.8;
        transform: scale(0.8) translateY(40px);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(100px);
    }
}

@keyframes particle-updated {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 0.4;
        transform: scale(0.6) rotate(90deg);
    }
    40% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    80% {
        opacity: 0.8;
        transform: scale(0.8) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

.particle.created {
    animation: particle-created 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.particle.deleted {
    animation: particle-deleted 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.particle.updated {
    animation: particle-updated 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Item highlight animations for smooth transitions */
.item-being-deleted {
    animation: item-delete-fade 1s ease-out forwards;
}

.item-being-added {
    animation: item-add-fade 1s ease-out forwards;
}

.item-being-updated {
    animation: item-update-pulse 0.8s ease-out forwards;
}

@keyframes item-delete-fade {
    0% {
        opacity: 1;
        transform: scale(1);
        background-color: transparent;
    }
    50% {
        background-color: rgba(255, 107, 107, 0.2);
        transform: scale(0.98);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
        background-color: rgba(255, 107, 107, 0.1);
    }
}

@keyframes item-add-fade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        background-color: rgba(3, 218, 198, 0.3);
    }
    50% {
        background-color: rgba(3, 218, 198, 0.2);
        transform: scale(1.02) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
        background-color: transparent;
    }
}

@keyframes item-update-pulse {
    0% {
        background-color: transparent;
        transform: scale(1);
    }
    50% {
        background-color: rgba(76, 205, 196, 0.2);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Container for the face image that expands when enlarged */
.crew-face-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: justify-content 0.2s ease, width 0.2s ease, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.crew-face-container.enlarged {
    padding: 1rem;
}

/* New climber badge positioned on top of image */
.new-climber-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffae52 0%, #ff6b35 100%);
    color: #121212;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
    animation: new-badge-fade-in 0.5s ease-out 0.5s forwards;
    opacity: 0;
    pointer-events: all;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    border: 1px solid #ff6b35;
}

.new-climber-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 174, 82, 0.6);
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 10px 30px rgba(187, 134, 252, 0.8), 
                    0 0 20px rgba(3, 218, 198, 0.4);
    }
    to {
        box-shadow: 0 15px 40px rgba(187, 134, 252, 1), 
                    0 0 30px rgba(3, 218, 198, 0.6);
    }
}

.skill-badge {
    display: inline-block;
    background: #333;
    color: #bb86fc;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    margin: 0 0.2em 0.2em 0;
    font-size: 1.05em;
    font-weight: 600;
}

.tag-badge {
    display: inline-block;
    background: #2a2a2a;
    color: #888;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    margin: 0 0.2em 0.2em 0;
    font-size: 1.05em;
    font-weight: 600;
    opacity: 0.8;
}

.achievement-badge {
    display: inline-block;
    background: #f3646e;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    margin: 0 0.2em 0.2em 0;
    font-size: 1.05em;
    font-weight: 600;
}

/* .achievement-badge:hover {
    background: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 174, 82, 0.4);
} */

.skill-add-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #e0e0e0;
    border-radius: 50%;
    margin: 0 0.2em 0.2em 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.skill-add-badge:hover {
    background: #03dac6;
    color: #1a1a1a;
    border-color: #03dac6;
    transform: scale(1.1);
}

.address {
    color: #cf6679;
    font-size: 1.05em;
}

.climbs-link {
    color: #ffae52;
    text-decoration: underline;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.climbs-link:hover {
    color: #ffae52;
    border-bottom-color: #bb86fc;
}

.sortable:after { 
    content: " ⇅"; 
    font-size: 0.8em; 
    color: #666; 
}

.sorted-asc:after { 
    content: " ↑"; 
}

.sorted-desc:after { 
    content: " ↓"; 
}

/* Add Crew FAB */
.add-crew-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #03dac6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(3, 218, 198, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.add-crew-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 174, 82, 0.6);
}

.add-crew-fab:active {
    transform: scale(0.95);
}

.add-crew-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-crew-fab:hover::before {
    left: 100%;
}

.add-crew-fab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: white;
    z-index: 2;
}

.add-crew-fab.active .add-crew-fab-icon {
    transform: rotate(45deg);
}

.add-crew-fab.spinning .add-crew-fab-icon {
    animation: fabIconSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add Meme FAB */
.add-meme-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.add-meme-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.add-meme-fab:active {
    transform: scale(0.95);
}

.add-meme-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-meme-fab:hover::before {
    left: 100%;
}

.add-meme-fab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: white;
    z-index: 2;
}

.add-meme-fab.active .add-meme-fab-icon {
    transform: rotate(45deg);
}

.add-meme-fab.spinning .add-meme-fab-icon {
    animation: fabIconSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fabIconSpin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Add Meme Modal */
.add-meme-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.add-meme-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.add-meme-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.add-meme-modal-overlay.active .add-meme-modal {
    transform: scale(1);
}

.add-meme-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.add-meme-modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-meme-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.add-meme-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.add-meme-form {
    padding: 1.5rem;
}

/* Add Crew Modal */
.add-crew-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.add-crew-modal-overlay.active {
    display: flex;
}

.add-crew-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-crew-modal.active {
    transform: scale(1);
    opacity: 1;
}

.add-crew-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-crew-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(90deg, #03dac6, #bb86fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.add-crew-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.add-crew-modal-close:hover {
    background: #333;
    color: #fff;
}

.add-crew-form {
    padding: 2rem;
}

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

.form-label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #333;
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #03dac6;
    box-shadow: 0 0 0 3px rgba(3, 218, 198, 0.2);
}

.form-input.error {
    border-color: #cf6679;
    box-shadow: 0 0 0 3px rgba(207, 102, 121, 0.2);
}

.form-error {
    color: #cf6679;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-success {
    color: #03dac6;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #03dac6 0%, #018786 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 218, 198, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image Upload */
.image-upload-container {
    margin-bottom: 1.5rem;
}

.image-upload-area {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #222;
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: #03dac6;
    background: #333;
}

.image-upload-area.drag-over {
    border-color: #03dac6;
    background: #2a4a47;
}

.upload-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

.upload-text small {
    color: #888;
    font-size: 0.85rem;
}

.upload-file-input {
    display: none;
}

.image-preview {
    /* max-width: 200px; */
    /* max-height: 200px; */
    border-radius: 12px;
    object-fit: cover;
    margin-top: 1rem;
}

/* Skills Input */
.skills-input-container {
    position: relative;
}

.skills-input {
    width: 100%;
    padding: 1rem;
    background: #333;
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.skills-input:focus {
    outline: none;
    border-color: #03dac6;
    box-shadow: 0 0 0 3px rgba(3, 218, 198, 0.2);
}

.skills-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #333;
    border: 2px solid #444;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.skill-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s ease;
}

.skill-suggestion:hover,
.skill-suggestion.highlighted {
    background: #444;
    color: #03dac6;
}

.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #03dac6;
    color: #1a1a1a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag-remove {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.skills-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: #333;
    border: 2px solid #444;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.skill-badge-toggleable {
    background: #555;
    color: #e0e0e0;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
}

.skill-badge-toggleable:hover {
    background: #666;
    border-color: #777;
}

.skill-badge-toggleable.selected {
    background: #03dac6;
    color: #1a1a1a;
    border-color: #03dac6;
    font-weight: 600;
}

.skill-badge-toggleable.selected:hover {
    background: #018786;
    border-color: #018786;
}

.achievement-badge-toggleable {
    display: inline-block;
    background: #2a2a2a;
    color: #ffae52;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.achievement-badge-toggleable:hover {
    background: #333;
    border-color: #ffae52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 174, 82, 0.3);
}

.achievement-badge-toggleable.selected {
    background: #ffae52;
    color: #1a1a1a;
    border-color: #ff6b35;
    font-weight: 700;
}

.achievement-badge-toggleable.selected:hover {
    background: #ff6b35;
    color: #1a1a1a;
    border-color: #ff6b35;
}

/* Image Cropping Modal */
.crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.crop-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.crop-modal {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #333;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.crop-modal-overlay.active .crop-modal {
    transform: scale(1);
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
}

.crop-modal-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.crop-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.crop-modal-close:hover {
    background: #333;
    color: #fff;
}

.crop-modal-body {
    padding: 2rem;
    flex: 1;
    overflow: hidden;
}

.crop-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.crop-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
}

.crop-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crop-btn-cancel {
    background: #333;
    color: #fff;
}

.crop-btn-cancel:hover {
    background: #444;
}

.crop-btn-confirm {
    background: #03dac6;
    color: #1a1a1a;
}

.crop-btn-confirm:hover {
    background: #018786;
}

.skill-tag-remove:hover {
    background: rgba(26, 26, 26, 0.2);
}

/* Location Input */
.location-inputs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-inputs .form-input {
    flex: 1;
    min-width: 200px;
}

/* Crew Table Mobile Styles */
@media (max-width: 700px) {
    .crew-table thead {
        display: none;
    }
    .crew-table {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .crew-table tr {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .crew-table td {
        display: flex;
        align-items: center;
        border: none;
        background: none;
        box-shadow: none;
        margin: 0 0.3em 0.3em 0;
        padding: 0.2em 0.3em;
        min-width: 0;
        font-size: 1em;
    }
    .crew-table td[data-label="Face"] {
        flex: 0 0 auto;
        margin-right: 0.7em;
        padding-right: 0;
        order: 0;
    }
    .crew-table td[data-label="Level"] {
        flex: 0 0 auto;
        margin-left: 0;
        font-size: 1em;
        align-items: center;
        order: 2;
    }
    .crew-table td[data-label="Skills"] {
        flex: 1 1 100%;
        margin-top: 0.5em;
        flex-wrap: wrap;
        font-size: 0.97em;
        order: 3;
    }
    .crew-table td[data-label="Location"] {
        display: none !important;
    }
    .crew-table td[data-label="New"] {
        display: none !important;
    }
    
    body, main.page-fade {
        overflow-x: hidden !important;
    }
}

@media (max-width: 900px) and (min-width: 701px) {
    .crew-table td {
        padding: 0.7rem 0.3rem;
    }
    .level-badge {
        display: inline-block;
        min-width: 60px;
        text-align: center;
        font-size: 1em;
        padding: 0.3em 0.8em;
        white-space: nowrap;
    }
    .climbs-badge {
        display: inline-block;
        min-width: 60px;
        text-align: center;
        font-size: 1em;
        padding: 0.3em 0.8em;
        white-space: nowrap;
    }
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .add-crew-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .add-crew-modal-header,
    .add-crew-form {
        padding: 1.5rem;
    }
    
    .location-inputs {
        flex-direction: column;
    }
    
    .location-inputs .form-input {
        min-width: 0;
    }
}

/* Mobile FAB adjustments */
@media (max-width: 700px) {
    .add-crew-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .add-crew-fab-icon {
        font-size: 1.3rem;
    }
    
    /* Edit crew FAB positioning for mobile */
    #edit-crew-fab {
        right: 4rem !important;
        width: 56px;
        height: 56px;
    }
}

/* Edit Crew FAB Animations */
#edit-crew-fab {
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#edit-crew-fab.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

#edit-crew-fab.show .add-crew-fab-icon {
    animation: editFabSpinIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#edit-crew-fab.hide {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

#edit-crew-fab.hide .add-crew-fab-icon {
    animation: editFabSpinOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#edit-crew-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(3, 218, 198, 0.6);
}

#edit-crew-fab.show:hover {
    transform: scale(1.1);
}

#edit-crew-fab:active {
    transform: scale(0.95);
}

#edit-crew-fab.show:active {
    transform: scale(0.95);
}

/* Edit FAB spinning animations */
@keyframes editFabSpinIn {
    0% { 
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(-90deg) scale(0.8);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes editFabSpinOut {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(90deg) scale(0.8);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(180deg) scale(0.5);
        opacity: 0;
    }
}

/* Mobile edit FAB animations */
@media (max-width: 700px) {
    #edit-crew-fab.show:hover {
        transform: scale(1.05);
    }
    
    #edit-crew-fab.show:active {
        transform: scale(0.9);
    }
}

/* ============= OAuth Authentication Styles ============= */

/* Login Button - Tab Style */
.login-btn {
    color: #a0a0a0 !important;
    text-decoration: none;
    margin: 0 0.2em;
    font-weight: 500;
    padding: 5px 0.7em;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
}

.login-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 25%, #fbbc05 75%, #ea4335 100%);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.login-btn:hover {
    color: #ffffff !important;
}

.login-btn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.login-btn .google-icon {
    width: 18px;
    height: 18px;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s ease;
}

.login-btn:hover .google-icon {
    filter: grayscale(0) opacity(1);
}

/* User Profile Dropdown - Tab Style */
.user-profile-dropdown {
    position: relative;
    margin: 0 0.2em;
}

.user-profile-btn {
    background: none;
    border: none;
    padding: 5px 0.7em;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: inherit;
    font-size: 1em;
    font-weight: 500;
    position: relative;
}

.user-profile-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #03dac6;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.user-profile-btn:hover {
    color: #ffffff;
}

.user-profile-btn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s ease;
}

.user-profile-btn:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.8);
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Moved to later in file - see optimized version below */

/* Remove hover rotation since we handle it with .open state */

/* Profile Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 285px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    
    /* Hardware-accelerated smooth transitions */
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, visibility;
    
    /* Enable hardware acceleration */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Show state for dropdown */
.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Arrow rotation for open state */
.user-profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Optimize dropdown arrow animations */
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    color: inherit;
}

/* Improved dropdown entrance animation */
@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-info {
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

.profile-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
}

.profile-email {
    color: #a0a0a0;
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.9;
}

.dropdown-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0.75rem 0;
    opacity: 0.7;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Button specific styling for dropdown items */
.dropdown-item[type="button"],
button.dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Focus states for accessibility */
.dropdown-item:focus-visible {
    outline: 2px solid #03dac6;
    outline-offset: -2px;
    background: rgba(3, 218, 198, 0.1);
}

.user-profile-btn:focus-visible {
    outline: 2px solid #03dac6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Unified dropdown item hover effects */

/* Base hover state - clean and consistent */
.dropdown-item:hover {
    transform: translateX(4px);
    color: #ffffff;
}

/* Special accent items with borders and enhanced styling */
.manage-tokens-btn,
.clear-preferences-btn {
    border-left: 3px solid transparent;
}

.manage-tokens-btn:hover {
    background: rgba(3, 218, 198, 0.15);
    color: #03dac6;
    border-left-color: #03dac6;
    box-shadow: inset 0 0 0 1px rgba(3, 218, 198, 0.2);
}

.clear-preferences-btn:hover {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border-left-color: #ff9800;
    box-shadow: inset 0 0 0 1px rgba(255, 152, 0, 0.2);
}

/* Simple colored items without borders */
.logout-btn {
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff8a8a;
    border-left-color: #c73b3b;
    box-shadow: inset 0 0 0 1px rgba(255, 152, 0, 0.2);
}

.dropdown-item[href*="/admin"]:hover {
    background: rgba(187, 134, 252, 0.15);
    color: #bb86fc;
    border-left-color: #bb86fc;
    box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.2);
}

.dropdown-item[href*="photos.google.com"]:hover {
    background: rgba(3, 218, 198, 0.15);
    color: #03dac6;
    border-left-color: #03dac6;
    box-shadow: inset 0 0 0 1px rgba(3, 218, 198, 0.2);
}

/* Pending status item styling */
.pending-status-item {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-left: 3px solid #ff9800;
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

.pending-status-item:hover {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    transform: none;
}

/* Default hover for any other items */
.dropdown-item:hover:not(.manage-tokens-btn):not(.clear-preferences-btn):not(.logout-btn):not([href*="/admin"]):not([href*="photos.google.com"]) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Auth Content Visibility */
[data-auth-required="true"] {
    display: none;
}

[data-auth-required="false"] {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .login-btn {
        margin: 0 0.1em;
        font-size: 0.97em;
        padding: 4px 0.5em;
    }
    
    .login-btn .google-icon {
        width: 16px;
        height: 16px;
    }
    
    .user-profile-dropdown {
        margin: 0 0.1em;
    }
    
    .user-profile-btn {
        font-size: 0.97em;
        padding: 4px 0.5em;
    }
    
    .user-name {
        max-width: 80px;
    }
    
    .user-avatar {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 600px) {
    .login-btn {
        margin: 0 0.05em;
        font-size: 0.93em;
        padding: 3px 0.3em;
    }
    
    .login-btn .google-icon {
        width: 14px;
        height: 14px;
    }
    
    .login-btn span {
        gap: 4px;
    }
    
    .user-profile-dropdown {
        margin: 0 0.05em;
    }
    
    .user-profile-btn {
        font-size: 0.93em;
        padding: 3px 0.3em;
        gap: 0.3rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 20px;
        height: 20px;
    }
    
    .profile-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
}

/* ==== MEMES INTERFACE STYLES ==== */

/* Memes Header */
.memes-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 0 1rem;
}

.memes-header h1 {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Upload Section */
.upload-section {
	background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
	border-radius: 16px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-container h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	color: #bb86fc;
	font-size: 1.8rem;
	font-weight: 600;
}

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

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #e0e0e0;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	color: #e0e0e0;
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #bb86fc;
	box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.form-group input[type="file"] {
	background: transparent;
	border: 2px dashed rgba(255, 255, 255, 0.3);
	cursor: pointer;
	padding: 1rem;
	text-align: center;
}

.form-group input[type="file"]:hover {
	border-color: #bb86fc;
}

.image-preview {
	margin-top: 1rem;
}

.preview-image {
	position: relative;
	display: inline-block;
	border-radius: 8px;
	overflow: hidden;
	max-width: 300px;
}

.preview-image img {
	width: 100%;
	height: auto;
	display: block;
}

.remove-preview {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.form-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-primary {
	background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
	color: #121212;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(187, 134, 252, 0.4);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e0e0;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
	background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
	color: white;
}

.btn-danger:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

#add-meme-btn {
	position: relative;
	overflow: hidden;
}

#add-meme-btn span {
	font-size: 1.2rem;
	font-weight: bold;
}

/* Memes Grid */
.memes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding: 0;
	margin: 0 auto;
	max-width: 1200px;
	box-sizing: border-box;
}

@media (max-width: 1232px) {
	.memes-grid {
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}
}

.meme-card {
	background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	break-inside: avoid;
	margin-bottom: 20px;
	box-sizing: border-box;
	max-width: 100%;
	will-change: transform;
}

.meme-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 8px 32px rgba(187, 134, 252, 0.18);
	border-color: rgba(187, 134, 252, 0.3);
}

.meme-image-container {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.meme-image-container img {
	width: 100%;
	height: auto;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

.meme-card:hover .meme-image-container img {
	transform: none;
}

.meme-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.meme-card:hover .meme-overlay {
	opacity: 1;
}

.meme-action-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.meme-action-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

.meme-action-btn span {
	font-size: 1.5rem;
}

.meme-content {
	padding: 1.5rem;
}

.meme-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: #e0e0e0;
	line-height: 1.3;
}

.meme-description {
	margin: 0 0 1rem 0;
	color: #b0b0b0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.meme-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tag {
	background: rgba(187, 134, 252, 0.2);
	color: #bb86fc;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(187, 134, 252, 0.3);
}

.meme-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #888;
	font-size: 0.85rem;
}

.meme-date {
	font-size: 0.8rem;
	color: #888;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: #888;
	grid-column: 1 / -1;
}

.empty-state h3 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: #bb86fc;
}

.empty-state p {
	font-size: 1.1rem;
}

/* Loading State */
.loading-state {
	text-align: center;
	padding: 4rem 2rem;
	color: #888;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(187, 134, 252, 0.2);
	border-top: 4px solid #bb86fc;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

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

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.modal-content {
	background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
	margin: 2% auto;
	padding: 0;
	border-radius: 16px;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: #888;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.modal-content .close:hover {
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
}

.modal-body {
	padding: 2rem;
}

.modal-image-container {
	text-align: center;
	margin-bottom: 2rem;
}

.modal-image-container img {
	max-width: 100%;
	max-height: 60vh;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-info h3 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	color: #e0e0e0;
}

.modal-info p {
	margin: 0 0 1rem 0;
	color: #b0b0b0;
	line-height: 1.5;
}

.modal-tags {
	margin-bottom: 1.5rem;
}

.modal-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	color: #888;
	font-size: 0.9rem;
}

.modal-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}

/* Notifications */
.notification {
	position: fixed;
	top: 90px;
	right: 2rem;
	z-index: 1100;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	color: white;
	font-weight: 500;
	max-width: 400px;
	animation: notification-slide-in 0.3s ease;
}

.notification.success {
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.notification.error {
	background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
	box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

@keyframes notification-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.memes-header {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.memes-header h1 {
		font-size: 2rem;
	}

	.upload-section {
		padding: 1.5rem;
	}

	.memes-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}

	.memes-grid.masonry-ready {
		display: block;
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}

	.modal-content {
		width: 95%;
		margin: 5% auto;
	}

	.modal-body {
		padding: 1.5rem;
	}

	.form-actions {
		flex-direction: column;
	}

	.modal-actions {
		flex-direction: column;
	}

	.notification {
		right: 1rem;
		left: 1rem;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.memes-header h1 {
		font-size: 1.5rem;
	}

	.upload-section {
		padding: 1rem;
	}

	.meme-content {
		padding: 1rem;
	}

	.modal-content {
		margin: 2% auto;
		width: 98%;
	}

	.modal-body {
		padding: 1rem;
	}
}

/* Masonry Layout Support */
.memes-grid.masonry-ready {
	display: block;
	box-sizing: border-box;
	padding: 0;
	margin: 0 auto;
	max-width: 1050px;
}

@media (max-width: 1232px) {
	.memes-grid.masonry-ready {
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}
}

.memes-grid.masonry-ready .meme-card {
	width: calc(33.333% - 14px);
	margin-bottom: 20px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.memes-grid.masonry-ready .meme-card {
		width: calc(50% - 10px);
	}
}

@media (max-width: 600px) {
	.memes-grid {
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}
	
	.memes-grid.masonry-ready {
		margin: 0 1rem;
		max-width: calc(100vw - 2rem);
	}
	
	.memes-grid.masonry-ready .meme-card {
		width: calc(100% - 20px);
		margin-left: 10px;
		margin-right: 10px;
	}
}

/* Admin Panel Meme Support */
.role-badge.role-pending {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	color: white;
}

/* Custom Confirmation Dialog */
.custom-dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: dialog-overlay-fade-in 0.2s ease-out;
}

.custom-dialog {
	background: #1e1e1e;
	border-radius: 12px;
	padding: 0;
	max-width: 400px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	animation: dialog-slide-in 0.3s ease-out;
	border: 1px solid #333;
}

.dialog-title {
	color: #e0e0e0;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
	padding: 20px 20px 0 20px;
	text-align: center;
}

.dialog-message {
	color: #b0b0b0;
	font-size: 0.95rem;
	line-height: 1.4;
	margin: 0;
	padding: 15px 20px 20px 20px;
	text-align: center;
}

.dialog-actions {
	display: flex;
	gap: 10px;
	padding: 0 20px 20px 20px;
	justify-content: center;
}

.dialog-btn {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.dialog-btn-cancel {
	background: #333;
	color: #e0e0e0;
	border: 1px solid #555;
}

.dialog-btn-cancel:hover {
	background: #404040;
	transform: translateY(-1px);
}

.dialog-btn-confirm {
	background: #dc3545;
	color: white;
	border: 1px solid #dc3545;
}

.dialog-btn-confirm:hover {
	background: #c82333;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.dialog-btn:active {
	transform: translateY(0);
}

.dialog-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

@keyframes dialog-overlay-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes dialog-slide-in {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Mobile responsive */
@media (max-width: 480px) {
	.custom-dialog {
		width: 95%;
		margin: 20px;
	}
	
	.dialog-actions {
		flex-direction: column;
	}
	
	.dialog-btn {
		flex: none;
	}
}

/* Custom Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirmation-dialog.show {
    opacity: 1;
    pointer-events: all;
}

.confirmation-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.confirmation-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.confirmation-message {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-btn.cancel {
    background: #666;
    color: #fff;
}

.confirmation-btn.confirm {
    background: #e74c3c;
    color: #fff;
}

.confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Pending Approval Notification */
.pending-approval-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    animation: slideDown 0.5s ease-out;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.pending-approval-notification.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pending-notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.pending-notification-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
}

.pending-notification-text {
    flex: 1;
    min-width: 0;
}

.pending-notification-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pending-notification-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.pending-notification-status {
    display: flex;
    align-items: center;
}

.pending-notification-status .status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive design for pending notification */
@media (max-width: 768px) {
    .pending-notification-content {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .pending-notification-icon {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    .pending-notification-text h3 {
        font-size: 1rem;
    }
    
    .pending-notification-text p {
        font-size: 0.85rem;
    }
}

/* Adjust main content when notification is present */
body:has(.pending-approval-notification) {
    padding-top: 120px;
}

@media (max-width: 768px) {
    body:has(.pending-approval-notification) {
        padding-top: 140px;
    }
}

#crew-table-container {
  padding-bottom: 6rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.info {
    background: #2196F3;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #cf6679;
}

.notification.fade-out {
    opacity: 0;
}

/* Notification Management Modal Styles */
.notification-management-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.notification-management-modal {
    background: #1e1e1e;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.notification-management-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-management-modal .modal-header h2 {
    margin: 0;
    color: #bb86fc;
    font-size: 24px;
}

.notification-management-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-management-modal .close-btn:hover {
    color: #bb86fc;
}

.notification-management-modal .modal-content {
    padding: 20px;
}

.notification-management-modal .modal-description {
    margin-bottom: 20px;
    color: #888;
    font-size: 14px;
}

.devices-table-container {
    overflow-x: auto;
}

.devices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.devices-table th,
.devices-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.devices-table th {
    background-color: #2d2d2d;
    font-weight: 600;
    color: #bb86fc;
    font-size: 12px;
    text-align: center;
}

.devices-table .device-info {
    min-width: 200px;
}

.devices-table .device-name {
    margin-bottom: 4px;
}

.devices-table .device-name strong {
    color: #e0e0e0;
    font-size: 14px;
}

.devices-table .device-name small {
    color: #888;
    font-size: 12px;
    display: block;
}

.devices-table .device-details {
    font-size: 11px;
    color: #666;
}

.checkbox-cell {
    text-align: center;
    width: 80px;
}

.actions-cell {
    text-align: center;
    width: 100px;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #bb86fc;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.remove-device-btn {
    background: #cf6679;
    color: #1e1e1e;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.remove-device-btn:hover {
    background: #ff4757;
}

.no-devices {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-devices p:first-child {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-management-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .devices-table {
        font-size: 12px;
    }
    
    .devices-table th,
    .devices-table td {
        padding: 8px 4px;
    }
    
    .checkbox-cell,
    .actions-cell {
        width: auto;
    }
    
    .switch {
        width: 35px;
        height: 18px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .slider:before {
        transform: translateX(17px);
    }
}

/* Enable Notifications Banner Styles */
.enable-notifications-banner {
    background: #232323;
    border: 1px solid #bb86fc;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
    text-align: center;
    color: #bb86fc;
}
.enable-notifications-banner p {
    margin: 0 0 10px 0;
    font-size: 15px;
}
.enable-notifications-btn {
    background: #bb86fc;
    color: #1e1e1e;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.enable-notifications-btn:hover {
    background: #a06be5;
    color: #fff;
}

/* ==================== ENHANCED ADMIN NOTIFICATIONS UI ==================== */

/* Enhanced Notification Form Container */
.notification-form-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.1), transparent);
    transition: left 0.6s ease;
}

.notification-form-container:hover::before {
    left: 100%;
}

.notification-form-container:hover {
    border-color: rgba(187, 134, 252, 0.4);
    box-shadow: 0 8px 32px rgba(187, 134, 252, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Form Group Styling */
.system-notification-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.system-notification-form .form-group label {
    font-weight: 600;
    color: #bb86fc;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.system-notification-form .form-group label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #bb86fc, #03dac6);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Enhanced Form Inputs */
.system-notification-form .form-group input,
.system-notification-form .form-group textarea,
.system-notification-form .form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.system-notification-form .form-group input:focus,
.system-notification-form .form-group textarea:focus,
.system-notification-form .form-group select:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(187, 134, 252, 0.1);
    box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.2);
    transform: translateY(-1px);
}

.system-notification-form .form-group input:hover,
.system-notification-form .form-group textarea:hover,
.system-notification-form .form-group select:hover {
    border-color: rgba(187, 134, 252, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Character Counter for Text Areas */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.char-counter::after {
    content: attr(data-count);
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8rem;
    color: #888;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-group.char-counter.warning::after {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.2);
}

/* Enhanced Help Text */
.form-help {
    font-size: 0.875rem;
    color: rgba(187, 134, 252, 0.7);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.form-help::before {
    content: '💡';
    font-size: 0.8rem;
}

/* Enhanced Action Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-actions .action-btn {
    position: relative;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    overflow: hidden;
    min-height: 48px;
}

.form-actions .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-actions .action-btn:hover::before {
    left: 100%;
}

/* Primary Button (Send Notification) */
.form-actions .btn-primary {
    background: linear-gradient(135deg, #bb86fc 0%, #9c27b0 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.4);
    transform: translateY(-2px);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(187, 134, 252, 0.3);
}

/* Secondary Button (Debug) */
.form-actions .btn-secondary {
    background: linear-gradient(135deg, #03dac6 0%, #018786 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(3, 218, 198, 0.3);
}

.form-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #018786 0%, #004d40 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(3, 218, 198, 0.4);
    transform: translateY(-2px);
}

/* Warning Button (macOS Troubleshoot) */
.form-actions .btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.form-actions .btn-warning:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

/* Loading State for Buttons */
.action-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-loading-spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Enhanced User Notification Modal */
.user-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.user-notification-modal.show {
    opacity: 1;
    visibility: visible;
}

.user-notification-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(187, 134, 252, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-notification-modal.show .user-notification-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header Enhancement */
.user-notification-modal .modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(3, 218, 198, 0.1) 100%);
    border-radius: 20px 20px 0 0;
}

.user-notification-modal .modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-notification-modal .modal-header button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-notification-modal .modal-header button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Enhanced Notification Devices Table */
.notification-devices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.notification-devices-table th {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    color: #bb86fc;
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(187, 134, 252, 0.2);
}

.notification-devices-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.notification-devices-table tr:hover td {
    background: rgba(187, 134, 252, 0.05);
}

/* Enhanced Device Info Display */
.device-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left !important;
}

.device-info .device-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.device-info .device-platform {
    font-size: 0.8rem;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.device-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Enhanced Toggle Switches */
.notification-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-toggle input[type="checkbox"] {
    appearance: none;
    width: 50px;
    height: 26px;
    background: #444;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.notification-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #bb86fc, #9c27b0);
    border-color: #bb86fc;
}

.notification-toggle input[type="checkbox"]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

.notification-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-toggle input[type="checkbox"]:checked::before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Success/Error Toast Animations */
.notification-toast {
    position: fixed;
    top: 90px;
    right: 2rem;
    z-index: 1100;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.notification-toast.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.notification-toast.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Form Validation States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    animation: input-shake 0.5s ease-in-out;
}

.form-group.error label::before {
    background: #f44336;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.form-group.success label::before {
    background: #4caf50;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .notification-form-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .user-notification-modal-content {
        width: 95%;
        margin: 2rem auto;
    }

    .notification-devices-table {
        font-size: 0.85rem;
    }

    .notification-devices-table th,
    .notification-devices-table td {
        padding: 0.75rem 0.5rem;
    }

    .notification-toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .notification-form-container {
        padding: 1rem;
        border-radius: 12px;
    }

    .system-notification-form .form-group input,
    .system-notification-form .form-group textarea,
    .system-notification-form .form-group select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .form-actions .action-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .user-notification-modal .modal-header {
        padding: 1.5rem;
    }

    .user-notification-modal .modal-header h3 {
        font-size: 1.25rem;
    }
}

/* Focus Accessibility Enhancements */
.action-btn:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid #bb86fc;
    outline-offset: 2px;
}

.notification-toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid #bb86fc;
    outline-offset: 4px;
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .notification-form-container {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    }
    
    .user-notification-modal-content {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    }
}

/* Performance Optimizations */
.notification-form-container,
.user-notification-modal-content,
.action-btn,
.notification-toggle input[type="checkbox"] {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Micro-interactions for Better UX */
.form-group input:focus + .form-help,
.form-group textarea:focus + .form-help,
.form-group select:focus + .form-help {
    color: #bb86fc;
    transform: translateX(2px);
}

.system-notification-form .form-group:focus-within label::before {
    height: 20px;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

/* ==================== ADVANCED NOTIFICATION FORM FEATURES ==================== */

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(187, 134, 252, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #03dac6;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.section-title.expandable {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 8px;
    margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    transition: all 0.3s ease;
}

.section-title.expandable:hover {
    background: rgba(3, 218, 198, 0.1);
    color: #ffffff;
}

.expand-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.section-title.expandable.expanded .expand-arrow {
    transform: rotate(180deg);
}

/* Advanced Options Collapsible */
.advanced-options {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.advanced-options.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* Form Rows for Side-by-Side Inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* File Upload Styling */
.file-upload-container {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-area {
    border: 2px dashed rgba(187, 134, 252, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(187, 134, 252, 0.05);
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: rgba(187, 134, 252, 0.6);
    background: rgba(187, 134, 252, 0.1);
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: #03dac6;
    background: rgba(3, 218, 198, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.upload-text {
    color: #bb86fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(187, 134, 252, 0.3);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.8rem;
    color: #888;
}

.file-preview-remove {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-preview-remove:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: scale(1.05);
}

/* Action Buttons Row */
.action-row {
    display: grid;
    grid-template-columns: 2fr 2fr 60px;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.action-row:hover {
    border-color: rgba(187, 134, 252, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.action-title, .action-url, .action-icon {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-title:focus, .action-url:focus, .action-icon:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(187, 134, 252, 0.1);
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
}

.action-icon {
    text-align: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .action-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Checkbox Grid for Behavior Options */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.checkbox-item:hover {
    background: rgba(187, 134, 252, 0.1);
    border-color: rgba(187, 134, 252, 0.3);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #bb86fc, #9c27b0);
    border-color: #bb86fc;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item:hover .checkmark {
    border-color: #bb86fc;
    transform: scale(1.05);
}

/* Vibration Controls */
.vibration-controls {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem;
    align-items: center;
}

#vibration-preset {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.9rem;
}

#vibration-pattern {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .vibration-controls {
        grid-template-columns: 1fr;
    }
}

/* Preview Button Styling */
.btn-preview {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-preview:hover {
    background: linear-gradient(135deg, #5f3dc4 0%, #6c5ce7 100%);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

/* Enhanced datetime input styling */
input[type="datetime-local"] {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 100%;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(187, 134, 252, 0.1);
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
}

/* Color scheme for datetime inputs */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Responsive improvements for mobile */
@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        font-size: 1.5rem;
    }

    .upload-text {
        font-size: 0.8rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Focus states for accessibility */
.action-title:focus-visible,
.action-url:focus-visible,
.action-icon:focus-visible,
#vibration-pattern:focus-visible,
#vibration-preset:focus-visible {
    outline: 2px solid #bb86fc;
    outline-offset: 2px;
}

/* Loading states for file uploads */
.file-upload-area.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.file-upload-area.uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(187, 134, 252, 0.3);
    border-top: 3px solid #bb86fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error states */
.file-upload-area.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.file-upload-area.error .upload-text {
    color: #ff6b6b;
}

/* Success states */
.file-upload-area.success {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.file-upload-area.success .upload-text {
    color: #81c784;
}
