:root {



    /* Shadow color */
    --shadow-color: rgba(0, 0, 0, 0.2);

    /* Layout variables */
    --content-max-width: 1300px;
    --grid-gap: 40px;
    --grid-columns: 3;

    /* New branding defaults pre-css load */

	--P5: #fff;	--P10: #fff;	--P20: #fff;	--P30: #fff;	--P40: #fff;	--P50: #fff;	--P60: #fff;	--P70: #fff;	--P80: #fff;	--P90: #fff;	--P95: #fff;
	--S5: #fff;	--S10: #fff;	--S20: #fff;	--S30: #fff;	--S40: #fff;	--S50: #fff;	--S60: #fff;	--S70: #fff;	--S80: #fff;	--S90: #fff;	--S95: #fff;
	--T5: #fff;	--T10: #fff;	--T20: #fff;	--T30: #fff;	--T40: #fff;	--T50: #fff;	--T60: #fff;	--T70: #fff;	--T80: #fff;	--T90: #fff;	--T95: #fff;
	--G5: #fff;	--G10: #fff;	--G20: #fff;	--G30: #fff;	--G40: #fff;	--G50: #fff;	--G60: #fff;	--G70: #fff;	--G80: #fff;	--G90: #fff;	--G95: #fff;
	--U5: #fff;	--U10: #fff;	--U20: #fff;	--U30: #fff;	--U40: #fff;	--U50: #fff;	--U60: #fff;	--U70: #fff;	--U80: #fff;	--U90: #fff;	--U95: #fff;
	--W5: #fff;	--W10: #fff;	--W20: #fff;	--W30: #fff;	--W40: #fff;	--W50: #fff;	--W60: #fff;	--W70: #fff;	--W80: #fff;	--W90: #fff;	--W95: #fff;
	--E5: #fff;	--E10: #fff;	--E20: #fff;	--E30: #fff;	--E40: #fff;	--E50: #fff;	--E60: #fff;	--E70: #fff;	--E80: #fff;	--E90: #fff;	--E95: #fff;
    --BLACK: black;
    --WHITE: white;
    --black: black;
    --white: white;

}

.filter_disabled {
    /* filter: invert(1) sepia(0) saturate(0) hue-rotate(0) brightness(0.5) contrast(0.5); */
    filter: invert(0.2) sepia(0) saturate(1) hue-rotate(0) brightness(0.8) contrast(0.8);
}
.filter_darkmode {
    /* filter: invert(1) saturate(1) hue-rotate(180deg) brightness(1) contrast(1); */
    filter: invert(1) saturate(1.25) hue-rotate(180deg) brightness(0.6) contrast(0.96);
}
.filter_darkmodeoff {
    /* filter: invert(1) saturate(1) hue-rotate(180deg) brightness(1) contrast(1); */
    filter: invert(1) saturate(1.25) hue-rotate(180deg) brightness(0.8) contrast(0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

body {
    min-height: 150vh;  /* Makes page at least 1.5 times viewport height */
    background-color: var(--bg-page);
}

/* Default.php styles */


.header-content {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 1300px;
    /* border-radius: 8px;*/
    margin: 0 auto;


}

nav {
    /* position: sticky; */
    /* top: 0; */
    /* z-index: 1000; */
    /* background: var(--bg-header); */

    height: 70px;
    background-color: var(--bg-header);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* border-bottom-left-radius: 8px; */
    /* border-bottom-right-radius: 8px; */
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--txt-header);
}

#header a {
    color: var(--txt-header);
    text-decoration: none;
}

.categories-nav {
    text-align: center;
}

.categories-nav a {
    margin: 0 20px;
    color: var(--txt-header);
    text-decoration: none;

    font-weight: 500;
    font-size: 16px;
    padding: 8px 8px;
    position: relative;
    transition: color 0.3s ease;
    line-height: 1;
}

.categories-nav-separator {
    border-right: 2px solid var(--txt-header);
}

.categories-nav a:hover::after, .header-controls a.basket-icon:hover::after {
  width: 86%;
}

.categories-nav a::after, .header-controls a.basket-icon::after {
  content: '';
  position: absolute;
  /* bottom: 4px; */
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--txt-header);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.categories-nav a::after {
  bottom: 0px;
}

.header-controls a.basket-icon::after {
  bottom: 4px;
}

#content {
    max-width: var(--content-max-width);
    margin: 20px auto;
}

/* Grid layout for items */
.items-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: var(--grid-gap);
    padding: 0 20px;
}

/* Full-width layout for home content */
.home-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    padding: 0 20px;
}

/* Update media queries */
@media (max-width: 900px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
}

.item {
    border: 1px solid var(--bdr-card);
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-card);
    box-shadow: 0 3px 10px var(--shadow-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    grid-column: span 1;
}

.item.x2 {
    grid-column: span 2;
}

.item.x3 {
    grid-column: span 3;
}

.item img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-in;
}

.item.x2 img,
.item.x3 img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1; /* Note: Items should be fully opaque */
    }
}

.item h3 {
    margin: 10px 0;
    color: var(--txt-card-primary);
}

.item p {
    margin: 5px 0;
    color: var(--txt-card-secondary);
}

.item .price, .item .alt-price {
    font-weight: bold;
    color: var(--txt-card-tertiary);
    font-size: 1.1em;
    margin-top: auto;
}

#footer {
    background-color: var(--bg-header);
    padding: 10px;

    /* border-top-left-radius: 8px; */
    /* border-top-right-radius: 8px; */
    transition: all 0.3s ease;
    box-shadow: 0 -3px 10px var(--shadow-color);
}

/* Administration.php styles */
.content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 20px;
}

/*
.content h3 {
    padding-bottom: 0px;
}
*/

.tab-title {
    padding-bottom: 16px;
}

/* h3 title */
/*
.tab-content:first-child {
    padding-bottom: 16px;
}


.tab-content h3:first-child {
    padding-bottom: 16px;
}
*/


.admin-section, .control-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-expandable);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-header:hover {
    background: var(--hov-expandable);
}

.section-header h3 {
    margin: 0;
    color: var(--txt-expandable);
    transition: color 0.3s ease;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--txt-expandable);
    font-size: 1.5em;  /* Increased from 1.2em */
    width: 30px;  /* Fixed width */
    height: 30px; /* Same as width for perfect square */
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
}

.toggle-btn::after {
    content: "▾";
    font-size: 1.4em;
    line-height: 1;
    margin-top: 2px;
}

.toggle-btn.expanded {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    padding: 0 15px;
    border: 1px solid var(--bdr-expandable);
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: var(--bg-expandable);
}

.section-content.expanded {
    max-height: var(--section-max-height, 2000px);
    padding: 15px;
    transition: all 0.3s;
}

.section-content hr {
    margin: 0 0 25px 0;
    border: none;
    height: 2px;
    background: var(--bg-header);
}

form {
    display: grid;
    gap: 6px;
    max-width: 600px;
}

.form-group {
    display: grid;
    gap: 5px;
}

/* Add styles for image upload form groups */
.form-group.has-image-upload {
    display: block;  /* Override grid display */
}

.form-group.has-image-upload .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* Style for clear image buttons */
.form-group.has-image-upload button {
    font-size: 12px;
    padding: 5px 10px;
    margin: 0;
    line-height: 1;
    vertical-align: baseline;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

form[id^="updateHomeContentForm"] > .form-group {
    border-bottom: 1px solid var(--bg-header);
    padding-bottom: 16px;
}

label {
    font-weight: 500;
    color: var(--txt-page-secondary);
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    padding: 8px 6px;
    border: 1px solid var(--bdr-textfield);
    color: var(--txt-textfield);
    background: var(--bg-textfield);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}
input[type="file"] {
    width: auto;
    margin-left: 15px;
}
textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}
button.primary {
    color: var(--txt-button-primary) !important;
    background: var(--bg-button-primary) !important;
}

button.secondary {
    color: var(--txt-button-secondary) !important;
    background: var(--bg-button-secondary) !important;
}

button.tertiary {
    color: var(--txt-button-tertiary) !important;
    background: var(--bg-button-tertiary) !important;
}

button.primary:hover {
    background: var(--hov-button-primary) !important;
}

button.secondary:hover {
    background: var(--hov-button-secondary) !important;
}

button.tertiary:hover {
    background: var(--hov-button-tertiary) !important;
}

/* Status messages */
#controlUpdateStatus,
#passwordUpdateStatus,
#homeContentUpdateStatus,
#footerContentUpdateStatus,
#categoryUpdateStatus,
#brandingUpdateStatus,
#updateColoursStatus,
#itemUpdateStatus {
    display: flex;
    line-height: 1.5;
    gap: 15px;
    align-items: center;

    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.success {
    background: var(--bg-success);
    color: var(--txt-success);
}

.error {
    background: var(--bg-error);
    color: var(--txt-error);
}

.warning {
    background: var(--bg-warning);
    color: var(--txt-warning);
}

/* Lists */
#categoryList,
#itemList {
    margin-top: 20px;
}

/* Category styles */
.category-row {
    padding: 10px;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-listitem);
    color: var(--txt-listitem);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-row:hover {
    background: var(--hov-listitem) !important;
}

.category-row.selected {
    background: var(--bgsel-listitem) !important;
    border-color: var(--bdr-listitem) !important;
}

.category-content {
    flex-grow: 1;
    padding: 0 10px;
    background: inherit !important;
    border: none !important;
}

/* Item styles */
.item-row {
    padding: 10px;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-listitem);
    color: var(--txt-listitem);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.item-row:hover {
    background: var(--hov-listitem) !important;
}

.item-row.selected {
    background: var(--bgsel-listitem) !important;
    border-color: var(--bdr-listitem) !important;
}

.item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    width: 80%;
    background: inherit !important;
    border: none !important;
}

.item-thumbnail,
.item-thumbnail-placeholder {
    width: 80px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--bdr-listitem);
    flex-shrink: 0;  /* prevents the placeholder from shrinking */
    margin: 0 10px;
}

.item-thumbnail-placeholder {
    background-color: transparent;  /* or any color you prefer */
    border: 1px solid transparent;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
    /* justify-content: center; */
    justify-content: left;
    min-height: 80px;
    /*text-align: center;
    margin: 0 auto; */
}
.item-detail, .discount-detail {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding-left: 2px;
    justify-content: space-between;
    min-height: 30px;
}

.item-description {
    color: var(--txt-panel-tertiary);
    font-size: 0.9em;
}

.item-price, .item-alt-price {
    color: var(--txt-panel-tertiary);
    font-weight: 500;
    /* text-align: center; */
    left: 30%;
    position: relative;
}
.price-line .item-price, .alt-price-line .item-alt-price {
    left: 5%;
}

.item-actions {
    display: flex;
    gap: 5px;
}

/* Button styles */
.move-btn {
    background: var(--G60);
}

.move-btn:hover {
    background: var(--G70);
}

#categoryList button,
#itemList button {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--E5);
}


/* Image preview */
#imagePreview {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--bdr-listitem);
    text-align: center;
}

#thumbnail {
    border-radius: 4px;
    margin-bottom: 5px;
}

#imagePreview button {
    font-size: 12px;
    padding: 5px 10px;
}

/* Responsive design */
@media (max-width: 900px) {
    :root {
        --grid-columns: 2;
    }
}

@media (max-width: 600px) {
    :root {
        --grid-columns: 1;
    }
}

/* CSS Variables Management styles */
.css-vars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(330px, 1fr));
    gap: 20px;
}

.vars-section {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 4px;
    height: fit-content;
}

.vars-section h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--txt-card-primary);
}

.color-var,
.number-var {
    margin-bottom: 4px;
    margin-top: 14px;
}
.color-var label,
.number-var label {
    display: block;
    margin-bottom: 4px;
}

.color-input-group,
.number-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
}

.number-controls {
    display: flex;
    flex-direction: column;
}

.number-controls button {
    padding: 2px 5px;
    font-size: 10px;
    line-height: 1;
}

.unit {
    color: var(--txt-card-secondary);
    font-size: 0.9em;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    cursor: pointer;
    opacity: 1;
}

.color-var input[type="text"] {
    flex: 1;
    min-width: 60px;
}

.reset-section {
    font-size: 0.8em;
    padding: 4px 8px;
    background: var(--G60);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reset-section:hover {
    background: var(--G70);
}

/* Custom tooltip styles */
.number-var input,
.color-var input {
    position: relative;
}

.number-var input:hover::after,
.color-var input:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

#content .price-line, #content .alt-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#content .price-line {
    margin-top: auto;
    padding-top: 10px;
}

#content .alt-price-line {
    margin-top: 5px;
}

#content .price-value {
    margin-left: auto;
}

.hero-section {
    position: relative;
    width: 100%;
    /* height: calc(100vh - 260px); */
    height: 600px;
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8; /* Match the final opacity you want */
    }
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.8;
    animation: fadeIn 0.3s ease-in; /* 0.3s duration, ease-in timing */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    /* text-shadow: 2px 2px 4px rgba(144, 11, 11, 0.5); */
    padding: 20px;
    /* background-color: rgba(202, 127, 197, 0.6); */
    background-color: rgba(var(--bg-button-primary-rgb), 0.6); 
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
}

.additional-content {
    padding: 30px;
    background: var(--bg-panel);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 3px 10px var(--shadow-color);
    line-height: 1.6;
    font-size: 1.1em;
}

/* Add responsive breakpoints */
@media (max-width: 900px) {
    .hero-section {
        height: calc(70vh - 90px);
    }
}

@media (max-width: 600px) {
    .hero-section {
        height: calc(50vh - 70px);
    }
    
    .hero-text {
        font-size: 1.8em; /* Smaller text on mobile */
        width: 90%; /* Wider relative to screen */
    }
}

.item-select-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.item-select-container select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--P20);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 396px;
}
.item-select-container select:focus {
    outline: none;
    border-color: var(--bdr-button-primary);
    box-shadow: 0 0 0 2px rgba(255,87,34,0.1);
}

.item-select-container label {
    display: inline-block;
    margin-bottom: 0;
    color: var(--txt-listitem);
    font-weight: 500;
    min-width: 120px;
}

.item-select-container button {
    padding: 8px 12px;
    background: var(--E60);
    color: var(--E5);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.item-select-container button:hover {
    background: var(--E70);
}

#item_description {
    white-space: pre-wrap;
}

.vars-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-listitem);
    padding: 10px 15px;
    border-radius: 4px;
}

.content-blocks {
    margin: 20px 0;
    border: 1px solid var(--bdr-listitem);
    padding: 20px;
    border-radius: 4px;
    background: var(--bg-listitem);
}

.content-block {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    background: var(--bg-card);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bdr-listitem);
}

.block-controls {
    display: flex;
    gap: 5px;
}

.add-block-btn {
    margin-top: 10px;
    background: var(--bg-button-secondary);
}
.add-block-btn:hover {
    background: var(--hov-button-secondary);
}

.delete-btn {
    background: var(--E50);
    color: var(--E5);
}

.delete-btn:hover {
    background: var(--E60);
}

.section-separator {
    display: block;
    grid-column: 1 / -1;
    height: 10px;
    background-color: var(--bg-button-primary);
    margin: 20px 0;
    border-radius: 4px;
}

.item {
    position: relative;
}

.add-to-basket {
    position: absolute;
    top: 20px;
    right: 25px;
    background: var(--bg-button-secondary);
    color: var(--txt-button-secondary);
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.add-to-basket:hover {
    background: var(--hov-button-secondary);
    opacity: 1;
} 

/* Basket notification styles */
.basket-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--bg-button-secondary);
    color: var(--txt-button-secondary);
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.basket-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.basket-notification.error {
    background: var(--E60);
} 

.header-controls {
    display: flex;
    align-items: center;
    /* gap: 60px; */
}

.basket-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.basket-image {
    height: 36px;
    width: auto;
    filter: brightness(0.4) invert(1);
}

.basket-count {
    position: absolute;
    top: 0px;
    right: -8px;
    background: white;
    color: var(--bg-header);
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
} 

.item-flags {
    display: flex;
    gap: 10px;
    margin: 5px 0;
    font-size: 0.9em;
}

.item-flag {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--G10);
    color: var(--G80);
    opacity: 0.5;
}

.item-flag.active {
    background: var(--bg-button-secondary);
    color: var(--txt-button-secondary);
    opacity: 1;
} 

/* Content section grid layout */
#content:not(.items-grid):not(.basket-content) {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: var(--grid-gap);
    padding: 0 20px;
}

/* Hero section should always be full width */
.hero-section {
    grid-column: 1 / -1;
}

/* Content section widths */
.content-section {
    grid-column: span 1;
}

.content-section.x2 {
    grid-column: span 2;
}

.content-section.x3 {
    grid-column: span 3;
}

/* Ensure proper spacing in grid layout */
.content-section {
    break-inside: avoid;
    page-break-inside: avoid;
} 

/* Hero section should always be full width */
.hero-section {
    grid-column: 1 / -1;
}

/* Content section widths */
.content-section {
    margin: 0;
    /* padding: 20px;
    background: var(--bg-panel);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color); */
}

.content-section.x1 {
    grid-column: span 1;
}

.content-section.x2 {
    grid-column: span 2;
}

.content-section.x3 {
    grid-column: span 3;
}

/* Ensure proper spacing */
.content-section:not(:last-child) {
    margin-bottom: 0; /* Remove any existing bottom margin */
}

.tabs {
    display: flex;
    gap: 1px;
    background: none;
    padding: 1px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: var(--bg-menutab);
    color: var(--txt-menutab);
    cursor: pointer;
    /* flex: 1; */
    transition: background-color 0.3s;
    min-width: 160px;
    /* font-weight: bold; */
    font-size: 1.0em;
    border-radius: 8px;
    /* border-bottom-left-radius: 0; */
    /* border-bottom-right-radius: 0; */
}

.tab-btn:hover {
    background: var(--hov-menutab);
}

.tab-btn.active {
    background: var(--bgsel-menutab);
    color: var(--fgsel-menutab);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.basket-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: block;
}

.basket-content h1 {
    margin-bottom: 30px;
    color: var(--txt-page-primary);
}

.basket-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-panel);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.item-details {
    flex: 1;
}

.item-details h3 {
    margin: 0 0 5px 0;
    color: var(--txt-card-primary);
}

.item-price {
    color: var(--txt-card-secondary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--bg-button-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: var(--hov-button-primary);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.item-total {
    min-width: 80px;
    text-align: right;
    font-weight: bold;
    color: var(--txt-page-primary);
}
.item-total.strikethrough {
    text-decoration: line-through double red;
    color: var(--G50);
}

.discount-total {
    min-width: 80px;
    text-align: right;
    font-weight: bold;
    color: var(--txt-page-primary);
}

.remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--E60);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.remove-btn:hover {
    background: var(--E70);
}

.basket-summary {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-panel);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.basket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: var(--bg-button-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--hov-button-primary);
}

.checkout-btn:disabled {
    background: var(--G60);
    cursor: not-allowed;
}

.empty-basket {
    text-align: center;
    color: var(--txt-panel-secondary);
    padding: 40px;
    background: var(--bg-panel);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.pricing-section {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bdr-listitem);
}

.pricing-section:last-child {
    border-bottom: none;
}

