/* CSS Variables */ 
:root {
	--transition: 520ms;
	--swatch: 72px;
	--gap: 12px;
	--barColor: #000000;
	--yellow: #e8ca66;
	--mediumYellow: #d5a32d;
	--amber: #c29428;
	--gold: #d8b44d;
	--black: #000000;
	--logoOrange: #ee4f03;
	--itemBG: #F9F9F9;
	--itemBorder: #CCCCCC;
	--itemHoverBG: #E8F4FD;
	--itemHoverBorder: #0066CC;
	--itemSelectedBG: #D4EDDA;
	--itemSelectedBorder: #28A745;
	
	--modernBlue: #2563eb;
    --mediumBlue: #2368a2;
    --lightBlue: #91b4d1;
	--brightBlue: #168edf;
	
	--doneButton: #0db210;
	--green: #0b9c0e;
	
	/* Cube size variables for responsive design */
	--cube-size: 220px;
	--cube-half: 110px;
}

/* Tablet/medium cube sizing (550px - 768px) */
@media (min-width: 550px) and (max-width: 768px) {
	:root {
		--cube-size: 260px;
		--cube-half: 130px;
	}
}

/* Desktop cube sizing */
@media (min-width: 769px) {
	:root {
		--cube-size: 316px;
		--cube-half: 158px;
	}
}

/* Base Styles */
body, .status, #instructions {
  font-family: 'Inter', sans-serif;
}
body {
	margin: 0;
	padding: 0;
	background-color: #000;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

/* Mobile: hide vertical scrollbar */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
}
@media (max-width: 768px) {
    body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        min-height: 100% !important;
        height: 100% !important;		
    }
    #cubeBG {
        min-height: 300px !important;  /* Or remove min-height entirely */
    }
}

/* ========== REFACTORED FACE STRUCTURE CLASSES ========== */

/* Face container structure */
.face-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Face header (black bar with title) */
.face-header {
    background: #000000;
    color: white;
    text-align: center;
    font-weight: 500;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: 20px;
    padding: 12px 0;
}

@media (min-width: 769px) {
    .face-header {
        font-size: 27px;
        padding: 12px 0;
    }
}

/* Face content area (main display area) */
.face-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ========== PLACEHOLDER HOVER EFFECTS FOR DOTTED BORDERS ========== */
/* Universal placeholder hover effect using class */
.face:hover .placeholder {
    background: #f6efe0 !important;
    border-width: 4px !important;
}

.face:hover .placeholder-text {
	font-weight: 500 !important;
    color: #000000 !important;
}

/* Responsive sizing for icon placeholder to match selected icon container dimensions */
.icon-container .placeholder {
    width: 112px !important;
    border-radius: 0 12px 0 12px !important;
    padding: 28px 0 !important;
}

@media (min-width: 769px) {
    .icon-container .placeholder {
        width: 172px !important;
        border-radius: 0 12px 0 12px !important;
        padding: 28px 0 !important;
    }
}


/* ========== CONSISTENT PLACEHOLDER TEXT STYLING ========== */
.placeholder-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
	font-weight: 300 !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .placeholder-text {
        font-size: 20px !important;
    }
}

/* ========== DEFAULT NOTE TEXT (when no font selected) ========== */
.note-text-default {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #000 !important;
    line-height: 1.5 !important;
}

/* ========== PLACEHOLDER CONTAINER FLEX STYLING ========== */
.placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent;
    border: 2px solid #c69a31;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Specific fixes for different placeholder types */
.color-dot-container.placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 769px) {
    .color-dot-container.placeholder {
        width: 150px !important;
        height: 150px !important;
    }
}

.font-container.placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.message-text.placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 85px !important;
    border-radius: 8px !important;
    padding: 25px 0 !important;
    border: 2px solid #c69a31 !important;
}

@media (min-width: 769px) {
    .message-text.placeholder {
        width: 144px !important;
        border-radius: 10px !important;
    }
}



/* Color dot container - default state */
.color-dot-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 15px;
}

