/*──────────────────────────────────────────────────────────────────────────────────*/
/*                        CELERITY - SHARED ADMIN CSS FILE                          */
/*──────────────────────────────────────────────────────────────────────────────────*/
/*                                                                                  */
/*  Description:                                                                    */
/*    This CSS file is shared across various administration websites                */
/*    that partner with Celerity. It has been developed by our team                 */
/*    specifically for our unique use case.                                         */
/*                                                                                  */
/*  Purpose:                                                                        */
/*    - Provide a consistent styling across all admin platforms                     */
/*    - Custom tailored for internal management and optimized for Celerity partners */
/*    - Responsive, clean, and efficient design                                     */
/*                                                                                  */
/*  Developed by:                                                                   */
/*    LR                                                                            */
/*                                                                                  */
/*──────────────────────────────────────────────────────────────────────────────────*/
/*                        CELERITY - END OF COMMENT BLOCK                           */
/*──────────────────────────────────────────────────────────────────────────────────*/


@font-face {
    font-family: Geologica;
    src: url(fonts/Geologica/static/Geologica_Auto-Bold.ttf);
    /* font-display: swap; */
}

@font-face {
    font-family: 'Geologica Light';
    src: url(fonts/Geologica/static/Geologica_Auto-Light.ttf);
    /* font-display: swap; */
}

* {
    -webkit-tap-highlight-color: transparent;
}

:root {
    --admin-header-height: 65px;
    --text-color: white;
    /* --contrast-item-background: #2a2a33; */
    --contrast-item-background: #393946;
    --main-content-background: #1f1f28;
    --header-background: #14141a;
    --login-box-background: #303032;
    --nav-item-border-color: #555555;
    --nav-item-background-color: #2a2a33;
}

html {
    background-color: var(--header-background);
}

body {
    font-family: 'Geologica Light', serif !important;
    margin: 0;
    padding: 0;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--main-content-background);
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
	height: calc(100vh - var(--admin-header-height));
    overflow-y: auto;
}

/* Header */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--admin-header-height);
    background: linear-gradient(180deg, var(--header-background), transparent);
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.cl-adminheader-button {
    position: relative;
    font-size: 26px;
    height: calc(100% - 20px);
    aspect-ratio: 1.2 / 1;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) brightness(0.8);
    -webkit-backdrop-filter: blur(10px) brightness(0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-radius 0.2s, background-color 0.2s;
}
.cl-adminheader-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.cl-adminheader-button:hover {
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    animation:
      blob-jiggle 0.5s cubic-bezier(.25,1.3,.5,1) forwards,
      z-fix 0.01s 0.1s forwards; /* starts after 0.5s delay */
}

@keyframes blob-jiggle {
  0%   { transform: scale(1) }
  25%  { transform: scale(1.03) }
  50%  { transform: scale(0.98) }
  75%  { transform: scale(1.01) }
  100% { transform: scale(1) }
}

/* delayed translateZ repaint to combat backdrop-filter ghosting issue */
@keyframes z-fix {
  from { filter: opacity(1); }
  to   { filter: opacity(1) translateZ(0); } /* force GPU redraw */
}



.cl-adminheader-a {
    height: 100%;
	display: flex;
	align-items: center;
}

.cl-adminheader-a .logo {
    height: calc(100% - 20px);
}

.cl-adminheader-buttons-wrapper {
	right: 10px;
	display: flex;
	gap: 10px;
	height: 100%;
	align-items: center;
}

.cl-adminheader-back {
    left: 10px;
	position: absolute;
}

.cl-adminheader-right {
    right: 10px;
	position: absolute !important;
}
.cl-adminheader-right,
.cl-adminheader-back {
    top: 9px;
}

#nav-list {
    position: absolute;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: left 0.3s;
}


/* Mobile Menu */
#nav-list.show {
    transform: unset;
}


/* Hamburger Icon */
#hamburger-icon {
    cursor: pointer;
    display: none;
}

.hamburger-line {
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default (Hamburger) State */
.hamburger-line.nav_top,
.hamburger-line.nav_bottom {
    transform-origin: center;
}

.hamburger-line.nav_middle {
    opacity: 1;
}

/* Active (X) State */
#hamburger-icon.nav_active .hamburger-line.nav_top {
    transform: translateY(6px) translateX(-6px) rotate(45deg);
}

#hamburger-icon.nav_active .hamburger-line.nav_middle {
    opacity: 0;
}

#hamburger-icon.nav_active .hamburger-line.nav_bottom {
    transform: translateY(-6px) translateX(-6px) rotate(-45deg);
}

/* End of Header */

