/** STYLES FOR HEADER AND FOOTER **/
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    min-height: 100vh;
}

/** COLOR VARS **/
:root {

	/* Neutral Brand Colors */
	--color-white: #fff;
	--color-black: #000;
	--color-cool-gray: #d9d9d9;
	--color-warm-gray: #d7d2cb;

	/* Primary Brand Color */
	--color-red: #ba0c2f;

	/* Secondary Brand Color */
	--color-green: #215732;

	/* Accent Brand Colors */
	--color-teal: #007d8a;
	--color-mint: #b5e3d8;
	--color-gold: #f1b434;
	--color-coral: #ff6d6a;
	--color-dark-green: #13322b;
	--color-dark-red: #971b2f;

	/* Additional Named Colors http://chir.ag/projects/name-that-color/ */
	--color-alabaster: #f8f8f8;
	--color-mine-shaft: #3d3d3d;
	--color-gallery: #ececec;
	--color-silver: #ccc;
	--color-boulder: #767676;
}



/* Simple button styling */
.mode-toggle {
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}


/**
* TYPOGRAPHY STYLES
* These are necessary for both the header and footer styles.
**/
body {
    font-family: "ivystyle-sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: calc(26 / 18); /* 1.444 */
}

/* The heading styles below are recommended, but not necessary */
h1,
h2,
h3 {
    font-family: "ivypresto-headline", serif;
    font-weight: 400;
    line-height: calc(26 / 18); /* 1.444 */
}

h1 {font-size: 40px;}
h2 {font-size: 36px;}
h3 {font-size: 30px;}
h4 {font-size: 24px;}
h5 {font-size: 20px;}
h6 {font-size: 18px;}

@media (min-width: 768px) {

    h1 {font-size: 44px;}
    h2 {font-size: 38px;}
    h3 {font-size: 32px;}
    h4 {font-size: 26px;}
    h5 {font-size: 22px;}
}
/* end typography styles */

/** HEADER STYLES **/
.site-header__branding {
	align-items: flex-start;
	background-color: var(--color-red);
	color: var(--color-white);
	display: flex;
	justify-content: space-between;
	padding: 16px 10px 16px 20px;

	@media (min-width: 1280px) {
		align-items: center;
		padding: 16px 60px;
	}
}

.site-header__logo {
	align-items: center;
	display: flex;
	height: 30px;

	& a {
		align-items: center;
		display: flex;
		height: 100%;
		text-decoration: none;
	}

	& img {
		border-right: 1px solid var(--color-white);
		height: 30px;
		padding-right: 16px;
	}

	@media (min-width: 1280px) {
		height: 34px;
		& img {height: 34px;}
	}

	& a:hover {text-decoration: none;}
	& a:focus {outline: 1px solid var(--color-white);}
	& a:focus:hover {outline: 0;}
}

.site-header__tag {
	color: var(--color-white);
	font-family: "ivystyle-sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
	line-height: 1;
	margin-bottom: -2.3px;
	margin-left: 16px;

	@media (min-width: 1280px) {font-size: 28px;}
}



.site-header__return-link {
	background: var(--color-white);
	color: var(--color-dark-red);
	display: none;
	padding: 8px 20px 6px;
	text-decoration: none;

	&::before {
		content: "\2190";
		display: inline-block;
		margin-right: 16px;
		transition: transform .3s ease-in-out;
	}

	&:hover {
		color: var(--color-dark-red);
		text-decoration: none;
	}

	&:hover::before {transform: translateX(-8px);}

	@media (min-width: 1280px) {display: inline-block;}
}

.site-title__link {
	color: var(--color-black);
	text-decoration: none;
	transition: color .3s ease-in-out;

	&:hover {color: var(--color-teal);}
}
.site-title {text-align: center;}
/* end header styles */