/* Color dot container when color is selected - show shadow ring by default */
.color-dot-container.selected {
    /* Container styling */
    width: 82px;
    height: 82px;
    box-sizing: content-box;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white, 0 0 8px 7px rgba(0, 0, 0, 0.25); /* White inner ring + blurred shadow */
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

@media (min-width: 550px) and (max-width: 768px) {
    .color-dot-container {
        width: 140px;
        height: 140px;
        border-radius: 50%;
    }
    
    .color-dot-container.selected {
        border: none;
        border-radius: 50%;
        box-shadow: 0 0 0 2px white, 0 0 8px 7px rgba(0, 0, 0, 0.25);
    }
}

@media (min-width: 769px) {
    .color-dot-container {
        width: 150px;
        height: 150px;
        border-radius: 50%;
    }
    
    .color-dot-container.selected {
        width: 126px;
        height: 126px;
        border: none;
        border-radius: 50%;
        box-shadow: 0 0 0 2px white, 0 0 8px 7px rgba(0, 0, 0, 0.25);
    }
}


/* Icon container */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Mobile: Icon = 81px, Container = 97px (81 + 16) */
.icon-container img {
    object-fit: contain;
    width: 81px;
    height: 81px;
    /* Container styling - makes total size 97px x 97px */
    box-sizing: content-box; /* Important: padding adds to width/height */
    padding: 8px; /* 8px on each side for 16px total */
    
    /* Simple styling */
    background: transparent;
    border-radius: 8px; /* Rounded corners */
    border: none; /* No border when selected */
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* Hover effect for icon container */
.face:hover .icon-container img {
    border-color: var(--mediumBlue); /* Blue border on hover */
}

/* Tablet specific sizing: Icon = 100px, Container = 116px (100 + 16) */
@media (min-width: 550px) and (max-width: 768px) {
    .icon-container img {
        width: 100px;
        height: 100px;
        padding: 8px; /* 8px on each side for 16px total - total size 116px x 116px */
        border-radius: 10px; /* Medium border radius for tablet */
        border: none; /* No border when selected */
    }
}

/* Desktop specific sizing: Icon = 100px, Container = 116px (100 + 16) */
@media (min-width: 769px) {
    .icon-container img {
        width: 100px;
        height: 100px;
        padding: 8px; /* 8px on each side for 16px total - total size 116px x 116px */
        border-radius: 12px; /* Larger border radius for desktop */
        border: none; /* No border when selected */
    }
    
    /* Enhanced hover effect for desktop */
    .face:hover .icon-container img {
		border-color: var(--mediumBlue); /* Blue border on hover */
		border-width: 4px;
    }
}


/* Font container */
.font-container {
    background: white;
    padding: 0px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-container img {
    object-fit: contain;
}

@media (min-width: 769px) {
    .font-container {
        padding: 0px 0px;
        border-radius: 11px;
    }
}

/* Font placeholder specific sizing */
.font-container.placeholder {
    width: 100px !important;
    height: 100px !important;
    border-radius: 8px !important;
    padding: 25px 0 !important;
    background: transparent !important;
    transform: rotate(45deg);
}

.font-container.placeholder .placeholder-text {
    transform: rotate(-45deg);
}

@media (min-width: 769px) {
    .font-container.placeholder {
        width: 132px !important;
        height: 132px !important;
        border-radius: 12px !important;
    }
}

/* CSS for word cycling animation */
.text-cycle {
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.text-cycle span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: word-cycle 8s infinite;
}

.text-cycle .word-1 { animation-delay: 0s; }
.text-cycle .word-2 { animation-delay: 2s; }
.text-cycle .word-3 { animation-delay: 4s; }
.text-cycle .word-4 { animation-delay: 6s; }

@keyframes word-cycle {
    0%, 25% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    5%, 20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    25%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}


/* Message text container - same styling as icon container */
.message-text {
    font-weight: 300;
    color: #000000;
    text-align: left;
    white-space: normal;
    font-size: 16px;
    line-height: 1.3;
    
    /* Container styling - same as icon container */
    box-sizing: content-box;
    padding: 8px; /* 8px on each side for 16px total padding */
    background: transparent;
    border-radius: 8px; /* Rounded corners */
    margin: 0 12px; /* Add some margin from face edges */
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* Hover effect for message container */
.face:hover .message-text {
    border-color: var(--mediumBlue); /* Blue border on hover */
}

@media (min-width: 550px) and (max-width: 768px) {
    .message-text {
        font-size: 18px;
        line-height: 1.25;
        padding: 12px; /* Medium padding for tablet */
        border-radius: 10px; /* Medium border radius for tablet */
        border: none; /* No border when selected */
        margin: 0 14px; /* Medium margin for tablet */
    }
    
    /* Hover effect for tablet */
    .face:hover .message-text {
    	border-color: var(--mediumBlue); /* Blue border on hover */
		border-width: 3px;		
    }
}

@media (min-width: 769px) {
    .message-text {
        font-size: 20px;
        line-height: 1.2;
        padding: 16px; /* Same 16px total padding for desktop */
        border-radius: 12px; /* Larger border radius for desktop */
        border: none; /* No border when selected */
        margin: 0 16px; /* Larger margin for desktop */
    }
    
    /* Enhanced hover effect for desktop */
    .face:hover .message-text {
    	border-color: var(--mediumBlue); /* Blue border on hover */
		border-width: 4px;		
    }
}


/* Icon filter bar styling */
.icon-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    padding: 8px 10px 10px 10px !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.icon-filter-bar::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
}

/* ========== BUTTON STYLES ========== */

.btn {
	padding: 0.6rem calc(0.6rem - 1px) 0.5rem calc(0.6rem - 1px);
	border-radius: 6px;
	border-radius: 30px;
	background: -webkit-linear-gradient(#c69a31, #e6c965);
	background: -o-linear-gradient(#c69a31, #e6c965);
	background: linear-gradient(#c69a31, #e6c965);	
	border: solid 2px #e6c965;
    font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	line-height: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0px;
	color: #333;
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
	flex: 1 1 auto;
}

.btn:hover {
	transform: translateY(-5px);
	border-color: #FFF;
	cursor: pointer;
	background: linear-gradient(to bottom, #e6c965, #c69a31);
}

.btn:focus {
	outline: none;
}

.btn.active {
	border-color: #c69a31;
	background: linear-gradient(to bottom, #e6c965, #c69a31);
	color: #fff;
}


/* Completed button style - orange checkmark in white badge */
.btn.completed {
	background: var(--black);
	color: white;
	text-transform: uppercase;
	border-color: var(--black);
	position: relative;
	padding-left: 2rem;
}

.btn.completed::before {
	content: '\2714';
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	color: var(--logoOrange) !important;
	font-size: 0.7rem;
	font-weight: bold;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.btn.completed::after {
	display: none !important;
}

/* Mobile: reduce padding for completed buttons - handled by body.mobile-mode selector below */

/* Safari mobile fix - uses body.mobile-mode class added by nova-init.js */
body.mobile-mode .btn.completed {
	padding-left: 1.7rem;
	padding-right: 0.4rem;
	font-size: 0.8rem;
	color: white !important;
}

body.mobile-mode .btn.completed::before {
	/* Use bold SVG checkmark for Safari compatibility */
	content: '' !important;
	position: absolute !important;
	left: 4px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z' fill='%23ee4f03' stroke='%23ee4f03' stroke-width='1'/%3E%3C/svg%3E") center/70% no-repeat !important;
	width: 19px !important;
	height: 19px !important;
	border-radius: 50% !important;
	display: block !important;
	z-index: 1 !important;
	transition: none !important;
	-webkit-transition: none !important;
}

body.mobile-mode .btn.completed::after {
	display: none !important;
}

/* Tablet: ensure orange checkmark */
@media (min-width: 550px) and (max-width: 768px) {
	.btn.completed::before {
		background: white !important;
		color: var(--logoOrange) !important; /* Force orange checkmark on tablet */
	}
}

/* Disabled button style - white lock icon */
.btn.disabled {
	background: var(--black);
	color: white;
	border-color: var(--black);
	cursor: not-allowed !important;
	pointer-events: auto;
	position: relative;
	padding-left: 2rem;
}

.btn.disabled:hover {
	transform: none;
}

.btn.disabled::before {
	content: '\1F512';
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--black);
	color: white;
	font-size: 0.8rem;
	font-weight: normal;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.btn.disabled::after {
	display: none !important;
}

/* Mobile: reduce padding for disabled buttons */
@media (max-width: 549px) {
	.btn.disabled {
		padding-left: 1.7rem;
		padding-right: 0.4rem;
		font-size: 0.8rem;
	}
	
	.btn.disabled::before {
		left: 4px;
		width: 16px;
		height: 16px;
		font-size: 0.7rem;
		background: var(--black) !important;
		color: white !important;
	}
}

/* Tablet: ensure black background for lock icon */
@media (min-width: 550px) and (max-width: 768px) {
	.btn.disabled::before {
		background: var(--black) !important;
		color: white !important;
	}
}

/* Suggested button style - gold gradient with pulsing asterisk */
.btn.suggested {
	position: relative;
	padding-left: 1.2rem;
}

.btn.suggested::before {
	content: '*';
	position: absolute;
	left: 5px;
	top: 50%;
	transform: translateY(-50%);
	color: #333;
	font-size: 1.5rem;
	font-weight: normal;
	line-height: 1;
	animation: asteriskPulse 1.5s infinite;
}

@keyframes asteriskPulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

/* Mobile: adjust suggested button padding */
body.mobile-mode .btn.suggested {
	padding-left: 1.2rem;
}

body.mobile-mode .btn.suggested::before {
	left: 5px;
	font-size: 1.5rem;
}

/* ========== TOOLBAR STYLES ========== */

.toolbar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.option-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.option-group-centered {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
}

.status-line {
	text-align: center;
	color: #FFFFFF;
	padding-top: 11px;
	font-family: "Rubik", sans-serif;
  	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: .04rem;
	flex-shrink: 0;
}

@media (min-width: 600px) {
	.toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.option-group {
		flex-wrap: nowrap;
	}
}

/* ========== INSTRUCTIONS ========== */

#instructions {
	font-family: "Rubik", sans-serif;
  	font-family: 'Inter', sans-serif;
	font-weight: 300;
	text-align: center;
	font-size: 1rem;
	padding: 20px 12px 22px 12px;
	margin: auto;
	color: #333333;
	flex-shrink: 0;
}

/* ========== 3D CUBE STYLES ========== */

.scene {
	width: var(--cube-size);
	height: var(--cube-size);
	perspective: 1400px;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

@media (min-width: 769px) {
	.scene {
		perspective: 1900px;
	}
}

#tumbler {
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	animation: tumble 6s infinite linear;
}

.cube {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	animation: spin 6s infinite linear;
}

.heavy {
	font-weight: 600;
	font-size: 21px;
	line-height: 21px !important;
	display: inline-block;
	background: var(--mediumBlue);		
	color: #FFF;
	padding: 10px 16px 7px 16px;
	margin-top: 3px;
	border-radius: 6px;
	font-style: normal !important;
	margin-top:8px;
}
.face:hover .heavy {
	background: var(--logoOrange);	
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.face {
	border-radius: 8px !important; 
	position: absolute;
	width: var(--cube-size);
	height: var(--cube-size);
	background-color: #FFF;
	border: 4px solid var(--logoOrange);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: pre-line;
	transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.face:hover {
	background-color: #dedede;
}

.face.face-active {
	border-color: var(--logoOrange);
	background-color: #fbe9dd;
}

@media (min-width: 769px) {
	.face {
		border-width: 8px;
	}
}

/* ========== CUBE FACE TRANSFORMS ========== */

.front {
	transform: translateZ(var(--cube-half));
}

.back {
	transform: rotateY(-90deg) translateZ(var(--cube-half));
}

.left {
	transform: rotateY(-180deg) translateZ(var(--cube-half));
}

.right {
	transform: rotateY(-270deg) translateZ(var(--cube-half));
}

.top {
	transform: rotateX(90deg) translateZ(var(--cube-half));
}

.bottom {
	transform: rotateX(-90deg) translateZ(var(--cube-half));
}

/* ========== CUBE ANIMATIONS ========== */

@keyframes spin {
	from {
		transform: rotateY(0deg);
	}
	to {
		transform: rotateY(360deg);
	}
}

@keyframes tumble {
	from {
		transform: rotateX(0deg);
	}
	to {
		transform: rotateX(0deg);
	}
}

/* Smooth transitions for responsive resizing */
.scene, .cube, .face {
	transition: all 0.3s ease;
}

/* ========== CUBE BACKGROUND ========== */

#cubeBG {
    background-color: var(--logoOrange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    box-sizing: border-box;
	padding: 0px;
    overflow: hidden;
    width: 100%;
}

/* ========== DRAWER STOP ELEMENT ========== */

#drawerStop {
	background: #000;
	visibility: hidden;
	height: 0px;
	margin: 4px 0 0 0;
	padding: 0px;
}

/* Hidden reference point for calendar panel positioning */
#iconFiltersStop {
	display: none;
	margin: 0;
	border: none;
	height: 0;
	padding: 0;
}

/* ========== SHEET/DRAWER STYLES ========== */

#colorsDrawer,
#iconsDrawer,
#fontsDrawer,
#messagesDrawer,
#iconSuggestionDrawer {
	border-top: 1px solid var(--logoOrange);
}

#colorsDrawer {
	overflow: hidden;
}

.color-rows-container {
	overflow: hidden;
}

/* Desktop: Add vertical gap between color rows to match horizontal gap */
@media (min-width: 769px) {
	.color-rows-container {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
}

#colorsDrawer .bar,
#fontsDrawer .bar,
#messagesDrawer .bar,
#iconSuggestionDrawer .bar {
	align-items: flex-start;
}

.sheet {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 0;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	height: var(--drawer-height, 60vh);
	max-height: var(--drawer-height, 60vh);
	background: #fff;
	border-radius: 0px;
	transform: translateY(100%);
	transition: transform var(--transition) ease;
	visibility: hidden;
	pointer-events: none;
	z-index: 1000;
}

.sheet.open {
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
	z-index: 2000;
}

.sheet .bar {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	flex: 0 0 auto;
	background-color: var(--barColor);
	color: #FFF;
}

.bar {
	min-height: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px 12px 20px;
}

/* Drawer close button styling - consolidated */
.bar button[data-close],
.data-close {
	border: 0;
	background: #000;
	background-image: url('../imgs/V_off_v2.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	cursor: pointer;
	padding: 0px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	margin-top: auto;
	margin-top:4px;
	margin-bottom: auto;
	width: 17px;
	height: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	margin-left: auto !important;
	margin-right: 4px !important;
	flex-shrink: 0;
}

.bar button[data-close]:hover,
.data-close:hover {
	background-image: url('../imgs/V_on_v2.png');
}

.bar button[data-close]:focus,
.data-close:focus {
	outline: none;
}

.sheet.closing {
	transform: translateY(100%);
	visibility: visible;
	pointer-events: none;
}

/* ========== SCROLL AREA ========== */

.scroll-area {
	padding: 12px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
}

/* ========== COLOR GRID ========== */

.color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, var(--swatch));
	gap: var(--gap);
	padding: 12px;
	justify-content: center;
}

.swatch {
	width: var(--swatch);
	height: var(--swatch);
	border: 1px solid #aaa;
	cursor: pointer;
	position: relative;
	border-radius: 50%; /* This makes them circular */
}

.swatch.is-selected::after {
	content: "";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-image: url('../imgs/checkmark.png');
	background-size: 60%;
	background-position: center;
	background-repeat: no-repeat;
}

/* Mobile: checkmark for selected color swatches */
@media (max-width: 549px) {
	.swatch.is-selected::after {
		background-size: 60%;
	}
}

/* ========== MESSAGE GRID ========== */

.msg-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.msg-item {
	padding: 12px 14px;
	border-radius: 6px;
	text-align: left;
	cursor: pointer;
	font-size: 16px;
	color: #000;
	transition: background 0.3s, border-color 0.3s;
	width: 100%;
	display: block;
	background: var(--itemBG);
	border: 2px solid var(--itemBorder);
}

.msg-item:hover {
	background-color: var(--itemHoverBG);
	border: 2px solid var(--itemHoverBorder);
}

.msg-item.is-selected {
	color: #046b1b;
	background-color: var(--itemSelectedBG);
	border: 2px solid var(--itemSelectedBG);
}

/* ========== FONT GRID ========== */

.font-grid {
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.font-tile {
	border-radius: 10px;
	overflow: visible;
	cursor: pointer;
	display: block;
	padding: 10px 50px;
	background-color: var(--itemBG);
	border: 2px solid var(--itemBorder);
	width: 50%;
	max-width: 300px;
	box-sizing: border-box;
}

.font-tile:hover {
	background-color: var(--itemHoverBG);
	border: 2px solid var(--itemHoverBorder);
}

.font-tile.is-selected {
	background-color: var(--itemSelectedBG);
	border: 2px solid var(--itemSelectedBorder);
}

.font-tile img {
	width: 100%;
	height: auto;
	display: block;
}

/* Mobile: make font tiles larger and wider */
@media (max-width: 549px) {
	.font-tile {
		width: 50%;
		max-width: none;
		padding: 10px 30px;
	}
	
	.font-tile img {
		transform: scale(1.0);
		transform-origin: center;
	}
}

.scroll-area.font-grid {
	padding: 12px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* ========== ICON GRID ========== */

.icon-grid {
	padding: 12px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.icon-grid .cell {
	position: relative;
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transition: background-color 0.2s, border-color 0.2s;
	background-color: transparent;
	border: 2px solid var(--itemBorder);
}

.icon-grid .cell:hover {
	background-color: var(--itemHoverBG);
	border: 2px solid var(--itemHoverBorder);
}

.icon-grid .cell.is-selected {
	background-color: var(--itemSelectedBG);
	border: 2px solid var(--itemSelectedBorder);
	font-weight: bold;
}

/* Suggested icon state - logoOrange border with light orange background */
.icon-grid .cell.suggested {
	background-color: rgba(238, 79, 3, 0.15);
	border: 2px solid var(--logoOrange);
}

.icon-grid .cell img {
    border-radius: 8px;	
	width: 64px;
	height: 64px;
	object-fit: contain;
}

@media (min-width: 900px) {
	.icon-grid .cell img {
		width: 85px;
		height: 85px;
	}
}

.cell span {
	display: none !important;
}

/* ========== ICON DRAWER LAYOUT ========== */

#iconsDrawer {
	display: flex !important;
	flex-direction: column !important;
	height: var(--drawer-height, 60vh) !important;
	max-height: var(--drawer-height, 60vh) !important;
}

#iconGrid {
	flex: 1 1 auto !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch !important;
	padding: 12px !important;
	display: grid !important;
	gap: 12px !important;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
	align-content: start !important;
}

/* STAGE 2.5: Loading message for unloaded categories */
.icon-grid-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1; /* Span all grid columns */
	min-height: calc(var(--drawer-height, 300px) - 120px); /* Dynamic height minus header/filter bar */
	color: #666;
	font-size: 16px;
	gap: 12px;
}

.icon-grid-loading .loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #ee4f03;
	border-radius: 50%;
	animation: spin-loading 1s linear infinite;
}

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

#iconFilters {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

#iconFilters::-webkit-scrollbar {
	height: 6px;
}

#iconFilters::-webkit-scrollbar-track {
	background: transparent;
}

#iconFilters::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

#iconFilters::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* ========== ICON TITLE TABLE ========== */

#iconsDrawer .bar {
	flex: 0 0 auto;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	width: 100% !important;
	gap: 4px;
	padding: 10px !important;
	box-sizing: border-box !important;
}

#iconsDrawer .bar > div:first-child {
	display: flex;
	width: 100%;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 12px;
}

