/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
span.acc-btn {
    /* create a grid */
    display: grid;
    width:97%;
    /* create colums. 1fr means use available space */
    grid-template-columns: 60px 2fr max-content;
    align-items: center;
    grid-gap: 10px;
}


.span-col-2 {
    /* create a grid */
    display: grid;
    width: 97%;
    /* create colums. 1fr means use available space */
    grid-template-columns: 2fr 200px;
    align-items: center;
    grid-gap: 10px;
}


.btn-light-success {
    background: #eef9e8;
    color: #52c41a;
    border-color: #eef9e8;
}
.btn-light-warning {
    background: #fff7e8;
    color: #faad14;
    border-color: #fff7e8;
}
.btn-light-danger {
    background: #ffeded;
    color: #ff4d4f;
    border-color: #ffeded;
}






/*
* Side Menu Redesign
******************************************************************************/

/* Menu divider */
.menu-divider {
    height: 0;
    margin: 0.5rem 1.25rem;
    border-top: 1px solid var(--bs-body-color);
    opacity: 0.1;
}

/* Section header styling */
.menu-header {
    padding: 0.625rem 1.25rem 0.375rem;
}

.menu-header .menu-header-text {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(var(--bs-body-color-rgb), 0.45);
    text-transform: uppercase;
}

/* Active menu item - accent left border */
.menu-inner > .menu-item.active > .menu-link {
    position: relative;
}

.menu-inner > .menu-item.active > .menu-link::before {
    content: "";
    position: absolute;
    top: 0.375rem;
    bottom: 0.375rem;
    inset-inline-end: 0;
    width: 3px;
    border-radius: 100px;
    background: var(--bs-primary);
}

/* Hover effect for menu items */
.menu-inner > .menu-item > .menu-link {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    border-radius: 0.375rem;
    margin: 1px 0.5rem;
    padding: 0.5rem 0.75rem;
}

.menu-inner > .menu-item > .menu-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.menu-inner > .menu-item.active > .menu-link {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

.menu-inner > .menu-item.active > .menu-link .menu-icon {
    color: var(--bs-primary);
}

/* Sub-menu (collapsible children) */
.menu-sub {
    padding-inline-start: 0;
    list-style: none;
}

.menu-sub .menu-item .menu-link {
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    margin: 1px 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
}

.menu-sub .menu-item .menu-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.menu-sub .menu-item.active .menu-link {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-weight: 600;
}

/* Toggle arrow for sub-menus */
.menu-link.menu-toggle::after {
    content: "\e5c5";
    font-family: "boxicons";
    margin-inline-start: auto;
    transition: transform 0.25s ease;
}

.menu-item.open > .menu-link.menu-toggle::after {
    transform: rotate(90deg);
}

/* Brand area refinement */
.menu .app-brand.demo {
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
}

/* Scrollable menu fix */
.layout-menu {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Active state for sub-menu items */
.menu-sub .menu-item.active .menu-link::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    inset-inline-end: 0;
    width: 2px;
    border-radius: 100px;
    background: var(--bs-primary);
}

.menu-sub .menu-item .menu-link {
    position: relative;
}

/* Ticket details - kept for reference */
.ticket-details-sidebar {
    width: 100%;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ticket-status {
    margin-bottom: 20px;
    text-align: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

    .status-badge.active {
        background-color: #d4edda;
        color: #155724;
    }

.info-card-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.info-value {
    color: #333;
    text-align: left;
    flex-grow: 1;
}

.priority-critical .info-value {
    color: #dc3545;
    font-weight: bold;
}

.time-info, .category-info, .time-stamps {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.assigned-to .info-value {
    font-weight: bold;
    color: #0062cc;
}

a {
    color: #0062cc;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }