:root {
    --main-font: "Lorenzo Sans", sans-serif;
    --primary-color: #35C5EE;
    --secondary-color: #EE5E35;
    --light-bg: hsl(0, 0%, 100%);
    --white: #fff;
    --black: #000;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Base styles */
body { 
    height:100%; 
    font-family: var(--main-font);

}

.header {
    background-color: #35c5ee;
}

.btn-sign-up {
    background: #EE5E35!important;
}

.btn-sign-up:hover {
    background: #ffffff!important;
}

.brand-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;  /* Ensures aspect ratio is preserved */
}

.form-error-p {
    color: red;
}

html {
    background-color: #35c5ee!important;
    height:100%;
}

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

#message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Ensure it's above most content */
    pointer-events: none; /* Allows clicks to pass through if needed */
    padding: 10px;
}

#message-overlay .alert {
    pointer-events: auto; /* Make the alert interactive */
    margin: 0 auto;
    max-width: 600px;
}
/* -------------------------------- */


/* ------------ Icons ------------- */
.IconImg {
	width: 3rem;
}
/* -------------------------------- */


/* ------------- Links -------------- */
.a-Icon {
    font-size: 2rem;
}
/* -------------------------------- */


/* Logo styles. */
.bs-LogoDiv_Header {
	display: flex;
	flex: 1;
	height: 100px;
	align-items: center;
	justify-content: flex-start;
	padding: 0 1em 0;
}

.bs-LogoImg {
	max-height: 100px;
	padding: 7px 0 7px;
}
/* -------------------------------- */


/* Styles for hamburger button. */
.HamburgerButton {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
    border: none!important;
    outline: none;
}

.HamburgerButton:focus {
    box-shadow: none!important;
}

.navbar-toggler:focus {
	box-shadow: none;
}
/* -------------------------------- */

/* Styles for close button in side menu. */
.btn-close:hover{
	background-color: transparent;
	color: #000000;
	box-shadow: none;
}

/* Rule to make div with nav-items take 90% of 
   free space while of navbar on big screens.
   Logo takes the rest 10%.
*/
.SidebarDiv {
	flex: 90%;
}
/* -------------------------------- */


/* Styles for header and body of side menu. */
.SidebarHeaderDiv {
	background-color: #EE5E35;
	color: black;
    font-weight: bold;
}

.SidebarBodyDiv {
	padding: 0!important;
	background-color: white;
}
/* -------------------------------- */


/* Styles for nav-items. */
.NavItemLi {
    font-size: larger;
	background-color: #ffffff;
    padding: 0.75rem;
    align-content: center!important;
    border-radius: 2em;
    font-weight: 600;
}

.NavItemLi:hover {
	background-color: #35c5ee;
}

.NavItemLi:hover > a, .NavItemLi:hover > form > button{
    color: white!important;
}
/* -------------------------------- */


/* Styles for NavLinks. */
.NavLink, .NavLink:hover, .NavLink:focus, .NavLink:active {
	color: black;
}
/* -------------------------------- */


/* Buttons */
.base-btn {
    padding: 10px;
    background-color: #35C5EE;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
.base-btn:hover {
    background-color: #EE5E35;
}

.menu-logout-btn {
    border: none;
    font-weight: inherit;
    background: inherit;
}
/* -------------------------------- */


/* Links */
.btn-a {
    text-decoration: none;
    color: #ffffff;
}

.base-a {
    text-decoration: none;
}
/* -------------------------------- */



.logoutForm {
    margin: 0;
}


/* ---------- Utility bar --------- */
.utility-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 1rem;
}
/* -------------------------------- */


/* ------------- Table ------------ */
th, td {
    overflow: hidden;
    text-overflow: ellipsis;
    border-style: none;
}

td {
    padding-top: 1rem!important;
    padding-bottom: 1rem!important;
}

.th-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    white-space: nowrap;
}

thead > tr > th{
    background-color: #34c5ed!important;
    padding-top: 1rem!important;
    padding-bottom: 1rem!important;
    font-size: 1.1rem;
    color: white!important;
}
/* -------------------------------- */


/* -------- Sorting arrows -------- */
.sort-wrapper { /* Контейнер для стрелок (в правом углу) */
    display: flex;
    gap: 1px;
}

/* Оформление стрелок */
.sort-arrow { 
    text-decoration: none;
    color: gray; /* По умолчанию серый */
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

/* При наведении */
.sort-arrow:hover {
    color: #EE5E35;
}

/* Активная стрелка (выбранная сортировка) */
.sort-arrow.active {
    color: #EE5E35;
    font-weight: bold;
}
/* ---------------------------------- */


/* ------------ Dropdown ------------ */
.base-dropdown-ul {
    max-height: 200px;
    overflow-y: auto;
  }

.base-dropdown {
    outline: none;
}


.base-dropdown ul li a:hover {
    background: #f0f0f0;
}
/* ---------------------------------- */


/* ------------- Input -------------- */
.base-input{      
    border-radius: 20px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    padding: 10px;
    font-size: 16px;
}

.base-input:focus {
    outline: none;
    border-color: #35c5ee;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.base-input::placeholder {
    color: var(--placeholder-color, #888);
}
/* ---------------------------------- */


/* ---------- Inline Editor --------- */
/* Стили для контейнера редактора внутри ячейки */
.inline-editor {
    background-color: #fff;
    border: 1px solid #35c5ee;
    border-radius: 4px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.inline-editor input {
    border: none;
    outline: none;
    background: transparent;
    font-size: inherit;
    color: inherit;
    flex: 1;
}

.inline-editor button {
    background: transparent;
    border: none;
    color: #35c5ee;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.inline-editor button:hover {
    color: #EE5E35;
}
/* ---------------------------------- */

/* Dropdown */
.base-dropdown-item:active {
    background-color: var(--secondary-color);
    color: var(--white);
}
/* --- */


/* Logout button */
li.NavItemLi.nav-item:has(> form.logoutForm) {
    margin-left: 90%;
}
/* -------------- */


/* Style the special 'Select All' checkbox without removing IDs/classes */
.base-input-SelectAll {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  /* Checked state */
  .base-input-SelectAll:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  
  /* Checkmark (✓) imitation */
  .base-input-SelectAll:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
/* ----------------------------- */


.th-SelectAll {
    display: flex!important;
    align-items: center;
    gap: 0.5rem;
  }

@media (max-width: 991.98px) {

	.NavItemLi {
		border-radius: 0;
	}
    /* Logout button */
    li.NavItemLi.nav-item:has(> form.logoutForm) {
        margin-left: 0;
    }
    /* -------------- */
}