#iconsDrawer button[data-close] {
	margin-right: 0 !important;
	margin-left: auto !important;
	padding-right: 10px !important;
	flex-shrink: 0 !important;
}

#iconsDrawer .vfx-tabs {
	flex: 0 !important;
}

.barTitle, #iconBarTitle, #colorBarTitle {
	font-weight: 500;
	line-height: 15px;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gold) !important;
	text-transform: capitalize !important;
}

#colorBarTitle {
	align-self: center;
}

#iconsDrawer .barTitle {
	display: inline-block;
	margin-top: 0;
}

#iconBarSelected {
	color: #FFF;
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
}

/* ========== VFX-TABS - orion_008.01 ========== */
.vfx-tabs {
	display: flex;
	gap: 16px;
	align-items: center;
	flex: 1;
}

.vfx-tab {
	background: none;
	border: none;
	padding: 0;
	padding-top: 0;
	padding-bottom: 5px;
	border-bottom: 2px solid transparent;
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #a08939;
	cursor: pointer;
	transition: color 0.2s ease;
	color: #FFF;
}

.vfx-tab:hover {
	color: #FFF;
}

.vfx-tab.active {
	color: var(--gold);
	border-bottom: 2px solid var(--gold);
}

.vfx-tab:focus {
	outline: none;
}
/* ========== END VFX-TABS ========== */

