/* --- Main Container & Body --- */
	body {
		background-color: #101020;
	}

	.upload-container {
		background-image: radial-gradient(circle at center 75%, rgba(28, 31, 97, 0.6) 0%, rgba(16, 16, 32, 0) 60%);
		background-color: #101020;
		color: #f8f9fa;
		padding: 15px;
		min-height: 100vh;
	}

	/* --- Form Styling --- */
	.upload-form-wrapper {
		background-color: rgba(29, 29, 42, 0.7);
		/* Slightly transparent card background */
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 12px;
		padding: 20px;
	}

	/* --- Modern Form Group Styling --- */
	.form-group-modern {
		margin-bottom: 20px;
	}

	.form-group-modern label {
		font-weight: 600;
		font-size: 0.9em;
		color: #eee;
		margin-bottom: 8px;
		display: block;
		text-transform: uppercase;
	}

	.form-group-modern .form-control,
	.form-group-modern .form-select {
		background-color: #1c1e26;
		border: 1px solid #fff;
		border-radius: 8px;
		color: #fff;
		padding: 12px;
		font-size: 1em;
	}

	.form-group-modern .form-control:focus,
	.form-group-modern .form-select:focus {
		background-color: #1c1e26;
		color: #fff;
		border-color: #349aed;
		-webkit-box-shadow: 0 0 0 2px rgba(52, 154, 237, 0.25);
		        box-shadow: 0 0 0 2px rgba(52, 154, 237, 0.25);
	}

	/* --- Modern Form Placeholder Styling --- */
	.form-group-modern .form-control::-webkit-input-placeholder, .form-group-modern .form-select::-webkit-input-placeholder {
		color: #888;
		opacity: 1;
	}
	.form-group-modern .form-control::-moz-placeholder, .form-group-modern .form-select::-moz-placeholder {
		color: #888;
		opacity: 1;
	}
	.form-group-modern .form-control:-ms-input-placeholder, .form-group-modern .form-select:-ms-input-placeholder {
		color: #888;
		opacity: 1;
	}
	.form-group-modern .form-control::-ms-input-placeholder, .form-group-modern .form-select::-ms-input-placeholder {
		color: #888;
		opacity: 1;
	}
	.form-group-modern .form-control::placeholder,
	.form-group-modern .form-select::placeholder {
		color: #888;
		opacity: 1;
	}

	/* Fallback for older browsers (optional but good practice) */
	.form-group-modern .form-control::-webkit-input-placeholder {
		color: #888;
	}

	.form-group-modern .form-control:-ms-input-placeholder {
		color: #888;
	}

	.form-group-modern small {
		font-size: 0.8em;
		color: #888;
	}

	/* --- Social Handle Input Group --- */
	.social-input-group {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		background-color: #1c1e26;
		border: 1px solid #fff;
		border-radius: 8px;
	}

	.social-input-group:focus-within {
		border-color: #349aed;
		-webkit-box-shadow: 0 0 0 2px rgba(52, 154, 237, 0.25);
		        box-shadow: 0 0 0 2px rgba(52, 154, 237, 0.25);
	}

	.social-input-group .at-symbol {
		padding-left: 12px;
		color: #888;
		font-size: 1.2em;
	}

	.social-input-group .form-control {
		border: none;
		-webkit-box-shadow: none;
		        box-shadow: none;
		-webkit-box-flex: 1;
		    -ms-flex-positive: 1;
		        flex-grow: 1;
	}

	/* --- Custom Styling for the Social Site Dropdown Arrow --- */

	/* Target the specific form-select inside our social input group */
	.social-input-group .form-select {
		color: #fff;
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
		/* Ensure other background properties from Bootstrap are maintained */
		background-repeat: no-repeat;
		background-position: right 0.75rem center;
		background-size: 16px 12px;
	}

	.file-drop-zone {
		position: relative;
		cursor: pointer;
		border: 2px dashed #ddd;
		border-radius: 12px;
		padding: 15px;
		text-align: center;
		-webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
		transition: background-color 0.2s ease, border-color 0.2s ease;
	}

	.file-drop-zone .material-symbols-outlined {
		font-size: 48px;
		color: #349aed;
	}

	.file-drop-zone p {
		margin: 10px 0 0 0;
		font-weight: 500;
		color: #ccc;
	}

	.file-drop-zone small {
		color: #888;
	}

	#s3upload1 {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		cursor: pointer;
		z-index: 20;
	}

	/* --- Selected Files List Styling --- */

	/* The container for the "Selected Files" header and the list */
	.selected-files-container {
		text-align: left;
		/* Align text to the left for a cleaner look */
		width: 100%;
	}

	.selected-files-header {
		font-weight: 600;
		font-size: 0.9em;
		color: #aaa;
		margin-bottom: 10px;
		text-transform: uppercase;
	}

	/* Style for the list that holds the file items */
	.file-list {
		list-style: none;
		/* Remove the default bullet points */
		padding: 0;
		margin: 0;
		max-height: 150px;
		/* Give it a max height for scrollability */
		overflow-y: auto;
		/* Add a scrollbar if many files are selected */
	}

	/* Individual file item in the list */
	.file-list-item {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		background-color: rgba(0, 0, 0, 0.2);
		/* A subtle background for each item */
		border-radius: 6px;
		padding: 8px 12px;
		margin-bottom: 5px;
		/* Space between items */
		font-size: 0.9em;
	}

	.file-list-item .material-symbols-outlined {
		font-size: 20px;
		color: #a0c4ff;
		/* A nice blue for the icon */
		margin-right: 10px;
		/* Space between icon and filename */
	}

	.file-list-item .file-name {
		/* Allow the filename to truncate if it's too long */
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* --- Buttons --- */
	.cta-button {
		width: 100%;
		padding: 15px 25px;
		font-size: 1.2em;
		font-weight: bold;
		border-radius: 50px;
		/* Fully rounded ("pill") shape */
		border: 1px solid #1c88d5;
		/* A slightly darker blue border */
		color: #fff;

		/* The Gradient Background */
		background-image: linear-gradient(45deg, #009cff 0%, #007bff 100%);

		/* Flexbox for layout inside the button */
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
		/* Push text and icon to the ends */

		position: relative;
		/* Required for the vertical line */
		-webkit-transition: -webkit-transform 0.2s ease-out, -webkit-box-shadow 0.2s ease-out;
		transition: -webkit-transform 0.2s ease-out, -webkit-box-shadow 0.2s ease-out;
		transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
		transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, -webkit-transform 0.2s ease-out, -webkit-box-shadow 0.2s ease-out;
		-webkit-box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
		        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
		/* A subtle blue glow */
	}

	/* Add a hover effect */
	.cta-button:hover {
		-webkit-transform: translateY(-2px);
		        transform: translateY(-2px);
		/* Slight lift on hover */
		-webkit-box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
		        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
	}

	.button-text {
		-webkit-box-flex: 1;
		    -ms-flex-positive: 1;
		        flex-grow: 1;
		text-align: center;
	}

	.cta-button-content,
	.cta-button-loading {
		-webkit-box-flex: 1;
		    -ms-flex-positive: 1;
		        flex-grow: 1;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: center;
		    -ms-flex-pack: center;
		        justify-content: center;
	}

	.cta-button-loading {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: center;
		    -ms-flex-pack: center;
		        justify-content: center;
		gap: 10px;
	}

	.cta-button .spinner-border {
		color: #fff;
	}

	.cta-button:disabled {
		cursor: not-allowed;
		opacity: 0.75;
	}

	.cta-button-icon {
		font-size: 1em;
		margin-left: auto;
		position: absolute;
		right: 20px;
	}

	/* The Vertical Line using a ::before pseudo-element */
	.cta-button::before {
		content: '';
		position: absolute;
		right: 60px;
		/* Adjust this to position the line */
		top: 25%;
		bottom: 25%;
		width: 1px;
		background-color: rgba(255, 255, 255, 0.4);
		/* Faint white line */
	}

	/* --- Dynamic Upload Button Styling --- */
	.upload-button-container {
		width: 100%;
		position: relative;
	}

	.upload-progress-container {
		width: 100%;
		font-size: 1.1em;
		font-weight: bold;
		color: #ccc;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
		height: 58px;
	}

	.upload-progress-container.hidden,
	.retry-button.hidden {
		display: none;
	}

	.upload-progress-text-stalled {
		color: #ffc107;
		font-style: italic;
	}

	.retry-button {
		-ms-flex-negative: 0;
		    flex-shrink: 0;
		margin-left: 15px;
		width: auto;
		padding: 8px 20px;
		font-size: 0.9em;
		-webkit-box-shadow: none;
		        box-shadow: none;
	}

	.retry-button:hover {
		-webkit-box-shadow: none;
		        box-shadow: none;
		-webkit-transform: translateY(0);
		        transform: translateY(0);
		/* Disable the lift effect */
	}

	.retry-button::before {
		display: none;
		/* Hide the vertical line */
	}

	.retry-button .button-icon {
		display: none;
		/* Hide the arrow icon */
	}

	.retry-button:disabled {
		/* When disabled, use a muted version of the gradient */
		background-image: linear-gradient(45deg, #2a5a8a 0%, #1d5b99 100%);
		border-color: #1c88d5;
		opacity: 0.5;
		cursor: not-allowed;
	}