/** FOOTER STYLES **/
.site-footer {
	background-color: var(--color-black);
	border-top: 10px solid var(--color-mint);
	color: var(--color-white);
	margin-top: auto;
	padding: 0 0 28px;

	@media (min-width: 1280px) {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		padding: 52px 60px;
	}
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
    font-size: 14px;
    font-style: normal;
	margin: 0 0 28px;
	padding: 0 24px;
	text-align: center;

	@media (min-width: 1280px) {
		border-bottom: 1px solid var(--color-white);
		flex-basis: 50%;
		font-size: 18px;
		margin: 0;
		order: 1;
		padding: 0 0 48px;
		text-align: left;
	}

	& a {
		color: var(--color-white);
		font-weight: 400;
		text-decoration: underline;

		&:hover {text-decoration: none;}
	}
}

.site-footer__contact-line {
	display: block;
    margin-bottom: 9px;

	&:last-child {margin-bottom: 0;}
}

.site-footer__contact-line--name {
	font-weight: 900;
	margin-bottom: 12px;

	@media (min-width: 1280px) {
		font-size: 20px;
		margin-bottom: 16px;
	}
}

.site-footer__contact-line--address {
	line-height: 1.5;
	margin: 0;
}

.site-footer__copyright {
	border-top: 1px solid var(--color-white);
	font-size: 14px;
	padding: 24px 24px 0;
	text-align: center;

	@media (min-width: 1280px) {
		align-items: flex-end;
		border: none;
		display: flex;
		flex-basis: 50%;
		margin-top: 16px;
		min-height: 24px;
		order: 3;
		padding: 0;
		text-align: left;
	}
}

.footer-utilities {
	border-bottom: 1px solid var(--color-white);
	display: flex;
	margin: 0 0 28px;
	padding: 28px 0;

	@media (min-width: 1280px) {
		flex-basis: 50%;
		justify-content: flex-end;
		margin: 0;
		order: 2;
		padding: 0 0 48px;
	}

	& > * {
		flex-basis: 50%;

		@media (min-width: 1280px) {flex: 0 1 auto;}
	}
}

.footer-utilities__menu {
	font-weight: 700;
	list-style: none;
	margin: 0;
	padding: 0 24px;

	@media (min-width: 1280px) {padding: 0 8px;}

	& .menu-item {
		margin-left: 0;
		padding-left: 0;

		&:not(:last-child) {margin-bottom: 23px;}

		@media (min-width: 1280px) {white-space: nowrap;}
	}

	& a {
		color: var(--color-white);
		font-size: 18px;
		text-decoration: none;

		&:hover {text-decoration: underline;}
	}
}

.footer-utilities__menu--col-1 {
	font-weight: 700;
	@media (min-width: 1280px) {margin-right: 48px;}
}

.footer-social {

	@media (min-width: 1280px) {
		align-items: center;
		display: flex;
		flex-basis: 50%;
		margin-top: 16px;
		min-height: 24px;
		order: 4;
	}
}

.footer-social__menu {
	display: flex;
	justify-content: center;
	list-style: none;
	margin: 0 0 28px;
	padding: 0 24px;

	@media (min-width: 1280px) {
		margin: 0 0 0 auto;
		padding: 0;
	}

	& .menu-item {
		padding: 0;

		&:not(:last-child) {
			margin-right: 16px;
			@media (min-width: 1280px) {margin-right: 24px;}
		}
	}

	& .menu-item a {
		background-color: transparent;
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		color: var(--color-white);
		display: block;
		height: 20px;
		overflow: hidden;
		padding: 0;
		text-indent: 101%;
		transition: transform .2s;
		white-space: nowrap;
		width: 20px;

		@media (min-width: 1280px) {
			height: 28px;
			width: 28px;
		}

		/* The default social icons are the svg version, but there are pngs of each in the assets folder if you can't use svg. */
		&[href*="facebook.com"] {background-image: url("/static/assets/facebook.svg");}
		&[href*="instagram.com"] {background-image: url("/static/assets/instagram.svg");}
		&[href*="twitter.com"] {background-image: url("/static/assets/twitter.svg");}
		&[href*="vimeo.com"] {background-image: url("/static/assets/vimeo.svg");}
		&[href*="youtube.com"] {background-image: url("/static/assets/youtube.svg");}
		&[href*="signup.e2ma.net"] {background-image: url("/static/assets/email.svg");}

		&:hover {
			color: var(--color-white);
			text-decoration: none;
			transform: scale(1.2);
		}
	}
}
/* End footer styles */


/******************************************************************************/
/*                         Site Specific CSS                                  */
/******************************************************************************/

/* Flex layout for main content and nav */
main {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Content area with grid */
.content {
  flex-grow: 1;
  padding: 0;
  display: grid;
  gap: 0;
  min-width: 0;
}

/* Dark Mode - Scoped ONLY to the Content area */
.content.dark-mode {
    --color-white: #1a1a1a;        /* Deep gray for content background */
    --color-black: #f0f0f0;        /* Near-white for primary text */
    --color-warm-gray: #2d2d2d;    /* Secondary backgrounds */
    --color-dark-red: #ff4d6d;     /* Lighter red to ensure contrast for links */
    background-color: var(--color-white);
}

/* Ensure the wrapper and inner text follow the new variables */
.content.dark-mode .content__item {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Force headings and common text to adapt */
.content.dark-mode h1,
.content.dark-mode h2,
.content.dark-mode h3,
.content.dark-mode h4,
.content.dark-mode h5,
.content.dark-mode h6,
.content.dark-mode p {
    color: var(--color-black);
}

/* Adjust Dashboard links for readability */
.content.dark-mode .dashboard_card_link {color: var(--color-dark-red);}

/* Specific Bootstrap overrides for the content area */
.content.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: var(--color-boulder);
    color: var(--color-black);
}

.content.dark-mode .form-control::placeholder {color: var(--color-silver);}

.content.dark-mode .table {
    color: var(--color-black);
    background-color: transparent;
}

.content.dark-mode .table-bordered {border-color: var(--color-boulder);}

.content.dark-mode .table thead th {
    background-color: #333;
    border-color: var(--color-boulder);
    color: var(--color-teal); /* High contrast for headers */
}

.content.dark-mode .table td {
    border-color: var(--color-boulder);
	color: var(--color-black);
    background-color: var(--color-white);
}

/* Individual grid item */
.content__item {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 5px;
}


.site__sidenav.dark-mode {
	color: var(--color-black);
	background-color: var(--color-white);
}


/* Side Nav */
.site__sidenav {
    color: var(--color-black);
	min-height: 100vh;
    max-width: 300px;
    font-size: 30px;
	padding: 0;
	margin: 0;
    background-color: var(--color-warm-gray);
    box-shadow: inset -1px 0 0 var(--color-red);
}

.site__sidenav__ul {list-style-type: none;}

.site__sidenav__link {
    color: var(--color-black);
    text-decoration: none;
	padding: 20px;
    height: 80px;

    &:hover {
			color: var(--color-dark-red);
			text-decoration: none;
			transform: scale(1.2);
		}

}

/* Main Dashboard Card CSS */
.dashboard_card_link {
	color: var(--color-dark-red);
    text-decoration: none;
    height: 40px;

    &:hover {text-decoration: underline;}
}

/* Content Area Layout */
.content {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Search & Header Bar */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-wrapper {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.custom-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-cool-gray);
    border-radius: 4px 0 0 4px;
    background: var(--color-white);
    color: var(--color-black);
}

/* Custom Table System */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead th {
    text-align: left;
    padding: 1rem;
    background-color: var(--color-warm-gray);
    border-bottom: 2px solid var(--color-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--color-cool-gray);
    transition: background 0.2s;
}

.data-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Custom Buttons */
.btn-custom {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;

	&:hover {
		color: var(--color-white);
		background-color: var(--color-black);
	}
}


.btn-primary { background: var(--color-red); color: white;  border: var(--color-red); border-width: 15px; }
.btn-success { background: var(--color-green); color: white; border: var(--color-green); border-width: 15px; }
.btn-info    { background: var(--color-teal); color: white; border: var(--color-teal); border-width: 15px; }
.btn-warning { background: var(--color-gold); color: var(--color-black); border: var(--color-gold); border-width: 15px; }
.btn-danger  { background: var(--color-dark-red); color: white; border: var(--color-dark-red); border-width: 15px; }
.btn-secondary { background: var(--color-black); color: white; border: var(--color-black); border-width: 15px; }
.btn-logout {
	background: var(--color-black);
	color: white;
	border: var(--color-black);
	border-width: 15px;

	&:hover {
		color: var(--color-black);
		background: var(--color-white);
	}
}



/* Dark Mode Specific Overrides */
.content.dark-mode {
    --color-white: #121212;
    --color-black: #e0e0e0;
    --color-cool-gray: #2d2d2d;
    --color-warm-gray: #1a1a1a;
}

.content.dark-mode .data-table tbody tr:hover {background-color: #1e1e1e;}

.content.dark-mode .custom-input {
    background: #252525;
    border-color: #444;
}

.content.dark-mode .status-online {box-shadow: 0 0 10px rgba(76, 209, 55, 0.4);}

/* Container for the specific view */
.inventory-container {
    display: flex;
    flex-direction: column;
}

/* Groups buttons together with spacing */
.action-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure code tags (IDs) look good in both modes */
code {
    font-family: monospace;
    background: var(--color-cool-gray);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--color-red);
}

.content.dark-mode code {
    background: #333;
    color: #ff4d6d;
}

/* Secondary button style for the Refresh action */
.btn-secondary {
    background: var(--color-boulder);
    color: white;
}

/* Styling for the detail/expanded view */
.sub-header {
    font-size: 1.2rem;
    color: var(--color-boulder);
    font-weight: 400;
}

.property-table .property-key {
    font-weight: 700;
    color: var(--color-dark-green);
    background-color: rgba(0,0,0,0.02);
}

.content.dark-mode .property-table .property-key {
    color: var(--color-teal);
    background-color: rgba(255,255,255,0.03);
}

.property-value {
    word-break: break-all; /* Ensures long strings don't break the layout */
    font-family: 'ivystyle-sans', sans-serif;
}

/* Adjusting the H1 for dark mode sub-headers */
.content.dark-mode .sub-header {color: var(--color-silver);}

/* Copy Button */
.property-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-boulder);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    padding: 0 8px;
}

