/* responsive tables after .is-responsive */

@media(max-width: 679px)
{
	table.is-responsive td, table.is-responsive th
	{
		background: white;
		background-color: white;
		padding: 0.4rem;
		box-shadow: none;
		font-size: 13px;
		border-color: #ececec;
	}
	
	table.is-responsive tr
	{
		background: white;
		background-color: white;
		box-shadow: none;
	}
	
	table.is-responsive tr:last-child td, table.is-responsive tr:last-child th
	{
		padding-bottom: 20px;
        border-color: #d3d3d3 !important;
        border-bottom-width: 3px !important;
	}
	
	table.is-responsive tr:first-child td, table.is-responsive tr:first-child th
	{
		padding-top: 20px;
	}
}

/* end responsive tables */


.input-has-error
{
	border-color: var(--bs-form-invalid-border-color);
}

label.required
{
	position:relative;
}

label.required:after
{
	content: "*";
	position:absolute;
	color:red;
	top:0px;
}


.avatar-image
{
	border: thin solid #ececec;
    border-radius: 100%;
    padding: 2px;
    width: 40px;
    height: 40px;
}

.avatar-image img
{
	max-width:100%;
	width:100%;
}

.choices__inner
{
	padding-top: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 8px !important;
    background: #ffffff !important;
    border-color: #dee2e6 !important;
}

.dropzone.dz-clickable
{
	display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #237d9d;
    background: #f8f8f8;
    border-radius: 3px;
    overflow: auto;
}

.dropzone.dz-clickable:hover
{
    background: #f2f2f2;
}

.galery-image
{
	display: inline-block;
    width: 100%;
    padding: 1px;
    border: thin solid #ececec;
    border-radius: 2px;
    overflow: hidden;
    box-sizing: border-box;
    background: #f8f8f8;
}

.masonry-grid {
	column-count: 8; /* Number of columns */
	column-gap: 10px; /* Gap between columns */
}

.masonry-item {
	break-inside: avoid; /* Prevent breaking images inside columns */
	margin-bottom: 16px; /* Gap between images */
}

.masonry-item img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

@media (max-width: 1024px) {
	.masonry-grid {
		column-count: 4; /* Fewer columns for smaller screens */
	}
}

@media (max-width: 768px) {
	.masonry-grid {
		column-count: 3; /* Fewer columns for smaller screens */
	}
}

@media (max-width: 576px) {
	.masonry-grid {
		column-count: 2; /* Single column for very small screens */
	}
}

.masonry-item img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}



.translate-item
{
	border-top: thin solid transparent;
	border-left: thin solid transparent;
	border-right: thin solid transparent;
	border-bottom: thin dashed #ececec;
	display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.translate-item  svg
{
	display:none;
}


.translate-item:hover
{
	border: thin dashed #ececec;
	border-radius: 4px;
    padding: 0px 3px;
}

.translate-item:hover svg
{
	cursor:pointer;
	display:inline-block;
	margin-right: 0px;
    margin-left: 5px;
    width: 12px;
    height: 12px;
}

.input-group-text img
{
	    max-width: 25px;
}

.single-image-uploader {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 6px;
}

.single-image-upload-controls
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}


.status-d td, .status-d td a, .status-d td span
{
	color:gray;
}

.status-d .form-check-input:checked {
    background-color: #d7d7d7;
    border-color: #c4c4c4;
}

.form-label
{
	font-weight: 600;
}


.sortable-image
{
	border: thin solid #ececec;
    background: white;
    cursor: grab;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 1px 1px 11px -3px #000000a3;
    width: 150px;
    height:150px;
}

.ui-sortable-placeholder
{
	background-color: #f0f0f0;
    border: 2px dashed #ccc;
    width: 150px;
    height: 150px;
}

.edit-on-hover:not(:hover) input[type="text"], .edit-on-hover:not(:hover) input[type="number"]
{
	border: 0px;
    background: #f5f5f5;
}

.edit-on-hover input[type="text"], .edit-on-hover input[type="number"]
{
	    transition: none;
}

.delete-image
{
	position: absolute;
    width: 100%;
    bottom: 0px;
    /* text-align: center; */
    font-size: 11px;
    background: #0000009c;
    color: #ff4a4a;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    padding-bottom: 3px;
    text-decoration: none !important;
}

.image-control:hover .delete-image
{
	display:flex;
}
.delete-image svg
{
	width: 14px;
    height: 14px;
}

.delete-image:hover
{	
	font-size: 13px;
}	


.choices__input
{
	background-color:white !important;
}	

.choices__list--multiple .choices__item
{
	border-radius: 5px !important;
	background-color: #3b7ddd !important;
    border: 1px solid #2e6dc8 !important;
}

.choices__list--single
{
   height: 32px !important;
	line-height: 32px;
	padding:0px
	!important;
}

.choices__inner
{
	padding-left: .85rem !important;
	padding-right:.85rem !important;
}	



#calendar_loader {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3; /* Light gray */
    border-top: 6px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto; /* Center horizontally if needed */
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.calendar-loading
{
    display: flex;
    align-items: center;
    justify-content: center;
}	

.form-switch .form-check-input
{
	width: 2.5em;
	height: 1.5em;
}


.loading-spinner
{
	width: 32px;
	height: 32px;
	border: 4px solid #ccc;
	border-top: 4px solid #333;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: auto;
}

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

.application-selector
{
	
}

tr.tr-checked
{
	    outline: 1px solid #8fd3ffcf;
	    background: #8fd3ff36 !important;
}


.select2-results__option.select2-results__option--selectable
{
	font-size: 12px;
}

.btn
{
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 1rem;
	border: none;
	border-radius: 0.45rem;
	font-weight: 500;
	text-transform: capitalize;
	letter-spacing: 0.3px;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	height:35px;

	i
	{
		font-size: 1rem;
		transition: transform 0.25s ease;
	}

	&:hover i
	{
		transform: scale(1.2);
	}

	&:focus,
	&:active
	{
		outline: none;
		box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
		transform: translateY(1px);
	}

	&:disabled
	{
		opacity: 0.65;
		pointer-events: none;
	}
}

.btn-icon
{
	gap: 0.4rem;
}

// Color variants
$btn-colors: 
(
	primary: #0d6efd,
	secondary: #6c757d,
	success: #198754,
	danger: #dc3545,
	warning: #ffc107,
	info: #0dcaf0
);

@each $name, $color in $btn-colors
{
	.btn-#{$name}
	{
		background: linear-gradient(145deg, lighten($color, 6%), darken($color, 4%));
		color: #fff;
		box-shadow: 0 4px 10px rgba($color, 0.3);

		&:hover
		{
			background: linear-gradient(145deg, lighten($color, 10%), darken($color, 10%));
			box-shadow: 0 6px 14px rgba($color, 0.4);
		}

		&:active
		{
			background: darken($color, 12%);
			box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
			transform: scale(0.97);
		}

		&:focus
		{
			box-shadow: 0 0 0 3px rgba($color, 0.35);
		}
	}
}

.sidebar-link i, .sidebar-link svg, a.sidebar-link i, a.sidebar-link svg {
    color: rgba(233, 236, 239, .5);
    margin-right: .35rem;
}