/* ~~~~~~~~~~~~~ */

/* Start of view picker */

.view-destination-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: calc(100% - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
}

.view-destination-item {
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    -webkit-user-drag: none;
}

.view-destination-item:hover {
    filter: opacity(0.8);
}

.view-destination-item:hover .icon-card {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    filter: brightness(1);
    background-color: var(--main-content-background);
    border-radius: 50px;
}

.icon-card {
    display: inline-block;
    width: 100%;
    height: 200px;
    border: 1px solid var(--nav-item-border-color);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, filter 0.2s, border-radius 0.2s;
    background-color: var(--nav-item-background-color);
    filter: brightness(1.1);
}

.icon-card i {
    font-size: 110px;
    color: white;
}

.icon-card img {
    width: 150px;
    max-height: calc(100% - 50px);
}

.icon-card-label {
    text-align: center;
    margin-top: 10px;
    color: var(--text-color);
    font-size: 18px;
}

/* End of view Picker */

/* ~~~~~~~~~~~~~ */

/*  Inputs  */

input[type=text],
input[type=date],
input[type=datetime-local],
input[type=number],
input[type=password] {
    border: none;
    outline: none;
    font-family: 'Geologica Light';
    font-size: 16px;
    width: calc(100% - 7px);
    /* 5 for the inline padding and 2 for 1px of border from each side (Not a magic number ;) */
    min-width: 1ch;
    border-radius: 8px;
    margin-top: 4px;
    padding-top: 4px;
    padding-right: 0;
    padding-left: 0;
    padding-inline-start: 5px;
}

input[type=text],
input[type=password] {
    display: inline-block;
    min-width: 1ch;
}

input[type="color"] {
    width: 100%;
    height: 35px;
    -webkit-appearance: none;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid !important;
    cursor: pointer;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}
    
/*  End of Inputs  */

/* ~~~~~~~~~~~~~ */

/* Table  */

.admin-table-utility-header {
	height: 60px;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.table-header-select-container select {
    border: none !important;
    height: 100%;
	border-radius: 8px;
	font-size: 16px;
	font-family: 'Geologica Light';
	background-color: var(--contrast-item-background);
	color: var(--text-color);
	outline: none;
}	
.admin-table-utility-header div {
    padding: 0 5px 0 5px;
	background-color: var(--contrast-item-background);
	height: calc(100% - 20px);
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.admin-table-utility-header div:hover {
    filter: opacity(0.8);
}
.admin-table-utility-header div:first-child {
    margin-left: 10px;
}
.admin-table-utility-header div:last-child {
    margin-right: 10px;
}

.admin-table-utility-header div span:first-child {
    font-weight: bold;
	white-space: nowrap;
}
.admin-table-utility-header div span:last-child {
	padding: 4px;
	background-color: var(--text-color);
	color: var(--contrast-item-background);
	border-radius: 3px;
}
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    position: sticky;
    top: 0;
    background-color: var(--contrast-item-background);
    z-index: 1;
    height: 40px;
}

.table th {
    font-size: 16px;
    padding: 3px;
    border: none;
    white-space: nowrap;
    background: transparent;
    text-align: left;
    border-right: 0.5px solid #434343;
}
.table th span {
    text-indent: 3px;
	width: 100%;
	display: flex;
	height: 30px;
	align-items: center;
}
.table thead tr {
    background: transparent;
}
.table thead tr:hover {
    background: transparent;
}
.table-td-container {
    text-align: center;
	margin-left: 3px;
	margin-right: 3px;
}
.table td {
    border-right: 0.5px solid #434343;
    border-bottom: none;
    padding: 5px;
    font-size: 16px;
}

.table td:last-child {
    border-right: none;
}


.table tr {
    background: linear-gradient(to bottom, rgb(84, 84, 84, 0), rgb(15 15 26));
    cursor: pointer;
}

.table tr:hover {
    background-color: var(--contrast-item-background);
}

.table-row-without-hover {
    background-color: unset;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    height: calc(100vh - var(--admin-header-height));
}
.utility-header-included {
    height: calc(100vh - var(--admin-header-height) - 60px);
}

#empty-table-alert {
    display: flex;
    gap: 20px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	background-color: var(--contrast-item-background);
	border-radius: 20px;
	width: calc(100% - 60px);
	max-width: fit-content;
}

#empty-table-alert svg {
    width: 40px;
    height: 40px;
}
#empty-table-alert h3,
#empty-table-alert span,
#empty-table-alert button {
	margin: 0;
}

#empty-table-alert button {
    border: none;
	padding: 10px;
	border-radius: 8px;
	font-weight: bold;
	font-size: 17px;
    cursor: pointer;
    transition: filter 0.3s;
}

#empty-table-alert button:hover {
    filter: invert(1);
}



/* Status Tag (pill style) */
.table-status-tag {
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	width: fit-content;
    white-space: nowrap;
	display: flex;
	align-items: center;
}


/*  End of Table  */

/* ~~~~~~~~~~~~~ */

/* Tricks */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner-rotate {
    animation: rotate 1s linear infinite;
    /* 1 second per rotation, adjust as needed */
}

.smooth-checkbox-container {
    display: flex;
    width: calc(100% - 2px);
    background-color: transparent;
    border: 1px solid var(--cl_fl_border);
    height: 35px;
    border-radius: 8px;
    align-items: center;
}

.smooth-checkbox-container span {
    margin-left: 5px;
}

.smooth-checkbox {
    position: relative;
    width: 55px;
    height: 25px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--cl_fl_border);
    outline: none;
    border-radius: 20px;
    transition: background-color 0.3s;
    cursor: pointer;
    margin: 5px;
    margin-left: auto;
    padding: 0;
}

.smooth-checkbox:checked {
    background-color: #4cd964;
}

.smooth-checkbox::before {
    content: '';
    position: absolute;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    background-color: #fff;
    transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
}

.smooth-checkbox:checked::before {
    transform: translateX(30px);
}


#pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100px;
    align-items: center;
}

.pagination-button {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 17px;
    border-radius: 10px;
    width: 250px;
    justify-content: center;
}

#cl_loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
    z-index: 1000;
}
#cl_loading-overlay.visible {
	opacity: 1;
	pointer-events: all;
}
.cl_loader-content {
	text-align: center;
	color: white;
	font-size: 1.2rem;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	width: calc(100% - 40px);
	max-width: 300px;
	height: 180px;
	background-color: #0000009e;
	justify-content: center;
	border-radius: 20px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
    gap: 15px;
}
.cl_loader-svg {
	width: 70px;
	height: 70px;
	fill: white;
}
@keyframes clLoaderSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}


/*  End of Tricks  */


@media (max-width: 1200px) {
    .view-destination-item-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .icon-card {
        height: 190px;
    }

    .table td {
        font-size: 14px;
    }

    .table-header-image-title {
        width: 110px;
    }
}


@media (max-width: 850px) {
    #hamburger-icon {
        display: flex;
    }

    .mobile-only {
        display: unset;
    }

    #nav-list {
		left: unset;
		width: fit-content;
		background: linear-gradient(180deg, var(--main-content-background), var(--contrast-item-background));
		transition: all 0.2s ease-in-out;
		z-index: 1000;
		border-radius: 0;
		transform: unset;
		position: fixed;
		top: var(--admin-header-height);
		right: 0;
		transform: translateX(100%);
		border-radius: 0 0 0 10px;
		flex-direction: column;
		padding: 10px;
		height: fit-content;
        padding-top: 0;
    }

    .cl-adminheader-button:hover {
        border-radius: 15px;
    }

    .cl-adminheader-button {
        min-width: 54px;
    }

    .cl-adminheader-right {
        top: unset;
        right: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --admin-header-height: 60px;
    }

    .icon-card-label {
        font-size: 17px;
    }

    
    .cl-adminheader-button {
        min-width: unset;
        top: 0;
        height: 60px;
        width: 65px;
        background-color: transparent;
        border: none;
        backdrop-filter: none;
    }
    .cl-adminheader-back {
        left: 0;
    }
    .cl-adminheader-right {
        right: 0;
    }
    .cl-adminheader-button:hover {
        background-color: transparent;
        color: var(--text-color);
    }
    #nav-list {
        padding: 0;
        padding-bottom: 10px;
    }
    #nav-list .cl-adminheader-button {
        width: 45px;
        height: 45px;
        margin: 0 10px;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px) brightness(0.8);
        -webkit-backdrop-filter: blur(10px) brightness(0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 600px) {
    .view-destination-item-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    }

    .view-destination-item:hover .icon-card {
        border-radius: 35px;
    }
    .icon-card {
        height: 120px;
        border-radius: 25px;
    }

    .icon-card-label {
        font-size: 14px;
    }

    .icon-card i {
        font-size: 80px;
    }

    .icon-card img {
        width: 95px;
        max-height: calc(100% - 20px);
    }
}

@media (prefers-color-scheme: dark) {
    main {
        scrollbar-color: #1b1b1c #303032;
    }
    .table-container {
        scrollbar-color: #000000 #303032;
    }
}
