/*
* 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 to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !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;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* 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;
}

.bg-label-primary{
  background-color: #0050944a !important;
}

html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item.open > .menu-link, .layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item.open > .menu-link, html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item .menu-link:not(.active):hover, .layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item .menu-link:not(.active):hover{
  background-color: #0050944a !important;
}

.note-item+.note-item {
            margin-top: 0.75rem;
        }

        .note-card-simple {
            background: #fff;
            border: 1px solid rgba(120, 120, 120, 0.12);
            border-radius: 0.75rem;
            padding: 0.85rem 1rem;
        }

        .note-card-simple .btn {
            min-width: 38px;
            height: 38px;
            border-radius: 0.65rem;
            flex-shrink: 0;
        }

        .min-w-0 {
            min-width: 0;
        }

        .task-avatar {
            width: 58px;
            height: 58px;
            background-color: white;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .user-avatar {
            border-radius: 50%;
            overflow: hidden;
            border: 1px solid rgba(120, 120, 120, 0.12);
            background: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .user-avatar-md {
            width: 25px;
            height: 25px;
        }

        .task-description {
            line-height: 1.7;
        }

        .task-description p:last-child {
            margin-bottom: 0;
        }

        .note-item {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.35s ease;
        }

        .note-item+.note-item {
            margin-top: 1rem;
        }

        .note-item.note-item-new {
            opacity: 0;
            transform: translateY(-12px);
        }

        .note-item.note-item-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .note-item.note-item-removing {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }

        .note-card {
            position: relative;
            background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
            border: 1px solid rgba(105, 108, 255, 0.10);
            border-radius: 1rem;
            padding: 1rem;
            box-shadow: 0 4px 18px rgba(67, 89, 113, 0.07);
            transition: all 0.2s ease;
        }

        .note-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(67, 89, 113, 0.12);
            border-color: rgba(105, 108, 255, 0.18);
        }

        .note-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.9rem;
        }

        .note-avatar {
            box-shadow: 0 2px 8px rgba(67, 89, 113, 0.08);
        }

        .note-author {
            font-size: 0.95rem;
        }

        .note-date {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .note-message {
            position: relative;
            line-height: 1.7;
            color: #566a7f;
            white-space: pre-wrap;
            word-break: break-word;
            background: rgba(105, 108, 255, 0.04);
            border: 1px solid rgba(105, 108, 255, 0.08);
            border-radius: 0.85rem;
            padding: 0.9rem 1rem;
        }

        .note-empty-state {
            border: 1px dashed rgba(120, 120, 120, 0.2);
            border-radius: 1rem;
            padding: 2rem 1rem;
            text-align: center;
            background: #fff;
        }

        .note-empty-state-icon {
            width: 54px;
            height: 54px;
            margin: 0 auto 0.75rem;
            border-radius: 50%;
            background: rgba(105, 108, 255, 0.08);
            color: #696cff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .btn-icon {
            width: 34px;
            height: 34px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.65rem;
        }

        .attachment-card {
            transition: all 0.2s ease;
        }

        .attachment-card:hover {
            transform: translateY(-1px);
        }

        .attachment-icon {
            width: 42px;
            height: 42px;
            border-radius: 0.75rem;
            background: rgba(105, 108, 255, 0.08);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .delete-note-preview {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem;
            border-radius: 0.9rem;
            background: rgba(255, 62, 29, 0.04);
            border: 1px solid rgba(255, 62, 29, 0.10);
        }

        .delete-note-preview-icon {
            width: 44px;
            height: 44px;
            border-radius: 0.8rem;
            background: rgba(255, 62, 29, 0.10);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }

        .min-w-0 {
            min-width: 0;
        }

        .activity-item+.activity-item {
            margin-top: 0.85rem;
        }

        .activity-icon-note {
            background: rgba(105, 108, 255, 0.08);
            color: #696cff;
        }


        .activity-log-icon {
            width: 40px;
            height: 40px;
            border-radius: 0.75rem;
            background: rgba(40, 199, 111, 0.10);
            color: #28c76f;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.1rem;
        }

        .activity-type-badge {
            position: absolute;
            right: -4px;
            bottom: -4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            box-shadow: 0 2px 6px rgba(67, 89, 113, 0.15);
        }

        .activity-icon-note {
            background: rgba(105, 108, 255, 0.12);
            color: #696cff;
        }

        .activity-log-icon-sm {
            background: rgba(40, 199, 111, 0.12);
            color: #28c76f;
        }

        .activity-type-icon {
            width: 40px;
            height: 40px;
            border-radius: 0.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.1rem;
        }

        .activity-type-icon-note {
            background: rgba(105, 108, 255, 0.08);
            color: #696cff;
        }

        .activity-type-icon-log {
            background: rgba(40, 199, 111, 0.10);
            color: #28c76f;
        }

        .activity-message {
    font-size: 0.95rem;
    font-weight: 600;
    color: #566a7f;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.activity-meta {
    font-size: 0.78rem;
    color: #98a3b3;
    line-height: 1.2;
}

.activity-meta-avatar {
    width: 22px;
    height: 22px;
}
.activity-type-icon-created {
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
}

.activity-type-icon-updated {
    background: rgba(255, 159, 67, 0.12);
    color: #ff9f43;
}

 .quill-wrapper .ql-editor {
            min-height: 220px;
        }

        .ql-toolbar.ql-snow {
            border-radius: 6px 6px 0 0;
            border: 1px solid #d9dee3 !important;
        }

        .ql-container {
            border-radius: 0 0 6px 6px;
            border: 1px solid #d9dee3 !important;
        }

        .quill-wrapper:focus-within .ql-toolbar.ql-snow,
        .quill-wrapper:focus-within .ql-container.ql-snow {
            border-color: var(--main-color) !important;
        }