.property-table tr:hover .copy-btn {opacity: 1;}
.copy-btn:hover {color: var(--color-teal);}
.content.dark-mode .copy-btn {color: var(--color-silver);}
.content.dark-mode .copy-btn:hover {color: var(--color-mint);}

/* Dashboard */
/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-cool-gray);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-boulder);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
}

/* Color Modifiers */
.border-red { border-left: 5px solid var(--color-red); }
.border-green { border-left: 5px solid var(--color-green); }
.text-red { color: var(--color-dark-red); }
.text-green { color: var(--color-green); }

/* Navigation Cards */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--color-warm-gray);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-black);
    border: 1px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-teal);
}

.action-card h3 {
    margin-top: 0;
    color: var(--color-red);
}

/* Dark Mode Adjustments */
.content.dark-mode .stat-card {
    background: #1a1a1a;
    border-color: #333;
}

.content.dark-mode .action-card {background: #1e1e1e;}

.content.dark-mode .text-green { color: #4cd137; }
.content.dark-mode .text-red { color: #ff4d6d; }

/* Sidebar follows the dark mode state of the body */
body:has(.content.dark-mode) .site__sidenav {
    background-color: #1a1a1a;
    border-right: 1px solid #333;
}

body:has(.content.dark-mode) .site__sidenav__link {color: #e0e0e0;
}
/** SIDEBAR NAVIGATION **/
.site__sidenav {
    width: 260px;
    background-color: var(--color-warm-gray);
    border-right: 1px solid var(--color-cool-gray);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site__sidenav__ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site__sidenav__link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--color-black);
    border-left: 4px solid transparent;
    font-size: 20px;
    transition: 0.2s;
}

.site__sidenav__link:hover,
.site__sidenav__link.active {
    background-color: rgba(186, 12, 47, 0.1);
    color: var(--color-red);
    border-left: 4px solid var(--color-red);
}


/* Main Dashboard Card CSS */
.dashboard_card_link {
	color: var(--color-dark-red);
    text-decoration: none;
    height: 40px;

    &:hover {
			text-decoration: underline;
		}
}


/* --- Content Area Layout --- */
.content {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Search & Header Bar --- */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-wrapper {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.custom-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-cool-gray);
    border-radius: 4px 0 0 4px;
    background: var(--color-white);
    color: var(--color-black);
}

/* Flash Message Container */
.flash-container {margin-bottom: 20px;}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
    border-left: 6px solid transparent;
}

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

/* Light Mode Flash Styles */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border-color: var(--color-green);
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: var(--color-red);
}