.pricing-section .item-price {
    flex: 1;
}

.pricing-section .quantity-controls {
    margin: 0 20px;
    position: relative;
}

.pricing-section .item-total {
    min-width: 80px;
    text-align: right;
}
.pricing-section .discount-total {
    min-width: 109px;
    text-align: left;
}

.basket-empty {
    margin-bottom: 15px;
}

/* Checkout page styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--grid-gap);
    padding: 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.order-summary {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.order-summary h2,
.checkout-form h2 {
    color: var(--txt-page-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bdr-listitem);
}

.checkout-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--bdr-listitem);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item .item-name {
    font-weight: bold;
    color: var(--txt-page-primary);
    margin-bottom: 5px;
}

.item-summary, .discount-summary {
    display: flex;
    justify-content: space-between;
    color: var(--txt-page-secondary);
    font-size: 0.9em;
    margin: 5px 0;
}

.item-subtotal {
    font-weight: bold;
    color: var(--txt-page-secondary);
}

.total-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--bdr-listitem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

.total-section strong {
    color: var(--txt-page-primary);
}

#checkout-total {
    font-weight: bold;
    color: var(--txt-page-primary);
}

.checkout-form {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.checkout-form .form-group {
    margin-bottom: 15px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--txt-page-primary);
    font-weight: 500;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--bg-button-primary);
    outline: none;
}

.checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

#place-order-btn {
    width: 100%;
    padding: 15px;
    background: var(--bg-button-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#place-order-btn:hover {
    background: var(--hov-button-primary);
}

#place-order-btn:disabled {
    background: var(--G60);
    cursor: not-allowed;
}

/* Order confirmation styles */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.confirmation-header h1 {
    color: var(--txt-page-primary);
    margin-bottom: 15px;
}

.confirmation-header .greeting {
    font-size: 1.2em;
    color: var(--txt-page-secondary);
    margin-bottom: 20px;
}

/*
.order-badge {
    display: inline-block;
    background: var(--bg-button-primary-lightest);
    color: var(--bg-button-primary-darkest);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}
*/

.confirmation-message {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.email-status {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.email-sent {
    text-align: center;
    padding: 15px;
    background: var(--U50);
    border-radius: 6px;
}

.email-sent p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--G80);
}

.email-address {
    /* font-weight: bold; */
    color: var(--U80);
    font-size: 1.1em;
}

.confirmation-actions {
    margin-top: 30px;
    text-align: center;
}

.confirmation-actions .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--bg-button-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.confirmation-actions .btn-primary:hover {
    background: var(--hov-button-primary);
}

.important-notice {
    background: var(--E10);
    border: 2px solid var(--E30);
    padding: 20px;
    border-radius: 6px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notice-icon {
    font-size: 1.2em;
}

.important-notice strong {
    color: var(--E50);
    font-size: 1.1em;
}

.important-notice p {
    color: var(--E40);
    line-height: 1.5;
}

.error-message, .notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.5;
}

.error-message {
    background: var(--bg-error);
    color: var(--txt-error);
}

.notice {
    background: var(--G5);
    color: var(--G80);
}

.error-icon, .info-icon {
    font-size: 1.2em;
}

/* Order table styles */

.orders-section, .log-section, .user-section {
    position: relative;
}

.orders-table, .log-table, .user-table, .tickets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.orders-table thead, .log-table thead, .user-table thead, .tickets-table thead  {
    position: sticky;
    top: 70px;
    z-index: 1;
    background-color: var(--bg-page);
}


/* Add box-shadow for visual separation */
/*
.orders-table thead th, .log-table thead th, .user-table thead th {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
*/

.orders-table th,
.orders-table td,
.log-table th,
.log-table td,
.user-table th,
.user-table td {
        padding: 12px;
    text-align: left;
    /* font-weight: 600; */
    color: var(--txt-page-secondary);
    border-bottom: 1px solid var(--bdr-panel);
    vertical-align: middle;
    height: 50px;
    box-sizing: border-box;
}

.orders-table th, .log-table th, .user-table th {
    /* background-color: var(--bg-button-primary); */
    font-weight: bold;
}

.orders-table th:last-child {
    text-align: center;  /* Center align the last header column */
}

/*
.orders-table tr:hover {
    background-color: var(--hov-button-secondary);
}
*/

.status-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--bdr-listitem);
}

