/* Define color variables */
:root {
    --primary-color: #333;
    --secondary-color: #555;
    --hover-color: #777;
    --background-color: #fff;
    --white: #fff;
    --grey: #e0e0e0;
	--primary-button-color: #008000;
	--button-hover-color: #02c602;
    --input-border-color: #ccc;
    --success-background: #d4edda;
    --success-text-color: green;
    --error-background: #f8d7da;
    --error-text-color: #f00;
    --dark-red: #b30000;
    --notif-unread-bg: #eef6ff;
    --notif-read-bg: #f9f9f9;
}

/* Reusables styles */
.hidden {
    display: none;
}

a.active {
    font-weight: bolder;
    text-decoration: underline;
}

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

.full-width {
    display: block !important;
    width: 100% !important;
}

.width-initial {
    width: initial;
}

.text-initial {
    justify-content: flex-start !important;
}

.text-center {
    text-align: center !important;
}

.margin-initial {
    margin: initial !important;
}

.padding-initial {
    padding: initial !important;
}

.maxwidth-100 {
    max-width: 100% !important;
}

.flex-row {
    flex-direction: row !important;
}

/* Hide by default */
#scene_preference_other,
label[for="scene_preference_other"] {
    display: none;
}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Body styles */
body {
    font-family: Manrope, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.main-header {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--white);
    padding: 6px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 9999;
}

.header_left {
    flex: 0 0 50%;
}

.header_left img {
    max-height: 40px;
    vertical-align: middle;
}

.header_right {
    flex: 0 0 50%;
}

.header_right nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header_right nav>a,
.header_right nav>.dropdown {
    height: 40px;
    /* or whatever aligns with your design */
    display: flex;
    align-items: center;
}

.main-header a,
.main-header .dropdown-toggle {
    color: var(--white);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.header_left a {
    padding: 0;
    border-radius: 0;
    background: none;
}

.main-header a:hover,
.main-header .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    background: #eee;
    border-radius: 10px;
    z-index: 9999;
    min-width: 200px;
    text-align: left;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    background: transparent;
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    border-radius: 0 !important;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Page title */
h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Page content styles */
.container {
    width: 98%;
    max-width: 1920px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); */
    flex: 1;
}

.subcontainer {
    display: flex;
    gap: 2%;
}

/* Notification Styles (page box) */
.notifications-box {
    background-color: var(--white);
    border: 1px solid var(--input-border-color);
    padding: 16px 20px;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: Manrope, Arial, sans-serif;
}

.notifications-box h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

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

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--grey);
    gap: 10px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .message a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.notification-item .message a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.notification-item.unread {
    background-color: var(--notif-unread-bg);
}

.notification-item.read {
    background-color: var(--notif-read-bg);
    opacity: 0.6;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--hover-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.mark-read-btn:hover {
    color: var(--primary-color);
}

.mark-all-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 10px;
}

.mark-all-btn:hover {
    background-color: var(--hover-color);
}

.notifications-box .empty {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.9rem;
}

.header-dropdown.notification-widget {
    display: flex;
    align-items: center;
}

.notification-widget .dropdown {
    position: relative;
    padding-bottom: 6px;
}


.notification-widget .dropdown-menu {
    padding: 12px 16px;
    min-width: 320px;
    max-width: 400px;
    font-size: 0.95rem;
    font-family: Manrope, Arial, sans-serif;
    background: #222;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    top: calc(100% - 2px);
    /* Same gap fix */
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--white);
    text-decoration: none;
    padding: 4px 12px 0px 0px !important;
}

.notification-bell:hover {
    background-color: transparent !important;
    transform: none !important;
    color: var(--white) !important;
}

/* No hover on system_settings icon */
.header_right nav a[href*="system_settings"] {
    background-color: transparent !important;
}