/* Dark Mode Flash Styles */
.content.dark-mode .flash-success {
    background-color: rgba(76, 209, 55, 0.15);
    color: #4cd137;
    border-color: #4cd137;
}

.content.dark-mode .flash-error {
    background-color: rgba(255, 77, 109, 0.15);
    color: #ff4d6d;
    border-color: #ff4d6d;
}

.close-flash {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.6;
}

.close-flash:hover { opacity: 1; }

/* Animation for fading out */
.flash-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--color-red);
    border-bottom: 1px solid var(--color-cool-gray);
    padding-bottom: 5px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content.dark-mode .form-section-title {
    color: var(--color-teal);
    border-color: #333;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-cool-gray);
}

/* Horizontal Form Grouping */
.form-group-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

/* Ensure labels have a consistent width so inputs align vertically */
.form-group-horizontal .form-label {
    flex: 0 0 150px; /* Fixed width for labels */
    margin-bottom: 0; /* Remove bottom margin since they are side-by-side */
    text-align: right; /* Professional look: labels right-aligned to inputs */
}

/* Ensure inputs/selects take up the remaining space */
.form-group-horizontal .form-input,
.form-group-horizontal .form-select,
.form-group-horizontal .form-textarea {
    flex: 1;
    min-width: 0; /* Prevents overflow in flex containers */
	max-width: 40%;
}

/* Responsive adjustment: Stack them on mobile devices */
@media (max-width: 600px) {
    .form-group-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group-horizontal .form-label {
        flex: none;
        text-align: left;
    }
}

/* indicators */

.status-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online { background-color: #28a745; box-shadow: 0 0 8px rgba(40, 167, 69, 0.4); }
.status-offline { background-color: #dc3545; box-shadow: 0 0 8px rgba(220, 53, 69, 0.4); }

/* Spinner Logic */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin { to { transform: rotate(360deg); }}


/* Certificate Result Styling */
.cert-output-wrapper {
    position: relative;
    margin-top: 10px;
}

.cert-output {
    background-color: #f4f4f4;
    border: 1px solid var(--color-cool-gray);
    padding: 1.2rem;
    border-radius: 4px;
    font-family: 'monospace', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    overflow-x: auto;
    max-height: 400px;
    color: #333;
    display: block;
}

.content.dark-mode .cert-output {
    background-color: #0d0d0d;
    border-color: #333;
    color: #a5d6a7; /* Monokai-style green for keys */
}

.copy-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.8;
    font-size: 0.7rem;
    padding: 5px 10px;
}

.copy-overlay:hover {
    opacity: 1;
}

/* Upload Certificate Styling */

/* Multi-Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.upload-box {
    background: var(--color-warm-gray);
    border: 2px dashed var(--color-cool-gray);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.upload-box:hover {
    border-color: var(--color-teal);
    transform: translateY(-2px);
}

.upload-type-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-boulder);
    margin-bottom: 15px;
}

.file-status {
    font-size: 0.85rem;
    margin-top: 10px;
    color: var(--color-boulder);
    word-break: break-all;
}

.file-selected {
    color: var(--color-green) !important;
    font-weight: 700;
}

/* Dark Mode Adjustments */
.content.dark-mode .upload-box {
    background: #1a1a1a;
    border-color: #444;
}

.content.dark-mode .file-selected {
    color: var(--color-mint) !important;
}