:root {
  --color-highlight: #0074e5;
  --color-highlight-transparent: #0074e533;
  --color-line: #0000001a;
  --color-background-primary: #f8f9fa;
  --color-background-primary-transparent: #ffffffdd;
  --color-disabled: #cccccc;
  --color-hover: #999999;
  --color-warning: rgba(255, 0, 0, 0.048);
}

body {
    background-color: var(--color-background-primary);
    font-size: 16px;
    font-family: system-ui, sans-serif;
    color: #333333;
}

.card {
    background-color: var(--color-background-primary-transparent);
    border-radius: 0%;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
}

.calendar .card {
    border-bottom: solid 1px var(--color-line);
}

.rtl {
    direction: rtl;
    font-family: "Beiruti", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.2rem;
    display: inline-block;
}

a {
  color: var(--color-highlight);
  text-decoration: none !important;
}

a:hover {
    color: #333333;
}

.capitalise {
  text-transform: capitalize;
}

.offcanvas-title {
    font-size: 1.1rem;
}

.bottom-nav img.logo {
    width: 21px;
    height: 21px;
}

.bottom-nav .material-symbols-outlined {
    font-size: 18px !important;
    padding-top: 7px;
    font-weight: normal;
    color: #666666 !important; 
}

.bottom-nav .task-count {
    font-size: 9px;
    font-weight: bold;
}

.text-highlight {
    color: var(--color-highlight);
}

.bottom-nav {
    --bs-navbar-padding-x: 0px;
    --bs-navbar-padding-y: 0px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);

}

.card {
    --bs-card-border-color: var(--color-line);
}

.bottom-nav a.nav-link {
    margin: 0px auto;
    text-align: center;
    padding: 0px;
    transition: all 0.2s ease-in-out;
    flex: 1;
}

.bottom-nav a.nav-link.active .material-symbols-outlined {
    color: var(--color-highlight) !important;
}

.bottom-nav a:not(:last-child) {
    border-right: 1px solid var(--color-line);
}

#command-box {
    position: fixed;
    bottom: 32px;
    z-index: 1030;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.form-control:focus {
    border-color: var(--color-highlight);
    box-shadow: none;
}

textarea.autogrow {
    overflow-y: hidden;   /* no scrollbars */
    resize: none;         /* optional: disable drag resize */
    min-height: 60px;     /* adjust to your taste */
}

.form-bottom-transparent {
  height: 18px;
  background: var(--color-background-primary);
}

.transparent {
    background: linear-gradient(to top, var(--color-background-primary), rgba(255, 0, 0, 0));
}

#command-form-top {
    background-color: var(--color-background-primary);
}

.home-page main {
    padding-bottom: 140px !important;
}

.offcanvas {
    background-color: var(--color-background-primary);
}

.list-group {
    --bs-list-group-bg: transparent;
}

.bg-highlight {
    background-color: var(--color-highlight);
}

.run {
    font-size: 27px !important;
    z-index: 99;
}

.material-symbols-outlined {
    -webkit-touch-callout: none !important;
}

.material-symbols-outlined {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    pointer-events: auto !important;
}

.importance .material-symbols-outlined, .status .material-symbols-outlined, .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 14;
    font-size: 18px;
    vertical-align: text-bottom;
}

button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: none;
    background-color: transparent;
}

.disabled {
    color: var(--color-disabled) !important;
}

.emergency_heat, .red {
    color: var(--bs-red);
}

.e911_emergency, .orange {
    color: var(--bs-orange);
}

.green {
    color: var(--bs-teal);
}

.small.detail-row, .card-description, .task-notes {
    padding-left: calc(70px + 1.2rem);
}

.project-notes {
    padding-left: 1rem;
}

.card-tr {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;          /* space between ID and title */
}

.card-id {
    white-space: nowrap;  /* ID never wraps */
    font-weight: bold;
    min-width: 70px;
}

.card-title {
    flex: 1;              /* take remaining width */
    word-break: break-word;
    font-weight: bold;
}


.cmd-result-box {
    border-radius: 0px;
    background: #f8f9fa;
    position: relative !important;
    padding: 1rem;
    bottom: -18px;
}

.cmd-result-box p {
    padding: 0px;
    margin: 0px
}

.cmd-close-btn {
  position: absolute;
  top: 12px;
  left: 0px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer !important;
  color: #333333 !important;
}

.text-success, .text-danger, .text-nothing {
    padding: 0px 1.2rem;
}

.grab {
    cursor: grab;
}

.btn:hover {
    color: #999999 !important;
}

.grab:hover, .grap:active, .blue, button.archived {
    color: var(--color-highlight);
}

.mihraban {
    animation: pulse 0.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50%      { opacity: 1; }
}

.mb-9 {
    margin-bottom: 9rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.mb-5 {
    margin-bottom: 5rem !important;
}

.full-width {
    width: 100%;
}

.anchored {
    background-color: var(--color-highlight-transparent);
}

.sleipnir {
    margin: 0px auto;
}
.sleipnir img {
    width: 99px;
}
span.hline {
    display: inline-block;
    height: 1px;
    width: 30%;
    background-color: var(--color-line);
    margin-top: 49.5px;
}
.left {
    float: left;
}
.right {
    float: right;
}

h1 {
  font-size: 2rem;
}

h2 {
    font-size: 1.4rem;
}

.fixed-bottom {
  bottom: 0.1px;
}

code {
    color: var(--color-highlight);
}

.list-group-item {
    border: var(--bs-list-group-border-width) solid var(--color-line);
}

.border-bottom {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--color-line) !important; 
}

.sidebar-section {
    border-bottom: solid 1px var(--color-highlight-transparent);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--color-highlight);
    --bs-btn-border-color: var(--color-highlight);
    --bs-btn-hover-bg: var(--color-hover);
    --bs-btn-hover-border-color: var(--color-line);
    --bs-btn-active-bg: var(--color-highlight);
    --bs-btn-active-border-color: var(--color-highlight);
    --bs-btn-disabled-bg: var(--color-highlight);
    --bs-btn-disabled-border-color: var(--color-highlight);
    --bs-btn-hover-color: #000 !important;
}

.user-setting .btn-primary:hover {
    color: #000 !important;
}

.sidebar-item:hover {
    background-color: var(--color-highlight-transparent);
    color: var(--color-highlight);
}

.project-status-archive {
    background-color: var(--color-warning);
    padding: 0.4rem 1rem;
}