/**********/
/* GLOBAL */
/**********/

body {
	font-family: "Manrope", Roboto, sans-serif;
}

hr {
	margin: 20px 0 !important;
}

ul {
	list-style-type: none;
}

textarea {
	width: 100%;
	min-height: 100px;
}

a,
a.text {
	color: #900505;
}

a:hover,
a.text:hover {
	color: #f00;
}

a.green_link {
	background: #008000;
	color: #fff;
	padding: 3px 12px;
	border-radius: 99px;
	text-decoration: none;
	font-weight: 500;
}

a.green_link:hover {
	background: #02c722;
}

.transparent-btn {
	background: #f00;
	padding: 5px 10px;
}

.green_btn {
	background: #008000;
	padding: 5px 15px;
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	margin: 2px 0;
	display: inline-block;
}

.green_btn:hover {
	background: #03b303;
	color: #fff;
}

.orange_btn {
	background: #e07e14;
	padding: 5px 15px;
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	margin: 2px 0;
	display: inline-block;
}

.orange_btn:hover {
	background: #f6a145;
	color: #fff;
}

.red_btn {
	background: #d30e0e;
	padding: 5px 15px;
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	margin: 2px 0;
	display: inline-block;
}

.red_btn:hover {
	background: #f00;
	color: #fff;
}

.celebrated-btn {
	background: #ac05b2;
	padding: 5px 10px;
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	display: inline-block;
}

.celebrated-btn:hover {
	background: #e608ee;
}

tr.clickable-row:hover {
	background: #e1fbe6;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.checkbox-group {
	margin-bottom: 0.4em;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px;
}

.checkbox-item {
	display: flex;
	align-items: center;
	width: 100% !important;
}

.checkbox-item label {
	cursor: pointer;
}

select {
	background: #fff;
}

.text-decoration-none {
	text-decoration: none;
}

.fullwidth-table {
	border-radius: 12px;
	background: #f7f7f7;
	margin: 30px auto;
	border: 2px solid #eee;
}

/********************/
/* APPLICATION FORM PAGE */
/********************/

.application-form {
	margin: 0 auto;
}

.application-form .info-box {
	padding: 10px 15px;
	border: 1px solid #ccc;
	background: #efefef;
	margin: 15px 0;
	border-radius: 10px;
	box-sizing: border-box;
	max-width: 800px;
}

.application-form .info-box p {
	margin: 5px 0;
}

.application-form .info-box ul {
	margin: 0;
	padding-left: 20px;
}

.application-form .info-box ul li {
	margin: 6px 0;
	padding-left: 6px;
	line-height: 1.4;
	list-style-type: disc;
}


.application-form .form-container {
	max-width: 800px;
}




/*************/
/* DASHBOARD */
/*************/

.user-welcome {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	box-sizing: border-box;
	background: #e7f6fd;
	border-radius: 15px;
	border: 2px solid #d2ecfa;
}

.user-welcome h2 {
	margin: 0;
}

/**********************/
/* MODEL PROFILE PAGE */
/**********************/

.model-title-area {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	border-bottom: 2px solid #666;
	margin-bottom: 10px;
}

.model-title-content {
	flex: 1;
}

.model-title-area h1 {
	margin: 0;
}

/* makes button area not push stuff to the side */
.model-action-buttons {
	flex: 0 0 auto;
}

.id-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.id-item {
	background: #222;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
}

.id-card-thumb {
	max-width: 100%;
	width: auto;
	aspect-ratio: 1.586 / 1;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #ddd;
	display: block;
	margin: 0 auto;
}

.id-item a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.id-thumb {
	width: 100px;
	border-radius: 8px;
}

.id-label {
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
	font-weight: bold;
	color: #ccc;
}

.checklist-container .checklist-item label small {
	color: #41fbe7;
	font-weight: bold;
}

.extras-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 20px;
	background: #fff;
}

.extras-table th {
	background: #f8f9fa;
	padding: 12px;
	text-align: left;
	font-weight: 700;
	color: #555;
	border-bottom: 2px solid #eee;
}

.extras-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.extras-table tr:hover {
	background: #fafafa;
}

.model-action-buttons {
	display: flex;
	gap: 0.5rem;
	/* space between buttons */
}

.completed_shoots ul {
	list-style-type: none;
}

.completed_shoots li {
	padding: 5px 10px;
	background: #eee;
	border: 1px solid #666;
	border-radius: 6px;
	margin: 10px 0;
	width: auto;
	display: inline-block;
}

.completed_shoots a li {
	color: #000;
}

.completed_shoots a li:hover {
	background: #ddd;
	color: #b33716;
}

.model_actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.editable-field {
	transition: background-color 0.2s ease;
	padding: 2px 5px;
	border-radius: 3px;
	display: inline-block;
}