.header_right nav a[href*="system_settings"]:hover {
    background-color: transparent !important;
    transform: none !important;
    color: var(--white) !important;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: -12px;
    background: linear-gradient(135deg, #ff3b30, #ff5757);
    color: var(--white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 2px solid #fff;
    min-width: 18px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.5);
}

.notification-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.widget-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-message a {
    color: #f1f1f1;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    word-break: break-word;
}

.widget-message a:hover {
    text-decoration: underline;
    font-weight: 700;
}

.widget-dismiss-form {
    margin: 0;
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--hover-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    color: #ffd166;
}

.view-all-link {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.view-all-link a {
    color: #ffd166;
    text-decoration: none;
    font-weight: bold;
}

.view-all-link a:hover {
    text-decoration: underline;
}

/* Kanban Styles */
.kanban-board {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.kanban-column {
    flex: 1;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 80vh;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.kanban-column h3 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.kanban-card {
    background: #fff;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.kanban-card strong {
    display: block;
    margin-bottom: 0.3rem;
}

.kanban-card small {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

.kanban-note {
    margin-top: 4px;
    font-size: 0.85em;
    color: #555;
    background: #f8f8f8;
    padding: 4px 6px;
    border-radius: 4px;
}

/* Form container styles */
.form-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #eee;
}

.form-container form>div {
    display: grid;
    grid-template-columns: 150px 1fr;
    //grid-template-columns: max-content 1fr;
    align-items: center;
    margin-bottom: 16px;
}

/* Form styles */
form,
.model-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

label {
    font-weight: bold;
}

input,
textarea,
button,
select {
    padding: 5px;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: Manrope, Arial, sans-serif;
}

input[type="submit"],
button {
    padding: 10px 18px;
    cursor: pointer;
    background-color: var(--primary-button-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
}

input[type="submit"]:hover,
button:hover {
    background-color: var(--button-hover-color);
}

/* Checkbox group */
.checkbox-group {
    margin-bottom: 1em;
}

.checkbox-group-label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 6px;
}

/* Search container */
.search-container {
    background: var(--background-color);
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 20px;
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: Manrope, Arial, sans-serif;
}

.search-container h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.search-container form {
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-container input,
.search-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--secondary-color);
}

.search-container input:focus,
.search-container select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.2);
    outline: none;
}

.search-container button {
    grid-column: span 2;
    padding: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

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

.search-container input::placeholder {
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Code of Conduct styling */
.code-of-conduct-container {
    background-color: var(--error-background);
    border: 2px solid var(--dark-red);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
    margin: 16px auto;
}

.code-of-conduct-container a {
    color: var(--error-text-color);
    text-decoration: none;
}

.code-of-conduct-container a:hover {
    color: var(--dark-red);
}

/* Success message styling */
p.success {
    color: var(--success-text-color);
    font-weight: bold;
    background-color: var(--success-background);
    padding: 10px;
    border-radius: 4px;
}

/* Error message styling */
p.error {
    color: var(--error-text-color);
    font-weight: bold;
    background-color: var(--error-background);
    padding: 10px;
    border-radius: 4px;
}

/* Profile container */
.profile-container {
    max-width: 100%;
    margin-bottom: 1%;
}

/* Container for table */
.view-container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

/* Table inside the container */
.view-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

/* Table header */
.view-container table th {
    background-color: #ddd;
    text-align: left;
    padding: 12px 16px;
    font-weight: bold;
    border: 1px solid #ddd;
}

/* Table data cells */
.view-container table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

/* Make table headers sticky at the top when scrolling */
.view-container table thead {
    /* position: sticky; */
    top: 0;
    z-index: 1;
}

/* Status and View Filters */
.filter-container .status-filters,
.filter-container .view-filters {
    margin: 8px 0;
    display: flex;
    width: fit-content;
}

.status-filters,
.view-filters {
    margin: 16px 0;
    padding: 10px;
    background: var(--background-color);
    border: 1px solid var(--grey);
    border-radius: 8px;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.status-filters a,
.view-filters a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
}

.status-filters a:hover,
.view-filters a:hover {
    background: var(--hover-color);
    color: var(--white);
}

.status-filters a.active,
.view-filters a.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

/* Sort Options */
.sort-options {
    margin: 12px 0;
    font-size: 16px;
    color: var(--text-color);
}

.sort-options strong {
    margin-right: 8px;
    font-weight: 500;
}

.sort-options a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
}

.sort-options a:hover {
    background: var(--hover-color);
    color: var(--white);
}

.sort-options a.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

/* Ban and Unban button styles */
.banned-label {
    color: var(--error-text-color);
    font-weight: bold;
}

.shoot-progress-label {
    color: #007bff;
    font-weight: bold;
}

.ban-btn {
    background-color: var(--error-text-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.ban-btn:hover {
    background-color: #c0392b;
}

.unban-btn {
    background-color: var(--success-text-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.unban-btn:hover {
    background-color: #27ae60;
}

.success-btn {
    background-color: var(--success-text-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.success-btn:hover {
    background-color: #27ae60;
}

.archive-btn {
    background-color: #ffa366;
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.archive-btn:hover {
    background-color: #ff751a;
}

.unarchive-btn {
    background-color: #991f00;
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.unarchive-btn:hover {
    background-color: #27ae60;
}

.transparent-btn {
    background-color: #333;
    padding: 3px 5px;
}

/* Model action buttons*/
.model-action-buttons .inactive-btn,
.model-action-buttons .ban-btn {
    background-color: red;
}

.model-action-buttons .active-btn,
.model-action-buttons .unban-btn {
    background-color: green;
}

/* Shoot status button styles */
.status-button {
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.active-button {
    background-color: #2563eb;
    color: white;
    cursor: pointer;
}

.active-button:hover {
    background-color: #1d4ed8;
}

.disabled-button {
    background-color: #9ca3af;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-container {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    width: 100%
}

.status-back {
    background-color: var(--grey);
    color: var(--primary-color);
}

/* Checklist */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    grid-template-columns: initial !important;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.checklist-item label {
    flex: 1;
    font-weight: 500;
    margin-right: 20px;
}

.checklist-item input[type="file"] {
    flex: 1;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    cursor: pointer;
    max-width: 100%;
    color: var(--primary-color);
}

.checklist-item input[type="file"]::file-selector-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 500;
}

.checklist-item input[type="file"]::file-selector-button:hover {
    background-color: var(--hover-color);
}

.checklist-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.checklist-item textarea {
    flex: 1;
    width: 100%;
    resize: vertical;
    min-height: 80px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checklist-item small {
    color: var(--success-text-color);
    font-size: 0.85em;
    font-style: italic;
}

/* Checklist Status */
.checklist-status {
    list-style: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--success-background);
    color: var(--success-text-color);
    font-size: 0.9rem;
}

.checklist-status li {
    margin: 0.3rem 0;
}

/* Files Container */
.files-container {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.files-container h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--grey);
}

.files-container .image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.files-container .image-container div {
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.files-container .image-container img {
    height: auto;
    border: 1px solid var(--grey);
    border-radius: 8px;
}

.files-container .image-container img:hover {
    transform: scale(1.05);
    border-color: var(--hover-color);
}

.files-container p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.files-container p a:hover {
    text-decoration: underline;
    color: var(--hover-color);
}

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

/* Files Container */
.files-container {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.files-container h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--grey);
}

.files-container .image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.files-container .image-container div {
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.files-container .image-container img {
    height: auto;
    border: 1px solid var(--grey);
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.files-container .image-container img:hover {
    transform: scale(1.05);
    border-color: var(--hover-color);
}

.files-container p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.files-container p a:hover {
    text-decoration: underline;
    color: var(--hover-color);
}

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

/* Confirm form */
.files-container form {
    margin-top: 1.2rem;
    padding: 1rem;
    background: var(--background-color);
    border: 1px dashed var(--grey);
    border-radius: 8px;
}

.files-container form p {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.files-container button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Images */
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-container img {
    max-height: 200px;
    flex: 1 1 calc(33.333% - 10px);
    object-fit: cover;
    width: 100%;
    border-radius: 5px;
}

.image-container h3 {
    flex: 0 0 100%;
    margin-bottom: 10px;
}

/* Changelog */
.changelog {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 8px;
    padding: 15px 20px;
    /* max-width: 600px; */
    /* optional */
    /* margin: 20px auto; */
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.changelog h4 {
    margin: 0 0 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--grey);
    padding-bottom: 5px;
}

.changelog-entry {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.changelog-entry::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.changelog-entry p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--secondary-color);
}

.changelog-entry strong {
    color: var(--primary-color);
}

.changelog-entry em {
    font-style: normal;
    color: #315794;
    font-weight: 600;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 600px;
    width: 90%;
}

.confirm-btn {
    background-color: #e53935;
    color: white;
    padding: 10px;
    margin: 10px;
}

.cancel-btn {
    background-color: #ccc;
    padding: 10px;
    margin: 10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

/* Autosuggest styles */
#autosuggest-results-2257,
[id^="autosuggest-results-2257"] {
    max-width: 350px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
    z-index: 9999;
    display: block;
    /* Ensure block layout */
}

#autosuggest-results-2257 div,
[id^="autosuggest-results-2257"] div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    /* Proper padding */
    display: block;
    /* Each result on its own row */
    width: 100%;
    /* Stretch to fill container */
    box-sizing: border-box;
    float: none;
    /* Prevent float */
    clear: both;
    /* Clear any floating */
}

#autosuggest-results-2257 div:last-child,
[id^="autosuggest-results-2257"] div:last-child {
    border-bottom: none;
}

/* Calendar Styles */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.calendar-nav a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.calendar-nav form {
    display: inline-block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    border: 1px solid #ddd;
    padding: 8px;
    min-height: 80px;
    position: relative;
}

.day .date {
    font-weight: bold;
    margin-bottom: 5px;
}

.day .event {
    background: #3498db;
    color: #fff;
    padding: 2px 4px;
    margin-bottom: 3px;
    border-radius: 3px;
    font-size: 12px;
}

.day.empty {
    background: #f9f9f9;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.event .label {
    font-size: 14px;
    color: #fff;
    margin-right: 4px;
}

.event a {
    font-size: 14px;
    color: #ff0;
}

/* Shoot set styles */
.preview-thumb img {
    max-width: 600px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.styled-table th,
.styled-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.styled-table th {
    background-color: #f4f4f4;
    text-align: left;
}

/* Scene Graphics Grid */
.scene-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual Scene Card */
.scene-card-item {
    background-color: var(--white);
    border: 1px solid var(--grey);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scene-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Scene card image */
.scene-card-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--grey);
    border-radius: 10px 10px 0 0;
    object-fit: cover;
}

/* Scene card title and date */
.scene-card-item div {
    padding: 10px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.scene-card-item div em {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Model Promo and Note Styles */
.note-item,
.promo-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.promo-item {
    display: inline-block;
    //width: 300px;
    vertical-align: top;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.note-item strong,
.promo-item strong {
    color: #333;
}

.note-photos img,
.promo-photos img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    margin: 5px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-photos img:hover,
.promo-photos img:hover {
    //transform: scale(1.05);
	opacity: 0.8; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.view-link,
.back-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 6px 0;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    float: right;
}

.view-link:hover,
.back-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    header {
        text-align: center;
    }

    .view-container table th,
    .view-container table td {
        padding: 8px;
    }

    .view-container table {
        font-size: 14px;
    }

    .scene-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .scene-card-item div {
        font-size: 0.9rem;
    }
}

/* Drag and Drop Dropzone styling */
.dropzone-area {
    border: 2px dashed #bbb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 15px;
}
.dropzone-area.dragover {
    background: #eef2ff;
    border-color: #4f46e5;
}
.dropzone-text {
    color: #555;
    pointer-events: none;
}
.dropzone-text i {
    color: #4f46e5;
    margin-bottom: 10px;
}
.upload-progress-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    display: none;
    margin-top: 15px;
    box-sizing: border-box;
}
.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85em;
    padding: 5px;
    border-bottom: 1px solid #fafafa;
}
.progress-file-name {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.progress-bar-wrapper {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
    position: relative;
}
.progress-bar-inner {
    width: 0;
    height: 100%;
    background: #4f46e5;
    transition: width 0.1s ease;
}
.progress-status {
    width: 120px;
    text-align: right;
    font-weight: bold;
}
.progress-status.success {
    color: green;
}
.progress-status.error {
    color: red;
}
.upload-batch-actions {
    display: none;
    margin-top: 10px;
    justify-content: flex-end;
}

/* ── Inline-editable table cells ── */
td.inline-editable {
    position: relative;
    cursor: text;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

td.inline-editable:hover {
    background-color: #f0f6ff !important;
    box-shadow: inset 0 -2px 0 #93c5fd;
}

td.inline-editable:hover::after {
    content: ' ✏️';
    font-size: 0.7em;
    opacity: 0.45;
    pointer-events: none;
}

td.inline-editable input,
td.inline-editable select,
td.inline-editable textarea {
    outline: 2px solid #3b82f6;
    outline-offset: -1px;
    border: 1px solid #93c5fd !important;
    border-radius: 4px;
    background: #fff;
    font-size: inherit;
    font-family: inherit;
    padding: 4px 6px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}