:root {
	--primary-blue: #007BFF;
	--hover-blue: #0056b3;
	--success-green: #28a745;
	--hover-green: #218838;
	--danger-red: #ff4d4d;
	--hover-red: #ff1a1a;
	--dark-gray: #333;
	--medium-gray: #444;
	--light-gray: lightgray;
	--white: #fff;
	--border-radius: 5px;
}

body, html {
	font-family: Arial, sans-serif;
	margin: 0 auto; /* Center the body on the page */
	padding: 0;
	background-color: var(--dark-gray);
	color: var(--white);
	width: 100%;
    max-width: 1920px; /* Constrains the entire page to the header's maximum width */
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

header {
    max-width: 1920px;
    width: 80vw;
    height: 0; /* Set height to 0 to use padding for height */
    padding-top: 19.53%; /* Creates a box with the exact aspect ratio of the banner image */
    margin: 5px auto;
    background: url('images/banner.png') no-repeat center center/contain;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}


.page-heading {
    text-align: center;
    margin: 20px auto;
    font-size: 32px;
    color: #fff;
    background-color: #666;
    padding: 10px 0;
    border-radius: 5px;
    max-width: 1920px;
    width: 80vw;
}

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.header-bar h2 {
	margin: 0;
}

.header-bar form button {
	margin-left: 10px;
	padding: 5px 10px;
	border-radius: var(--border-radius);
	background-color: var(--primary-blue);
	color: var(--white);
	border: none;
	cursor: pointer;
}

.header-bar form button:hover {
	background-color: var(--hover-blue);
}

header h1 {
	max-width: 1920px;
	background: rgba(0, 0, 0, 0.5);
	padding: 10px 20px;
	border-radius: var(--border-radius);
}

.container {
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.page-title {
	text-align: center;
	margin: 10px 0;
	font-size: 24px;
	color: var(--white);
	background-color: var(--dark-gray);
	padding: 10px 0;
}

table {
	margin: 20px auto;
	border-collapse: collapse;
	width: 80%;
	background-color: var(--medium-gray);
	color: var(--white);
}

th, td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
}

th {
	background-color: #555;
}

form {
	margin: 20px auto;
	max-width: 500px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

input, select, button {
	width: auto;
	max-width: 300px;
	padding: 10px;
	margin: 10px 5px;
	font-size: 14px;
	box-sizing: border-box;
}

button {
	background-color: #4CAF50;
	color: var(--white);
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 14px;
}

button:hover {
	background-color: #45a049;
}

.blue-button,
.admin-button,
.completed-button {
	display: inline-block;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: var(--border-radius);
	margin-top: 20px;
	color: var(--white);
}

.blue-button {
	background-color: var(--primary-blue);
}

.blue-button:hover {
	background-color: var(--hover-blue);
}

.admin-button {
	background-color: var(--primary-blue);
}

.admin-button:hover {
	background-color: var(--hover-blue);
}

.completed-button {
	background-color: var(--success-green);
}

.completed-button:hover {
	background-color: var(--hover-green);
}

.red-button {
	background-color: var(--danger-red);
	color: var(--white);
	border: none;
	padding: 5px 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
}

.red-button:hover {
	background-color: var(--hover-red);
}


.totals-section table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--dark-gray);
	color: var(--white);
}

.totals-section table th, 
.totals-section table td {
	padding: 10px;
	border: 1px solid var(--medium-gray);
	text-align: left;
}

.totals-section table th {
	font-weight: bold;
	background-color: var(--medium-gray);
}

.totals-section table tr:nth-child(even) {
	background-color: var(--medium-gray);
}

.totals-section table tr:nth-child(odd) {
	background-color: var(--dark-gray);
}

a {
	color: var(--light-gray);
	text-decoration: none;
}

a:hover {
	color: lightblue;
}

ul, ol {
	text-align: left;
	margin-left: 20px;
	padding-left: 20px;
	width: 50vw;
	list-style-position: inside;
 /* Optional: ensures bullet points stay within the content area */;
}

h3 {
	background-color: #666;
 /* Lighter gray background for contrast */
	padding: 10px;
	margin: 20px auto;
	border-radius: 10px;
 /* Rounded corners */;
}

h2 {
	color: #000;
 /* White text for contrast */
	background-color: #DDD;
 /* Very Light gray background for contrast */
	padding: 12px;
	padding-left: 20vw;
	padding-right: 20vw;
	margin: 20px auto;
	border-radius: 10px;
 /* Rounded corners */;
}

@media (max-width: 768px) {
	header {
		width: 90vw;
		min-height: 100px;
		background: url('images/mobile-banner.png') no-repeat center center/cover;
	}

	table {
		width: 100%;
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	th, td, input, select, button {
		font-size: 14px;
		padding: 6px;
	}
}

@media (max-width: 480px) {
	header {
		font-size: 16px;
		padding: 8px 0;
	}

	th, td {
		font-size: 12px;
		padding: 4px;
	}

	input, button, select {
		font-size: 12px;
		padding: 8px;
	}
}

.job-details-box {
	background-color: #555;
 /* Lighter gray than the rest of the page */
	color: #fff;
 /* White text for contrast */
	padding: 20px;
	margin: 20px auto;
	border-radius: 10px;
 /* Rounded corners */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 /* Subtle shadow for depth */
	max-width: 600px;
 /* Limit the width */
	text-align: left;
 /* Align text to the left */;
}

.job-details-box.error {
	background-color: #ff4d4d;
 /* Red for error messages */
	color: #fff;
 /* White text for contrast */;
}

.logout-button {
	padding: 10px 20px;
	background-color: red;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.logout-button:hover {
	background-color: darkred;
}
	
	
.logout-form {
    margin-top: 20px; /* Just add some space above the button */
    text-align: center;
}

/* Adjust button if needed */
.logout-button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	background-color: red
    color: white;
	cursor: pointer;
}

.logout-button:hover {
	background-color: darkred);
}

  .spaced-section {
    margin-top: 30px; /* Adjust this value as needed */
  }

  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px; /* Set desired width */
    height: auto; /* Maintain aspect ratio */
  }

  .image-container img {
    max-width: 100%; /* Ensures image scales within its container */
    height: auto; /* Maintains aspect ratio */
  }
  
    .work-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1024px; /* Set desired width */
    height: auto; /* Maintain aspect ratio */
  }

  .work-container img {
    max-width: 100%; /* Ensures image scales within its container */
    height: auto; /* Maintains aspect ratio */
  }
  
  label {
    display: block;
    margin: 10px 0 5px; /* Add spacing above and below */
    font-weight: bold; /* Make the label text bold */
}

.attachments {
    max-width: 250px;
    word-wrap: break-word;
}

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

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.file-list a {
    text-decoration: none;
    color: #007BFF;
    word-break: break-word;
}

.file-list a:hover {
    text-decoration: underline;
}

.upload-form {
    margin-top: 10px;
}

.file-input {
    display: block;
    margin-bottom: 5px;
}

.upload-btn, .delete-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
}

.upload-btn:hover, .delete-btn:hover {
    background-color: #0056b3;
}

.notes {
	min-width: 180px;
    width: 60%; /* The widest column */
}

.earnings-display {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: -30px; /* Adjust position */
    left: 0;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-upload-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


.admin-button,
.master-admin-button {
    display: inline-block;
    margin: 10px; /* Add spacing around buttons */
}

.upload-form {
    margin: 20px 0;
    text-align: center;
}

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

.file-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-list a {
    text-decoration: none;
    color: #007BFF;
    word-break: break-word; /* Ensures long filenames wrap */
    max-width: 150px; /* Adjust as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    white-space: nowrap;
}

.delete-btn {
    background-color: #FF4C4C;
    color: white;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #FF0000;
}


/* General link styling */
a {
    color: lightblue; /* Make the text white */
    text-decoration: none; /* Remove underline for a cleaner look */
}

/* Hover effect for links */
a:hover {
    color: pink; /* Optional: Change the color on hover for better UX */
    text-decoration: underline; /* Add underline to emphasize it's a link */
}

/* Description text styles */
.container p {
    font-size: 14px;
    color: #ddd; /* Light gray text */
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.5;
}

.file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.file-list li {
    margin-bottom: 5px;
}

.success-message {
    background-color: var(--success-green);
    color: var(--white);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
}
.artist-picture {
    width: 350px;
    height: auto;
    object-fit: cover; /* Ensures the aspect ratio is maintained */
    border-radius: 50%; /* Optional: Makes the picture circular */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow */
}


.artist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.social-links p {
    margin: 5px 0;
}

/* Artist Name Bar Styling */
.artist-name-bar {
    background-color: var(--white); /* White background */
    color: var(--dark-gray); /* Dark gray text */
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin-bottom: 10px; /* Add spacing between the name bar and the image */
}

/* Social Links Styling */
.social-links a {
    display: inline-block;
    background-color: var(--dark-gray); /* Dark gray background */
    color: var(--white); /* White text */
    font-weight: bold; /* Bold text */
    padding: 8px 12px;
    margin: 5px; /* Add space between links */
    border-radius: var(--border-radius); /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
}

.social-links a:hover {
    background-color: var(--hover-blue); /* Change background color on hover */
    transform: translateY(-2px); /* Slight upward movement on hover */
}
/* Adjusted Artist Profile Layout */
.artist-profile {
    text-align: center;
    border: 1px solid var(--medium-gray);
    padding: 15px;
    width: 350px;
    border-radius: var(--border-radius);
    background: var(--medium-gray);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Ensures content stays within the card */
}

/* Adjusted Artist Picture */
.artist-picture {
    width: 350px;
    height: auto;
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px; 
}

.yellow-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 20px;
    color: var(--dark-gray); /* Dark text for contrast */
    background-color: #FFD700; /* Gold/yellow color */
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

.yellow-button:hover {
    background-color: #FFC107; /* Slightly darker yellow for hover effect */
    transform: translateY(-2px); /* Slight upward movement on hover */
}


/* Styling for the "Open for Commissions" button */
.open-button {
    display: inline-block;
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}
/* Commission toggle styles */
.commission-toggle {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.toggle-button {
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.toggle-button.open {
    background-color: green;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

/* Styling for the "Commissions Closed" button */
.toggle-button.closed {
    background-color: red;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* Add margin for commission status buttons */
.commission-status {
    margin-top: 10px;
    text-align: center;
}


	.uncomplete-button {
    background-color: #ffc107; /* Yellow */
    color: black;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.uncomplete-button:hover {
    background-color: #e0a800; /* Darker yellow */
}
.news-section {
    width: 70%;
	max-width: 900px;
	padding: 10px;	
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;	
}
.news-item {
    margin-bottom: 15px;
}
.news-item h3 {
    font-size: 22px;	
    margin: 0 0 5px;
    color: black;
	font-style: italic;
	background-color: #DDD;
}
.news-item p {
    margin: 0;
    font-size: 16px;
	color: white;
}

.news-section p {
    text-align: center;
    font-style: italic;
    margin: 20px 0;
}

.donation-section {
    background-color: #DDD; /* Matches light gray bar look */
    color: #000;
    padding: 0px 24px; /* smaller vertical padding */
    border-radius: 5px;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 80%; /* limit bar width */
    margin-left: auto;
    margin-right: auto; /* center the bar */
}

.donation-section .donation-text {
    font-size: 20px; /* slightly smaller than page-title */
    font-weight: bold;
    font-family: inherit;
    flex: 1 1 auto; /* allow text to take available space */
    text-align: left;
}

.donation-section form,
.donation-section a {
    display: inline-block;
}

.donation-section img,
.donation-section input[type="image"] {
    height: 36px !important; /* force exact match with Ko-fi */
    width: auto !important;
    border: 0;
    vertical-align: middle;
}

.donation-section input.footer {
    height: 80px !important;
    width: auto !important;
    border: 0;
    vertical-align: middle;
}


/* --- Artist News Blurb Styling (Dark Theme) --- */
.artist-news {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
    background-color: var(--dark-gray); /* Match the site's dark background */
    border: 1px solid #555; /* A subtle, lighter gray border */
    border-radius: var(--border-radius);
    text-align: left;
}

/* NEW: Styles the header to look like a gray bar */
.artist-news h4 {
    background-color: #666;         /* The same gray used for other headers */
    color: var(--white);             /* White text */
    padding: 8px;                    /* Give it some padding like a button */
    margin-top: 0;
    margin-bottom: 15px;             /* Add a bit more space below the header */
    border-radius: var(--border-radius);
    font-weight: normal;             /* Less intense bolding */
    text-align: center;              /* Center the text like in your example */
    border-bottom: none;             /* Remove the old blue line */
}

/* Styles the news content paragraph */
.artist-news p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #eee; /* Light gray text for readability on the dark background */
}

/* --- Job Messages Modal Styling --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
    backdrop-filter: blur(5px); /* Frosted glass effect for modern browsers */
    animation: fadeIn 0.3s; /* Add fade-in animation */
}

.modal-content {
    position: relative;
    background-color: var(--dark-gray);
    color: var(--white);
    margin: 15% auto;
    padding: 0; /* Remove padding to let the header be full-width */
    border: 1px solid #666;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Header for the modal */
.modal-content h2 {
    background-color: var(--medium-gray);
    color: var(--white); /* FIX: This line makes the text white */
    padding: 12px 15px;
    margin: 0;
    font-size: 1.2em;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    text-align: center;
    width: auto;
    border-bottom: 1px solid #666;
}

/* Container for messages and the form inside the modal */
.modal-body {
    padding: 20px;
}

/* The 'X' close button */
.close {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--white);
    text-decoration: none;
}

/* Message history box */
#modal-messages-history {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #555;
    padding: 10px;
    margin-bottom: 15px;
    text-align: left;
    border-radius: var(--border-radius);
    background-color: #2c2c2c; /* Slightly lighter than the modal background */
}

/* Text area and button */
.modal-body textarea {
    width: 100%;
    background-color: #555;
    color: var(--white);
    border: 1px solid #666;
    border-radius: var(--border-radius);
    padding: 10px;
}

.modal-body button {
    width: 100%;
    background-color: var(--success-green);
    font-weight: bold;
}
.modal-body button:hover {
    background-color: var(--hover-green);
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.message-notification {
    box-shadow: 0 0 10px 3px rgba(0, 150, 255, 0.8);
    border: 1px solid #00aaff;
}

@keyframes glowing {
    0% { box-shadow: 0 0 5px 1px rgba(0, 150, 255, 0.6); }
    50% { box-shadow: 0 0 15px 4px rgba(0, 150, 255, 0.9); }
    100% { box-shadow: 0 0 5px 1px rgba(0, 150, 255, 0.6); }
}

.message-notification {
    animation: glowing 2s infinite;
}

/* Unread Message Button Notification */
button.unread-messages {
    background-color: #FFD700 !important;
    color: #333 !important;
    font-weight: bold;
    border: 1px solid #c7a100 !important;
}
button.unread-messages:hover {
    background-color: #FFC107 !important;
}

/* Individual messages - Use Flexbox for proper alignment */
#modal-messages-history p {
    display: flex; /* Aligns items in a row */
    justify-content: space-between; /* Pushes items to opposite ends */
    align-items: center; /* Vertically aligns items in the middle */
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
#modal-messages-history p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Corrected Delete Button Style */
.delete-message-btn {
    background-color: #ff4d4d !important; /* Solid red */
    color: white !important;
    border: none;
    border-radius: 10px; /* Oval shape */
    height: 20px;
    line-height: 20px; /* Center text vertically */
    padding: 0 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0; /* Prevents the button from shrinking */
    margin-left: 10px; /* Adds space between text and button */
}
.delete-message-btn:hover {
    background-color: #cc0000 !important;
}

/* --- New Unified Footer Styling --- */
.unified-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
    padding: 5px;
    color: #ccc;
    font-size: 14px;
}

footer {
    max-width: 1920px;
    width: 80vw;
    margin: 5px auto;
    padding: 0;
    border-radius: var(--border-radius);
    background-color: var(--medium-gray);
    overflow: hidden;
}

.footer-banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
}

.footer-column p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #ccc;
    text-align: left;
}

#footer-info-text .donation-buttons {
    margin-top: auto; /* Pushes donation button to the bottom */
}

#footer-info-text form {
    margin: 0;
}

#footer-info-text input[type="image"] {
    height: 47px; /* Matches standard PayPal button height */
    width: auto;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column li a {
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}
.footer-column li a:hover {
    text-decoration: underline;
}

#footer-legal {
    text-align: left;
}

#footer-legal .red-button {
    display: inline-block;
    margin-top: auto; /* Pushes help button to the bottom */
    width: fit-content;
}

footer .footer-banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain; /* This will ensure the image scales down to fit while maintaining its aspect ratio */
}