.barText {
	font-size: 15px;
	font-weight: 300;
	padding-top: 6px;
	font-style: italic;
	display: inline-block;
}

/* ========== ICON FILTER BUTTONS ========== */

/* Mobile-specific adjustments */
@media (max-width: 768px) {
	.allBtn {
		display: none !important; /* HIDDEN - Nova 116 */
		font-size: 16px !important;
		padding: 8px 12px !important;
	}
	.allBtn:hover {
		color: #000 !important;
	}
	
	/* orion_009.01: Mobile text label filter buttons */
	.filter-btn {
		font-size: 11px;
		padding: 6px 10px;
		min-height: 26px !important;
		line-height: 1.2;
		flex-shrink: 0 !important;
	}
	
	#iconGrid {
		padding: 8px !important;
		gap: 8px !important;
	}
}

.filter-bar {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	white-space: nowrap !important;
	align-items: center;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

.filter-bar > * {
	flex: 0 0 auto !important;
	white-space: nowrap !important;
}

.filter-bar::-webkit-scrollbar {
	height: 4px;
}

.filter-bar::-webkit-scrollbar-track {
	background: transparent;
}

.filter-bar::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 2px;
}

/* ========== HOVER BADGE ========== */

#hoverBadge {
	position: absolute;
	display: none;
	background: #000;
	color: white;
	padding: 4px 10px;
	font-size: 14px;
	font-weight: 400;
	border-radius: 4px;
	white-space: nowrap;
	transform: translateX(-50%);
	z-index: 9999;
}