.editable-field:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.edit-icon {
	margin-left: 6px;
	color: #888;
	cursor: pointer;
	font-size: 0.85em;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.editable-field:hover .edit-icon {
	opacity: 1;
}

.editable-field[data-empty="true"] {
	color: #aaa;
	font-style: italic;
}


/*************************************/
/* PROMO ITEMS AREA ON MODEL PROFILE */
/*************************************/

.promo_area {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.promo_area>.form-container {
	flex: 0 0 380px;
	/* adjust width as needed */
}

.promo-layout-panel {
	flex: 1;
	min-width: 0;
}

.promo-grid-wrap {
    columns: 5 !important;
    column-gap: 16px;
}

.promo-grid-item {
    display: inline-block;
    width: 100% !important;
    margin-bottom: 16px;
    break-inside: avoid;
}

.promo-grid-item img {
	width: 100%;
}

.promo-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.promo-photos a {
    display: block;
}

.promo-photos img {
    width: 100%;
    max-width: none;
    margin: 0;

    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}


/*********************/
/* USER PROFILE PAGE */
/*********************/

.user-profile-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.stats-container {
	display: inline-block;
	width: auto;
	background: #eee;
	border: 1px solid #666;
	border-radius: 6px;
	text-align: right;
	padding: 5px 10px;
}



/********************/
/* APPLICATION PAGE */
/********************/

.application-layout {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: start;
}


.application-layout .image-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 20px;
	background: #ddd;
	border-radius: 12px;
	justify-items: center;
}

.application-layout .image-container img {
	width: 100%;
	max-width: 200px;
	height: auto;
	border: 1px solid #fff;
	border-radius: 5px;
}

/**********************/
/* SHOOT DETAILS PAGE */
/**********************/

.shoot-details-bio-notes {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.shoot-details-bio-notes .halfwidth {
	width: 50%;
	display: flex;
}

.contact-method-container {
	display: block !important;
}

.contact-method-container label {
	display: block;
	margin-bottom: 4px;
}


.set-details-item {
	width: calc(50% - 20px);
	float: left;
	margin: 0 10px;
	box-sizing: border-box;
	background: #ecf7fa;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 20px;
	height: 100%;
}


div.checklist-item label small {
	color: #008000 !important;
}

.shoot_details_documentation_area {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.doc_item {
	width: auto;
	min-width: 0;
	overflow: hidden;
}

.shoot_details_webmasters {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* UI Utility Classes */
.display-inline-block {
	display: inline-block !important;
}

.hidden {
	display: none !important;
}

.visible-block {
	display: block !important;
}

.visible-inline-block {
	display: inline-block !important;
}

.margin-top-0 {
	margin-top: 0 !important;
}

.margin-top-5 {
	margin-top: 5px !important;
}

.margin-top-50 {
	margin-top: 50px !important;
}

.margin-bottom-15 {
	margin-bottom: 15px !important;
}

.padding-15 {
	padding: 15px !important;
}

.flex-items-center-gap-5 {
	display: flex;
	align-items: center;
	gap: 5px;
}

.grid-full-width {
	grid-column: 1 / -1;
}

/* Documentation & Checklist */
.admin-note-box {
	background: rgba(0, 0, 0, 0.05);
	padding: 15px;
	border-left: 4px solid #41fbe7;
	margin: 10px 0;
}

/* Shoot Agent/Set UI */
.add-set-details {
	margin-top: 20px;
	border: 1px dashed #2563eb;
	border-radius: 8px;
	background: rgba(37, 99, 235, 0.03);
	display: inline-block;
	width: 100%;
	max-width: 400px;
}

.summary-header {
	padding: 15px;
	cursor: pointer;
	color: #2563eb;
	font-weight: bold;
}

.set-form-inner {
	border: none;
	padding-top: 10px;
	background: none;
}

.set-form-edit {
	padding-top: 20px;
}

.scene-card-suggestion-area {
	margin-top: 20px;
	border-top: 1px solid #444;
	padding-top: 10px;
}

/* Modal Thumbnails & Buttons */
.modal-thumb-container {
	display: inline-block;
	position: relative;
	margin: 8px;
	text-align: center;
	vertical-align: top;
}

.modal-thumb-container img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: opacity 0.2s;
}

.modal-thumb-container img:hover {
	opacity: 0.8;
}

.modal-delete-btn {
	position: absolute;
	top: -5px;
	right: -5px;
	z-index: 10;
	width: 18px;
	height: 18px;
	line-height: 16px;
	border-radius: 50%;
	background: #ff4d4f !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: bold;
	padding: 0;
	text-align: center;
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.modal-delete-btn:hover {
	background: #ff7875 !important;
}

/* Suggestions Area */
.suggestion-item {
	background: #333;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 10px;
	border-left: 3px solid #41fbe7;
}

.suggestion-meta {
	margin: 0;
	font-size: 0.9em;
	color: #bbb;
}

.suggestion-text {
	margin: 5px 0;
	color: #fff;
}

.suggestion-highlight {
	margin: 0;
	font-size: 0.8em;
	color: #41fbe7;
}

/* Photo Selections */
.photo-selection-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 10px;
}

.photo-selection-item {
	cursor: pointer;
}

.photo-selection-img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 4px;
}

.photo-selection-img.selected {
	border-color: #41fbe7;
}

/* Premium Invoice Area Styling */
.invoice-section-container {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.invoice-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-width: 0;
}

.invoice-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.invoice-card h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 1.15rem;
	border-bottom: 2px solid #41fbe7;
	display: inline-block;
	padding-bottom: 4px;
}

.invoice-status-banner {
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.invoice-status-banner.pending {
	background: #fff4e5;
	color: #663c00;
	border: 1px solid #ffe2b3;
}

.invoice-status-banner.paid {
	background: #e6fffa;
	color: #1a7f64;
	border: 1px solid #b2f5ea;
}

.extras-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 20px;
}

.extras-table th {
	background: #f8f9fa;
	padding: 12px;
	text-align: left;
	font-weight: 700;
	color: #555;
	border-bottom: 2px solid #eee;
}

.extras-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.extras-table tr:hover {
	background: #fafafa;
}

.invoice-action-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.invoice-file-info {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: #f0fdfa;
	border-radius: 6px;
	border: 1px dashed #41fbe7;
	margin-bottom: 15px;
}

.id-thumb {
	width: 100px;
	border-radius: 8px;
}

/* User Profile Improvements */
.user-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.profile-card {
	background: #fff;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid #eee;
}

.profile-card h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.2rem;
	color: #333;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.profile-card h3 i {
	color: #4a90e2;
}