/* Status colors */
.status-pending { background-color: #ffffff; }
.status-confirmed { background-color: #fff3cd; }
.status-processing { background-color: #cce5ff; }
.status-completed { background-color: #d4edda; }
.status-cancelled { background-color: #f8d7da; }

/* Modal styles  */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Order info styles in modal */
.order-info {
    margin: 25px 0;
    padding: 25px;
    background-color: var(--bg-listitem);
    border-radius: 4px;
}

.order-info h3,
.order-items h3,
.order-items-edit h4 {
    margin-bottom: 20px;
    color: var(--txt-page-primary);
}

.order-info p {
    margin: 12px 0;
    line-height: 1.5;
}

/* Order items styles in modal */
.order-items, .delivery-details {
    margin-top: 30px;
}

.order-items table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.order-items th,
.order-items td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.order-items th:nth-child(1) {
    max-width: 200px;
}
.order-items th:nth-child(2) {
    min-width: 200px;
}
/* Edit form styles in modal */
.order-items-edit {
    margin: 15px 0 0 0;
    padding: 25px;
    background-color: var(--bg-listitem);
    border-radius: 4px;
}

.order-item {
    padding: 15px;
    margin: 15px 0;
    border: 1px solid var(--bdr-listitem);
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.form-group {
    margin: 6px 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 0;
    color: var(--txt-page-secondary);
    font-weight: 500;
    min-width: 120px;
}
.form-group label.discount {
    min-width: 90px;
}

.form-group input, .form-group textarea, .form-group select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--P20);
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--bdr-button-primary);
    box-shadow: 0 0 0 2px rgba(255,87,34,0.1);
}

/* Override form-group styles for order items section */
/*
.order-items-edit .form-group {
    display: block;
}
*/

.order-items-edit .form-group label {
    display: block;
    /* margin-bottom: 8px; */
    min-width: auto;
}

/* Modal button styles */
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.save-btn, .cancel-btn {
    background-color: var(--bg-button-secondary);
    color: var(--txt-button-secondary);
}

.save-btn:hover, .cancel-btn:hover {
    background-color: var(--hov-button-secondary);
}

/* Order visualization styles */
.order-visualization {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
}

.order-viz-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.order-viz-item img {
    width: 24px;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

.order-viz-item span {
    color: var(--txt-page-secondary);
}

.cell-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.order-visualization {
    display: flex;
    gap: 8px;
}

.order-viz-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}



.modal-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
}

.order-navigation {
    display: flex;
    gap: 8px;
}

.nav-btn {
    /* background: var(--bg-button-primary); */
    /* color: white; */
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*
.nav-btn:hover {
    background: var(--hov-button-primary);
}
*/

.nav-btn:disabled {
    background: var(--G60);
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-btn span {
    font-size: 12px;
    line-height: 1;
}

.active-row td:first-child {
    border-left: 3px solid var(--bg-button-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.footer-panel-left, .footer-panel-middle, .footer-panel-right {
    flex: 1;
    padding: 10px;
    color: var(--txt-header);
}
.footer-panel-left {
    text-align: left;
}

.footer-panel-middle {
    text-align: center;
}

.footer-panel-right {
    text-align: right;
}

/* Branding */
#primary-preview {
    background-color: var(--P50);
    color: var(--P5);
}

#secondary-preview {
    background-color: var(--S50);
    color: var(--S5);
}

#tertiary-preview {
    background-color: var(--T50);
    color: var(--T5);
}

#greyscale-preview {
    background-color: var(--G50);
    color: var(--G5);
}

#success-preview {
    background-color: var(--U50);
    color: var(--U5);
}

#warning-preview {
    background-color: var(--W50);
    color: var(--W5);
}

#error-preview {
    background-color: var(--E50);
    color: var(--E5);
}

#brandingForm {
    max-width: 800px;
    margin: auto;
}
#brandingForm label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}


#brandingForm input[type="color"] {
    display: block;
    width: 70px;
    height: 70px;
    border: none; /* Remove border */
    /* margin-top: -10px; */
    cursor: pointer;
    border-radius: 4px;
    outline: none; /* Remove outline */
    box-shadow: none; /* Remove any box-shadow */
    background: transparent; /* Ensure background is transparent */
    padding: 0; /* Remove default padding */
}

#brandingForm .color-picker {
    display: block;
    width: 70px !important;
    height: 70px !important;
    border: none;
    margin-top: -27px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    text-align: center;
    font-weight: bold;
}

/* Remove hover and focus styles */
#brandingForm input[type="color"]:hover,
#brandingForm input[type="color"]:focus {
    border: none; /* Ensure no border on hover/focus */
    outline: none; /* Ensure no outline on hover/focus */
    box-shadow: none; /* Ensure no box-shadow on hover/focus */
}

#brandingForm button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    /* background-color: var(--bg-button-primary); */
    /* color: white; */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/*
#brandingForm button:hover {
    background-color: var(--hov-button-primary);
}
*/

#brandingForm .reset-defaults {
    margin-top: 0;
    /* margin-bottom: 10px; */
    margin-left: 10px;
    background-color: var(--G60);
    color: white;
}
#brandingForm .reset-defaults:hover {
    background-color: var(--G70);
}

#brandingForm .color-box {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

#brandingForm .preview {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
#brandingForm .preview div {
    flex: 1;
    height: 50px;
    margin: 5px;
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    color: #fff;
    border-radius: 5px;
}
#brandingForm .color-shades {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
#brandingForm .color-shades div {
    width: 50px;
    height: 50px;
}