/* Color grid container styles */
.color-grid-container {
	display: block;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 10px;
}

/* Color row base styles */
.color-row {
    display: flex;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Mobile color row */
.color-row-mobile {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: calc((100vw - 32px - (8 * ((100vw - 32px - 56px) / 8))) / 7);
    padding: 0 16px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Desktop color row */
.color-row-desktop {
    justify-content: center;
    box-sizing: border-box;
}

/* Tablet color row - center the swatches */
@media (min-width: 550px) and (max-width: 768px) {
    .color-row-desktop {
        justify-content: center;
        gap: 8px;
    }
}

/* Swatch base styles */
.swatch {
    flex-shrink: 0;
    border: 1px solid #aaa;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

/* Mobile swatch styles */
.swatch-mobile {
    /* Circle shape */
    border-radius: 50% !important;
    /* Dynamic size: (100vw - 32px padding - 56px gaps) / 8 swatches */
    width: calc((100vw - 32px - 56px) / 8) !important;
    height: calc((100vw - 32px - 56px) / 8) !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

/* Tablet swatch styles */
.swatch-tablet {
    /* Dynamic size: (100vw - 32px padding - 56px gaps) / 8 swatches */
    width: calc((100vw - 32px - 56px) / 8);
    height: calc((100vw - 32px - 56px) / 8);
    min-width: calc((100vw - 32px - 56px) / 8);
    min-height: calc((100vw - 32px - 56px) / 8);
    max-width: calc((100vw - 32px - 56px) / 8);
}

/* Desktop swatch styles */
.swatch-desktop {
    flex: 1;
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
}

/* Icon placeholder base styles */
.icon-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    color: #555;
    border: 1px solid #ccc;
    line-height: 1.1;
    object-fit: contain;
}

/* Mobile icon placeholder */
.icon-placeholder-mobile {
    /* Mobile-specific placeholder styles can go here if needed */
}

/* Desktop icon placeholder */
.icon-placeholder-desktop {
    /* Desktop-specific placeholder styles can go here if needed */
}

/* ========== FONT CLASSES ========== */
/* Font sample text - same container styling as message text */
.font-sample-text {
    text-align: center;
    white-space: nowrap;
    
    /* Container styling - same as message text container */
    box-sizing: content-box;
    padding: 8px; /* 8px on each side for 16px total padding */
    background: transparent;
    border-radius: 8px; /* Rounded corners */
    border: none; /* No border when selected */
    margin: 0 12px; /* Add some margin from face edges */
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* Hover effect for font container */
.face:hover .font-sample-text {
    border-color: var(--mediumBlue); /* Blue border on hover */
}

/* Specific styling for SANS SERIF font name on FONT face */
.font-sample-text.font-sansserif { /* MOBILE */
    font-family: Play, sans-serif !important;	
    font-size: 26px; /* Increased for better mobile visibility - Nova 116 */
    line-height: 1.2;
}

/* Specific styling for Open font name on FONT face */
.font-sample-text.font-open { /* MOBILE */
    font-family: Comfortaa, cursive !important; 
    font-size: 28px; /* Increased for better mobile visibility - Nova 116 */
    line-height: 1.3;
}

/* Specific styling for SCRIPT font name on FONT face */
.font-sample-text.font-script { /* MOBILE */
    font-family: Caveat, cursive !important;  
    font-size: 34px; /* Increased further for better visibility - Nova 116 */
    line-height: 1;
    /* Extra width for script font */
    margin: 0 8px; /* Smaller margin to allow more width */
    padding: 8px 12px; /* More horizontal padding */
    white-space: nowrap; /* Prevent text wrapping */
}

.tablet-mode .font-sample-text.font-sansserif {
    font-size: 29px;  
    line-height: 1.15;
    padding: 12px 14px 14px 14px;				
}

.tablet-mode .font-sample-text.font-open {
    font-size: 33px;
    line-height: 1.25;
    padding: 12px 18px;		
}

.tablet-mode .font-sample-text.font-script {
    font-size: 45px; /* Increased for better visibility - Nova 116 */
    line-height: 1.15;
    margin: 0 10px;
    padding: 8px 20px 8px 14px;
    white-space: nowrap;
}

@media (min-width: 550px) and (max-width: 768px) { /* TABLET */
    .font-sample-text {
        padding: 8px; /* Medium padding for tablet */
        border-radius: 10px; /* Medium border radius for tablet */
        border: none; /* No border when selected */
        margin: 0 14px; /* Medium margin for tablet */
    }
    
    /* Hover effect for tablet */
    .face:hover .font-sample-text {
	    border-color: var(--mediumBlue); /* Blue border on hover */
		border-width: 3px;		
    }
}

@media (min-width: 769px) { /* DESKTOP */
    .font-sample-text {
        padding: 8px; /* Same 16px total padding for desktop */
        border-radius: 12px; /* Larger border radius for desktop */
        border: none; /* No border when selected */
        margin: 0 16px; /* Larger margin for desktop */
    }
    
    /* Enhanced hover effect for desktop */
    .face:hover .font-sample-text {
	    border-color: var(--mediumBlue); /* Blue border on hover */
		border-width: 4px;		
    }
    
    .font-sample-text.font-sansserif {
        font-size: 40px;  
        line-height: 1.1;
        padding: 16px 18px 18px 18px; /* More horizontal padding */				
    }
    
    .font-sample-text.font-open {
        font-size: 41px;
        line-height: 1.2;
        padding: 16px 24px; /* More horizontal padding */		
    }
    
    .font-sample-text.font-script {
        font-size: 50px;
        /* Extra width for script font on desktop */
        margin: 0 12px; /* Smaller margin to allow more width */
        padding: 8px 28px 8px 16px; /* More horizontal padding */
        white-space: nowrap; /* Prevent text wrapping */
    }
}


/* Enhanced message text styling with font classes */
.message-text.font-sansserif {
    font-family: Play, sans-serif !important;
}

.message-text.font-open {
    font-family: Comfortaa, cursive !important;
}

.message-text.font-script {
    font-family: Caveat, cursive !important;
}

.message-text.font-display {
    font-family: "Merienda One", cursive !important;
}

.message-text.font-serif {
    font-family: "Roboto Slab", serif !important;
}

/* DESKTOP responsive font sizing with font classes */
@media (min-width: 769px) {
    .message-text.font-sansserif {
        font-size: 22px;
        line-height: 29px;
		padding-top:16px;
		padding-bottom: 16px;
    }
    
    .message-text.font-open {
        font-size: 19px;
        line-height: 31px;
    }
    
    .message-text.font-script {
        font-size: 32px; /* Script fonts often need to be slightly larger */
        line-height: 32px;
        letter-spacing: 1px;
    }
}

/* TABLET responsive font sizing with font classes - using body class */
.tablet-mode .message-text.font-sansserif {
    font-size: 21px;
    line-height: 1.2;
}

.tablet-mode .message-text.font-open {
    font-size: 20px;
    line-height: 26px;
}

.tablet-mode .message-text.font-script {
    font-size: 28px;
    line-height: 1;
}

/* MOBILE responsive font sizing with font classes */
@media (max-width: 768px) {
    .message-text.font-sansserif {
        font-size: 17px;
        line-height: 1.3;
    }
    
    .message-text.font-open {
        font-size: 16px;
        line-height: 22px;
    }
    
    .message-text.font-script {
        font-size: 23px;
        line-height: 1.1;
    }
    
    .message-text.font-display {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .message-text.font-serif {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* RESET */
/* Disable cube animations when showing selection */
.cube.show-selection {
    animation: none !important;
}

#tumbler.show-selection {
    animation: none !important;
}

/* orion_009.01: Text label filter buttons (replaced emoji buttons) */
.filter-btn {
	padding: 6px 12px;
	border: 2px solid #e1ca74 !important;
	background: #f5edcf !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	min-height: 28px !important;
	height: auto !important;
	width: auto !important;
	flex-shrink: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #333;
	margin: 0 !important;
	text-transform: capitalize;
}

.filter-btn:hover {
	background: #ffffff !important;
	border-color: #e1ca74 !important;
}

.filter-btn:focus {
	outline: none;
}

.filter-btn.is-selected {
	background: #333 !important;
	border-color: #333 !important;
	color: #ffffff !important;
}

/* orion_009.01: Removed health category red color (was for emoji cross symbol) */

/* Calendar filter button separator - orion_007.01 */
.filter-separator {
	color: #999;
	font-size: 20px;
	padding: 0 4px;
	user-select: none;
	flex-shrink: 0;
}

.allBtn {
	display: none !important; /* HIDDEN - Nova 116 */
	font-size: 16px !important;
	padding: 8px 12px !important;
	flex-shrink: 0 !important;
}

/* Default: no break on desktop/tablet */
.mobile-break {
    display: none;
}

/* Enable the break only on mobile */
@media (max-width: 600px) {
    .mobile-break {
        display: inline;
    }
}
/* ========== NOVA.PHP SPECIFIC STYLES ========== */
/* Extracted from inline styles in nova.php */

/* LOCKED CSS GRID SOLUTION - DESKTOP WORKING */
#top-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    height: 110px !important; /* Reduced from 180px to 150px */
    background-color: #333333;
	border-radius: 8px;
	margin: 0px 16px 18px 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    flex-shrink: 0 !important;
    opacity: 0 !important; /* Start hidden */
    transition: opacity 0.35s ease-in-out !important;
}

#top-area.show {
    opacity: 1 !important; /* Fade in when curtain is up */
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    #top-area {
        height: 130px !important; /* Reduced for mobile - orion_007.01 */
        gap: 0.5rem !important;
    }
}
.desktop-mode {
	margin-top: 0 !important;
}
	
/* Row 1: Instructions */
.instructions-row {
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .instructions-row {
        padding: 0 8px !important;
    }
}


/* Row 2: Control Buttons */
.buttons-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 8px 0px 0px 0px !important;
    padding: 0 !important;
    z-index: 100 !important; /* High z-index to stay on top */
}

@media (max-width: 768px) {
    .buttons-row {
        /* Mobile styles if needed */
    }
}

/* Row 3: Feedback - DISABLED */
.asterisk_30 {
	font-size:20px;	
	font-weight: normal; 
	font-style: normal;
}

/* Instructions styling - LOCKED */
#instructions {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    text-align: center !important;
    font-size: 1rem !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Control buttons container - LOCKED */
.buttons-row .option-group-centered {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.buttons-row .option-group {
    display: flex !important;
    gap: 0.9rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

/* Mobile: reduce gap between customization buttons */
@media (max-width: 768px) {
    .buttons-row .option-group {
        gap: 6px !important;
    }
}

/* Status line styling - LOCKED */
.status-line {
	text-transform: uppercase;
    text-align: center !important;
    color: #FFFFFF !important;
	color: var(--green) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    letter-spacing: .01rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.completed {
	color: #FFF;
	font-weight: 300;
	text-transform: lowercase;
}

@keyframes smoothMorph {
    0% { 
        background: var(--green); 
        transform: scale(1); 
    }
    30% { 
        background: var(--green); 
        transform: scale(1.05); 
    }
    70% { 
        background: var(--black); 
        transform: scale(0.98); 
    }
    100% { 
        background: var(--black); 
        transform: scale(1); 
    }
}

/* Prevent any interference from the original body layout */
body {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Ensure cube area takes remaining space */
#cubeBG {
    flex: 1 !important;
    min-height: 400px;
}
.wght_400 {
	font-weight: 400;	
}
.wght_500 {
	font-weight: 500;	
}
.txt_gold {
	color: #d8b44d;
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 500;	
}

/* ========== CALENDAR ICON CUSTOMIZATION SYSTEM ========== */

/* Container and Layout */
.calendar-config-panel {
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 15px;
	COMMANDO-background: #AAA;
	background: #FFFFFF;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	z-index: 10;
	box-sizing: border-box;
	width: 100%;
	/* Animation properties - slide from bottom */
	animation: slideInCalendar 0.3s ease-out forwards;
	transform: translateY(0);
	transition: none !important;
	opacity: 1 !important;
}

.calendar-config-panel.hidden {
	display: none;
	animation: slideOutCalendar 0.3s ease-in forwards;
	transform: translateY(500px);
	pointer-events: none;
	overflow: hidden;
	transition: none !important;
	opacity: 1 !important;
}

/* Animation keyframes for show - slide up from bottom */
@keyframes slideInCalendar {
	from {
		transform: translateY(500px);
	}
	to {
		transform: translateY(0);
	}
}

/* Animation keyframes for hide - slide down to bottom */
@keyframes slideOutCalendar {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(500px);
	}
}

.calendar-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* LEFT COLUMN */
.calendar-left-column {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 40px;
	padding: 0;
	width: 100%;
	justify-content: center;
}

/* Calendar Icon Preview - needs position relative for label */
.calendar-icon-preview {
	position: relative;
	margin: 8px 0 10px 0;
	padding: 0;
}

/* Calendar Icon Table */
#cal-icon-table {
	width: 90px;
	height: 90px;
	max-height: 90px;
	border-radius: 10px;
	overflow: hidden;
}

/* Reusable calendar icon classes for cube display - orion_007.01 */
/* Exact replica of preview styles */
.cal-icon-table {
	width: 90px;
	height: 90px;
	max-height: 90px;
	border-radius: 10px;
	overflow: hidden;
}

#cal-month {
	color: #FFFFFF;
	font-size: 25px;
	line-height: 25px;	
	font-weight: 500;
	text-align: center;
	background-color: #CC0000;
	border-radius: 10px 10px 0px 0px;
	font-family: sans-serif;
	height: 34px !important;
	max-height: 34px !important;
	border: 2px solid #CC0000;
	transition: all 0.2s ease;
	padding: 0 !important;
}

/* Cube version - exact replica of #cal-month - orion_007.01 */
.cal-month {
	color: #FFFFFF;
	font-size: 25px;
	line-height: 25px;	
	font-weight: 500;
	text-align: center;
	background-color: #CC0000;
	border-radius: 10px 10px 0px 0px;
	font-family: sans-serif;
	height: 34px !important;
	max-height: 34px !important;
	border: 2px solid #CC0000;
	transition: all 0.2s ease;
	padding: 0 !important;
}

#cal-day {
	color: #000000;
	font-size: 50px;
	line-height: 50px;	
	font-weight: bold;
	text-align: center;
	background-color: #FFFFFF;
	border-radius: 0px 0px 10px 10px;
	font-family: sans-serif;
	max-height: 56px !important;
	border: 2px solid #BBB;
	border-top: none;
	padding: 0 !important;
}

/* Cube version - exact replica of #cal-day - orion_007.01 */
.cal-day {
	color: #000000;
	font-size: 50px;
	line-height: 50px;	
	font-weight: bold;
	text-align: center;
	background-color: #FFFFFF;
	border-radius: 0px 0px 10px 10px;
	font-family: sans-serif;
	max-height: 56px !important;
	border: 2px solid #BBB;
	border-top: none;
	padding: 0 !important;
}

/* RIGHT COLUMN */
.calendar-right-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
}

/* TAB NAVIGATION */
.calendar-tabs {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	margin: 0;
	justify-content: space-between;
	height: 90px;
}

.calendar-tab {
	background: transparent;
	border: none;
	border-left: 4px solid transparent;
	color: #666666;
	font-size: 14px;
	font-weight: 500;
	padding: 6px 12px 6px 8px;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 1;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.calendar-tab:hover:not(.active) {
	background: rgba(245, 237, 207, 0.5);
	border-left-color: transparent;
	color: #333333;
}

.calendar-tab.active {
	background: transparent;
	border-left-color: #c69a31;
	color: #333333;
	font-weight: 600;
}

.calendar-tab:focus {
	outline: none;
}

/* TAB CONTENT AREA */
.calendar-tab-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

/* TAB PANE */
.calendar-tab-pane {
	display: none;
	flex: 1;
	overflow-y: auto;
	overflow-x: visible;
	padding: 0;
}

.calendar-tab-pane.active {
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
}

/* Labels */
.calendar-label {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Header Button - smaller version of main .btn */
.calendar-toggle-btn {
	padding: 0.4rem 0.5rem 0.35rem 0.5rem;
	border-radius: 30px;
	background: -webkit-linear-gradient(#c69a31, #e6c965);
	background: -o-linear-gradient(#c69a31, #e6c965);
	background: linear-gradient(#c69a31, #e6c965);
	border: solid 2px #e6c965;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	line-height: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	color: #000;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
	margin-right: 10px;
	letter-spacing: 0.3px;
}

.calendar-toggle-btn:hover {
	border-color: #FFF;
	color: #FFFFFF;
	cursor: pointer;
}

.calendar-toggle-btn.is-active {
	border-color: #c69a31;
	background: linear-gradient(to bottom, #e6c965, #c69a31);
	color: #fff;
}

/* Color Swatches */
.calendar-color-swatches {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 12px;
	overflow: visible;
	max-width: 470px;
	margin: 0 auto;
}

.calendar-color-swatch {
	width: 100px;
	height: 50px;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	background-color: inherit;
	position: relative;
	display: inline-block;
	padding: 0;
	margin: 0;
}

.calendar-color-swatch:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.calendar-color-swatch.is-selected::after {
	content: "";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-image: url('../imgs/checkmark.png');
	background-size: 40%;
	background-position: center;
	background-repeat: no-repeat;
}

/* Mobile: smaller checkmark for selected calendar color swatches */
@media (max-width: 549px) {
	.calendar-color-swatch.is-selected::after {
		background-size: 55%;
	}
}

/* MONTH TAB BUTTONS */
.calendar-month-buttons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 12px;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
}

.calendar-month-btn {
	background: #f5edcf;
	border: 2px solid #e1ca74;
	color: #333;
	font-size: 18px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 2px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.calendar-month-btn:hover {
	background: #FFFFFF;
	border-color: #e1ca74;
}

.calendar-month-btn.selected {
	background: #333333;
	color: #FFFFFF;
	font-weight: 600;
	border-color: #333333;
}

/* Responsive: 3 columns on tablet */
@media (max-width: 767px) {
	.calendar-month-buttons {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Responsive: 3 columns on mobile */
@media (max-width: 549px) {
	.calendar-month-buttons {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
		padding: 8px;
	}
	
	.calendar-month-btn {
		font-size: 16px;
		padding: 3px 1px;
		height: 40px;
	}
}

/* DAY TAB BUTTONS */
.calendar-day-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	max-height: 100%;
	overflow-y: hidden;
	overflow-x: hidden;
	align-content: flex-start;
	justify-content: center;
}

.calendar-day-btn {
	background: #f5edcf;
	border: 2px solid #e1ca74;
	color: #333;
	font-size: 18px;
	font-weight: 500;
	padding: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.calendar-day-btn:hover {
	background: #FFFFFF;
	border-color: #e1ca74;
}

.calendar-day-btn.selected {
	background: #333333;
	color: #FFFFFF;
	font-weight: 600;
	border-color: #333333;
}

/* Responsive: Adjust day buttons on mobile */
@media (max-width: 549px) {
	.calendar-day-buttons {
		gap: 6px;
		padding: 8px;
	}
	
	.calendar-day-btn {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}

/* Form Inputs */
.calendar-input {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
	background-color: white;
}

.calendar-input:focus {
	outline: none;
	border-color: #0277bd;
	box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.1);
}

/* Preview Area */
.calendar-preview-area {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	min-height: 120px;
}

/* Calendar Table Styling (Custom Calendar Badge) */
.customCal {
	border: solid 2px #ccc;
	border-radius: 10px;
	height: 90px;
	width: 80px;
	border-collapse: collapse;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	table-layout: fixed;
}

.customCal td {
	text-align: center;
	font-weight: bold;
	padding: 0;
}

.customCal .month {
	color: white;
	font-size: 20px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #ccc;
}

.customCal .day {
	background-color: white;
	color: black;
	font-size: 36px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Selection Button */
.calendar-select-btn {
	background: linear-gradient(135deg, #FFB84D 0%, #FFA726 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.calendar-select-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 167, 38, 0.4);
}

.calendar-select-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.calendar-select-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Done Button - orion_007.01 */
/* Gold Flat Button - reusable button style */
.btn-gold-flat {
	padding: 0.7rem 1rem;
	border-radius: 6px;
	background: linear-gradient(#d4a940, #e6c965);
	border: 2px solid #c69a31;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	line-height: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #333;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.5px;
	width: auto;
	max-width: 200px;
	box-sizing: border-box;
	margin: 0 auto;
	display: block;
}

.btn-gold-flat:hover {
	transform: translateY(-5px);
	background: linear-gradient(to bottom, #e6c965, #c69a31);
}

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

.btn-gold-flat:focus {
	outline: none;
}

#btnDoneCalendar {
	margin-bottom: 20px;
}

/* Mobile touch target for btn-gold-flat */
@media (max-width: 768px) {
	.btn-gold-flat {
		min-height: 44px;
		padding: 0.8rem 1.2rem;
	}
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
	.calendar-config-panel {
		padding: 15px;
		gap: 12px;
		/* margin-top and padding-top are calculated by JavaScript */
	}

	.calendar-color-swatches {
		gap: 8px;
	}

	.calendar-color-swatch {
		width: 90px;
		height: 45px;
	}

	.customCal {
		height: 75px;
		width: 65px;
	}

	.customCal .month {
		font-size: 16px;
	}

	.customCal .day {
		font-size: 28px;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 550px) {
	.calendar-config-panel {
		padding: 12px;
		gap: 10px;
		/* margin-top and padding-top are calculated by JavaScript */
	}

	.calendar-color-swatches {
		justify-content: center;
		gap: 8px;
	}

	.calendar-color-swatch {
		width: 72px;
		height: 72px;
	}

	.calendar-toggle-btn {
		padding: 6px 10px;
		font-size: 12px;
		margin-right: 5px;
	}

	.customCal {
		height: 70px;
		width: 60px;
	}

	.customCal .month {
		font-size: 14px;
	}

	.customCal .day {
		font-size: 24px;
	}

	.calendar-label {
		font-size: 12px;
	}

	.calendar-input {
		padding: 8px 10px;
		font-size: 13px;
	}

	.calendar-select-btn {
		padding: 10px 16px;
		font-size: 12px;
	}
}

/* ========== ICON SUGGESTION DRAWER ========== */

.icon-suggestion-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 20px 20px 20px;
	text-align: center;
}

.icon-suggestion-button {
	margin-bottom: 30px;
}

.icon-suggestion-browse {
	margin-top: 0;
}

/* Suggestion icon cell */
#suggestionCell,
.suggestion-cell {
	border-radius: 10px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #ffffff;
	border: 3px solid transparent;
	box-sizing: border-box;
	width: 112px;
	height: 112px;
	cursor: pointer;
	margin: 8px auto 12px auto;
	transition: all 0.3s ease;
}

#suggestionCell:hover,
.suggestion-cell:hover {
	border-color: #c69a31 !important;
}

.suggestion-cell img {
	width: 90px;
	height: 90px;
	object-fit: contain;
	border-radius: 8px;
}

.icon-suggestion-browse {
	color: var(--logoOrange);
	font-size: 15px;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	margin-top: 20px;
}

.icon-suggestion-browse:hover {
	color: #c44003;
	text-decoration: underline;
}

.icon-suggestion-icon-name-container {
	text-align: center;
	margin-bottom: 20px;
}

.icon-suggestion-line-1 {
	font-weight: 600;
	font-size: 22px;
	color: #000;
	line-height: 1.2;
	letter-spacing: 0.5px;
}

.icon-suggestion-line-2 {
	font-weight: 400;
	font-size: 18px;
	color: #555;
	line-height: 1.2;
	margin-top: 4px;
	display: none;
}

.icon-suggestion-note-text {
	display: block;
	text-align: left;
	padding: 12px 16px;
	background-color: #f5edcf;
	border: 2px solid #e1ca74;
	border-radius: 8px;
	font-size: 14px;
	color: #000;
	margin-top: 7px;
	margin-bottom: 16px;
	box-sizing: border-box;
}

/* ========== SUGGESTED OVERLAY - orion_012.02 ========== */