.profile-info-item {
	margin-bottom: 12px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.profile-info-item strong {
	color: #666;
	width: 140px;
	display: inline-block;
}

.payment-details-box {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 8px;
	border: 1px dashed #ccc;
	margin-top: 8px;
	font-family: monospace;
	font-size: 0.9rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	text-align: center;
}

.stat-item {
	display: flex;
	flex-direction: column;
	padding: 10px;
	background: #f8faff;
	border-radius: 8px;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2c3e50;
}

.stat-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #7f8c8d;
	letter-spacing: 0.5px;
}

.profile-section-container {
	background: #fff;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
	border: 1px solid #eee;
}

.section-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.invoice-badge {
	background: #eef2f7;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	color: #34495e;
	font-size: 0.85rem;
}

.amount-cell {
	font-weight: 700;
	color: #27ae60;
}

.status-tag {
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
}

.status-paid {
	background: #e8f5e9;
	color: #2e7d32;
}

.status-unpaid {
	background: #fff3e0;
	color: #ef6c00;
}

.pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: #f44336;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.85rem;
	transition: background 0.2s;
}

.pdf-link:hover {
	background: #d32f2f;
}

.empty-state {
	text-align: center;
	padding: 40px;
	color: #999;
}

.empty-state i {
	font-size: 2rem;
	display: block;
	margin-bottom: 10px;
}

.table-responsive {
	overflow-x: auto;
}

/* Pagination Styling */
.pagination-container {
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.pagination-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    background: #fff;
}
.pagination-btn:hover {
    background-color: #fafafa;
    border-color: #999;
    color: #000;
}
.pagination-btn.active {
    background-color: #900505;
    border-color: #900505;
    color: #fff !important;
}

/* Model search picker */
.model-search-field {
    width: 100%;
}

.model-search-field--inline {
    flex: 1;
    min-width: 150px;
    max-width: 70%;
}

.model-search-field--inline .model-search-wrap {
    width: 100%;
}

.model-search-wrap {
    position: relative;
    width: 100%;
}

.model-search-input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 2rem;
}

.model-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    border-radius: 0;
}

.model-search-clear:hover {
    color: #900505;
    background: transparent;
}

.model-search-results {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--input-border-color, #ccc);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.model-search-results li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.model-search-results li:last-child {
    border-bottom: none;
}

.model-search-results li:hover,
.model-search-results li.is-active {
    background: #f7f7f7;
}

.model-search-results li.is-banned {
    color: #999;
    cursor: not-allowed;
    background: #fafafa;
}

.model-search-results li.is-empty,
.model-search-results li.is-loading {
    color: #666;
    cursor: default;
    font-style: italic;
}

.model-search-results li.is-empty:hover,
.model-search-results li.is-loading:hover,
.model-search-results li.is-banned:hover {
    background: inherit;
}

.model-search-results .model-search-meta {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 2px;
}

.model-search-results .model-search-banned-tag {
    color: #900505;
    font-weight: 600;
    font-size: 0.85em;
}