#brandingForm .color-shades label {
    margin-top: -28px;
    text-align: center;
}

#updateColoursForm {
    max-width: fit-content;
}

#updateColoursForm .color-box {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-width: 30px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
}
  

#colour_palette.large {
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    max-width: 475px;
    margin: auto;
    display: grid;
    gap: 3px;
    border: 1px solid lightgray;
    font-size: small;
    position: relative;
    box-shadow: 0px 0px 7px 12px rgba(0, 0, 0, 0.3);

}
#colour_palette {
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    max-width: 260px;
    margin: auto;
    display: grid;
    gap: 3px;
    border: 1px solid lightgray;
    font-size: small;
    position: relative;
    box-shadow: 0px 0px 7px 12px rgba(0, 0, 0, 0.3);
}

#colour_palette .color-box.large {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 3px 5px;
    cursor: pointer;
}
#colour_palette .color-box {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 1px 5px;
    cursor: pointer;
}

#colour_palette .color-box.fixed {
    width: 68px;
    border: 1px solid #444;
    justify-content: center;
}

#colour_palette .color-shades {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    max-width: 235px;
}
  
  
#colour_palette .color-shades.large div {
    width: 40px;
    height: 40px;
}
#colour_palette .color-shades div {
    width: 20px;
    height: 20px;
}

#colour_picker {
    position: fixed; /* Fixes the position relative to the viewport */
    top: 90px; /* Adjust this value to position it below the header */
    left: 20px; /* Adjust this value for horizontal positioning */
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    max-width: 380px;
    margin: auto;
    display: none;
    gap: 3px;
    border: 1px solid lightgray;
    font-size: small;
    box-shadow: 0px 0px 7px 12px rgba(0, 0, 0, 0.3);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  
}

#colour_picker img.hslGradient {
    display: flex;
    width: 361px;
    height: 101px;
    /* cursor: crosshair; */
}
#colour_picker label {
    display: flex;
    padding: 5px 0;
    justify-content: space-between;
}

#colour_picker span {
    padding: 10px;
}

#colour_picker input[type="text"] {
    padding: 8px 6px;
    border: 1px solid var(--bdr-textfield);
    border-radius: 4px;
    font-size: 14px;
    width: 50%;
}

#colour_picker .color-box {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 5px;
    border: 1px solid #000;
}
#hslGradient {
    cursor: url('/assets/images/cursor.png') 7 7, auto; /* Set the custom cursor with an offset */
}
#colour_picker img.colorMarker {
    position: absolute;
    display: none;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

/* Style for the switch label */
.switch {
    display: flex !important; /* Use flexbox */
    align-items: center; /* Center items vertically */
}

/* Hide the default checkbox */
.switch input {
    display: none; /* Hide the checkbox */
}

/* The slider */
.slider {
    position: relative;
    display: inline-block;
    width: 44px; /* Width of the toggle */
    height: 24px; /* Height of the toggle */
    background-color: var(--G40); /* Background color when off */
    border-radius: 24px; /* Rounded corners */
    margin-right: 10px; /* Space between the slider and text */
    transition: background-color 0.2s; /* Smooth transition */
}

/* The circle inside the slider */
.slider:before {
    position: absolute;
    content: "";
    height: 16px; /* Height of the circle */
    width: 16px; /* Width of the circle */
    left: 4px; /* Positioning */
    bottom: 4px; /* Positioning */
    background-color: var(--G5); /* Circle color */
    border-radius: 50%; /* Make it round */
    transition: transform 0.2s; /* Smooth transition */
}

/* Change background color when checked */
input:checked + .slider {
    background-color: var(--U50); /* Background color when on */
}

/* Move the circle to the right when checked */
input:checked + .slider:before {
    transform: translateX(20px); /* Move the circle */
}

/* missing classes */
.content-heading {
    color: var(--txt-panel-primary);
}

.additional-content {
    color: var(--txt-panel-secondary);
}

.view-btn, .edit-btn, .move-btn, .nav-btn {
    background-color: var(--bg-success);
    color: var(--txt-success);
}

.view-btn:hover, .edit-btn:hover, .move-btn:hover, .nav-btn:hover {
    background-color: var(--hov-success);
}

.success-btn {
    background: var(--bg-success);
    color: var(--txt-success);
}
.success-btn:hover {
    background: var(--hov-success);
}

.danger-btn {
    background: var(--bg-error);
    color: var(--txt-error);
}
.danger-btn:hover {
    background: var(--hov-error);
}
.warning-btn {
    background: var(--bg-warning);
    color: var(--txt-warning);
}
.warning-btn:hover {
    background: var(--hov-warning);
}

/* pricing calc */
.form-control {
    padding: 10px;
    border: 1px solid var(--bdr-textfield);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}
.pricing-form {
    background-color: var(--bg-panel);
    padding: 10px;
    border: 1px solid var(--bdr-panel);
    width: 50%;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin: 40px auto;
}
.pricing-form label {
    min-width: 200px;
}


/* content section image */
.content-with-image {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.additional-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.image-column {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.content-column {
    flex: 1;
}

.section-image {
    max-width: 360px;
    height: auto;
    border-radius: 6px;
}

.additional-content.image-left {
    display: flex;
    flex-direction: row;
}

.additional-content.image-right {
    display: flex;
    /* flex-direction: row-reverse; */
}

.additional-content.image-top {
    display: flex;
    flex-direction: column;
}

.additional-content.image-bottom {
    display: flex;
    /* flex-direction: column-reverse; */
    flex-direction: column;
}

/* Ticket styles */
.tickets-section {
    margin-top: 20px;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tickets-table th,
.tickets-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--bdr-panel);
}

.priority-critical { color: var(--E50); }
.priority-high { color: var(--W50); }
.priority-medium { color: var(--S50); }
.priority-low { color: var(--P50); }

.status-new { color: var(--P50); }
.status-in_progress { color: var(--S50); }
.status-resolved { color: var(--U50); }
.status-closed { color: var(--G50); }

#newTicketForm {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid var(--bdr-panel);
}

#newTicketForm .form-group {
    margin-bottom: 6px;
}

#newTicketForm textarea {
    min-height: 100px;
}

/* Modal styles */
.modal-ticket {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

body.modal-open {
    overflow: hidden; /* Prevent scrolling */
}

/*
.modal-content {
    background-color: var(--bg-panel);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--bdr-panel);
    border-radius: 4px;
    width: 80%;
    max-width: 600px;
    position: relative;
}
*/

.modal-content-ticket {
    background-color: var(--bg-panel);
    margin: 6% auto;
    padding: 20px;
    border: 1px solid var(--bdr-panel);
    border-radius: 4px;
    width: 80%;
    max-width: 650px; /* Adjust this value as needed */
    /* max-height: 90vh; Set a maximum height */
    /* overflow-y: auto; Allow scrolling if content exceeds max height */
    position: relative; /* Ensure proper positioning */
}

.ticket-details {
    color: var(--txt-panel-primary);
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    background-color: var(--bg-page);
    padding: 8px;
    border-radius: 4px;
}

.info-row {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: bold;
    min-width: 100px;
    margin-right: 10px;
}

.info-value {
    flex: 1;
}


.ticket-content {
    margin: 15px 0;

}

.ticket-content .description {
    margin-top: 10px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 14px;
}

.ticket-actions {
    display: flex;
    justify-content: space-between; /* Aligns buttons to the left and right */
    margin-top: 15px; /* Add some space above the actions */
}

/* why did AI do this? the buttons are in a flex justified with space between so...? */
/* .ticket-actions button { */
/*     margin-right: 10px; */ /* Optional: Add some space between buttons */
/* } */

.ticket-update {
    width: 85%;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
}

.my-update {
    margin-left: 0;
    margin-right: auto;
    background-color: var(--U30);
    color: var(--txt-panel-primary);
}

.other-update {
    margin-left: auto;
    margin-right: 0;
    background-color: var(--S30);
    color: var(--txt-panel-primary);
}

.update-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--txt-panel-secondary);
}

.update-message {
    white-space: pre-wrap;
}

.ticket-updates {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 10px;
}

.add-update {
    margin: 20px 0;
}

.add-update textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--bdr-panel);
    border-radius: 4px;
    background-color: var(--bg-page);
    color: var(--txt-panel-primary);
}

.add-update-closed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--E10);
    padding: 12px;
    border-radius: 8px;
}
.add-update-closed span {
    font-size: 1.2em;
    color: var(--E60);
}

.new-update-indicator {
    color: var(--P50);
    font-size: 1.5em;
    vertical-align: middle;
    margin-right: 5px;
}

.updated-time {
    color: var(--P50);
    font-weight: bold;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    /* margin-left: 132px; */
    /* padding: 0px 12px; */
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 10px;
}
.image-previews-new {
    display: flex;
    flex-wrap: wrap;
    margin-left: 132px;
    /* padding: 0px 12px; */
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 10px;
}

.thumbnail {
    /* width: 100px; */
    /* height: 100px; */
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* margin: 0px 15px 10px 2px; */
    cursor: pointer;
}

.image-container {
    position: relative; /* Set position to relative to position children absolutely */
    display: inline-block; /* Change to inline-block to allow proper positioning */
    margin: 5px; /* Add some margin for spacing */
}

.thumbnail-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--G50);
    color: var(--white);
    padding: 0px 12px 3px 11px;
    border-radius: 18px;
    border: 2px solid var(--G5);
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 2px 4px var(--shadow-color);
    font-weight: bold;
}

.thumbnail-remove:hover {
    background: var(--G60);
    opacity: 1;
} 

.image-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    /* max-height: 90%; */
    margin-top: 5%;
    height: auto;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

