﻿.dxbl-drawer > .dxbl-drawer-panel .dxbl-drawer-footer {
    padding: 0.25rem
}

.main-layout {
    min-height: 100dvh;
}

.square-column {
    aspect-ratio: 1 / 1;
    width: 100dvh; /* Match height minus padding/spacing */
}

.carousel-autoplay .carousel-item {
    display: none;
    animation: fadeIn 0.5s;
}

    .carousel-autoplay .carousel-item.active {
        display: block;
    }

    .carousel-autoplay .carousel-item:nth-child(1).active {
        animation: slide1 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(2).active {
        animation: slide2 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(3).active {
        animation: slide3 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(4).active {
        animation: slide4 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(5).active {
        animation: slide5 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(6).active {
        animation: slide6 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(7).active {
        animation: slide7 24s infinite;
    }

    .carousel-autoplay .carousel-item:nth-child(8).active {
        animation: slide8 24s infinite;
    }

@keyframes slide1 {
    0%, 12.5% {
        opacity: 1;
    }

    12.51%, 100% {
        opacity: 0;
    }
}

@keyframes slide2 {
    0%, 12.5% {
        opacity: 0;
    }

    12.51%, 25% {
        opacity: 1;
    }

    25.01%, 100% {
        opacity: 0;
    }
}

@keyframes slide3 {
    0%, 25% {
        opacity: 0;
    }

    25.01%, 37.5% {
        opacity: 1;
    }

    37.51%, 100% {
        opacity: 0;
    }
}

@keyframes slide4 {
    0%, 37.5% {
        opacity: 0;
    }

    37.51%, 50% {
        opacity: 1;
    }

    50.01%, 100% {
        opacity: 0;
    }
}

@keyframes slide5 {
    0%, 50% {
        opacity: 0;
    }

    50.01%, 62.5% {
        opacity: 1;
    }

    62.51%, 100% {
        opacity: 0;
    }
}

@keyframes slide6 {
    0%, 62.5% {
        opacity: 0;
    }

    62.51%, 75% {
        opacity: 1;
    }

    75.01%, 100% {
        opacity: 0;
    }
}

@keyframes slide7 {
    0%, 75% {
        opacity: 0;
    }

    75.01%, 87.5% {
        opacity: 1;
    }

    87.51%, 100% {
        opacity: 0;
    }
}

@keyframes slide8 {
    0%, 87.5% {
        opacity: 0;
    }

    87.51%, 100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-autoplay .carousel-inner {
    position: relative;
}

.carousel-autoplay .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

    .carousel-autoplay .carousel-item:first-child {
        position: relative;
    }

.search-width {
    width: min(30rem, 25dvw);
}

.demo-drawer .dxbl-drawer-content {
    font-size: var(--dxbl-drawer-panel-font-size);
    line-height: var(--dxbl-drawer-panel-line-height);
    overflow: auto;
    padding-top: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-bottom: 0.25rem;
    height: 100%;
}

.demo-drawer:has(.demo-drawer-menu) {
    --dxbl-drawer-panel-body-padding-x: 0;
    --dxbl-drawer-panel-body-padding-y: 0;
}

.dxbl-menu.demo-drawer-menu {
    --dxbl-menu-top-left-border-radius: 0;
    --dxbl-menu-top-right-border-radius: 0;
    --dxbl-menu-bottom-left-border-radius: 0;
    --dxbl-menu-bottom-right-border-radius: 0;
}

.dxbl-grid .dxbl-grid-table .dxbl-grid-focused-row {
    background-color: YellowGreen !important;
}

.validation-errors {
    margin-bottom: -0.25rem;
}

.login-form-width {
    max-width: 25rem;
}

.dxbl-fl .dxbl-fl-group > .dxbl-group > .dxbl-group-body > .dxbl-group-body-content {
    padding: 0rem;
}

.custom-drop-zone {
    padding: 0 !important;
    border-style: dashed;
    border-width: 2px !important;
    height: 100%;
    min-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(183, 183, 183, 0.1);
}

    .custom-drop-zone.custom-drop-zone-hover {
        border-style: solid;
    }

    .custom-drop-zone svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .custom-drop-zone > *:not(UploadSelectButton) {
        pointer-events: none;
    }

.upload-validation-text {
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
}

.drop-file-icon {
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: #ADB5BD;
    width: 1.5rem;
    height: 1.5rem;
    -webkit-mask-image: var(--dxbl-icon-drop-file);
    mask-image: var(--dxbl-icon-drop-file);
}

.drop-file-label {
    font-weight: 500;
    font-size: 1rem;
}

/* ========================================
   File Upload Zone Styles
   ======================================== */

.file-upload-zone {
  border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-zone:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
    transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.file-upload-zone-hover {
    border-color: #0d6efd !important;
    border-style: solid !important;
    background: linear-gradient(135deg, #cfe2ff 0%, #e7f3ff 100%) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.2) !important;
}

.upload-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 0rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
  opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.upload-text {
    color: #495057;
}

.upload-text .fw-semibold {
    color: #212529;
font-size: 1.1rem;
}

.btn-upload {
    margin-top: 0.5rem;
 padding: 0.5rem 1.5rem !important;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ========================================
   Attachment List Styles
   ======================================== */

.attachment-list {
    padding-right: 0.25rem;
}

.attachment-item {
display: flex;
 align-items: center;
    gap: 0.75rem;
padding: 0.75rem;
    background: #ffffff;
border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.attachment-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
  font-size: 1.5rem;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.attachment-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.attachment-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.25rem 0.5rem !important;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.text-danger:hover {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ========================================
   File Upload Zone Styles - Compact Version
   ======================================== */

.file-upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
  flex-direction: column;
    justify-content: center;
}

.file-upload-zone:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.file-upload-zone-hover {
    border-color: #0d6efd !important;
    border-style: solid !important;
    background: linear-gradient(135deg, #cfe2ff 0%, #e7f3ff 100%) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

.upload-text {
    color: #495057;
    font-size: 0.75rem;
}

.upload-text .fw-semibold {
    color: #212529;
 font-size: 0.85rem;
}

.btn-upload {
    margin-top: 0.5rem;
    padding: 0.375rem 0.5rem !important;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.7rem;
}

/* ========================================
   Attachment List Styles - Compact Version
   ======================================== */

.attachment-list {
    height: 100%;
    overflow-y: auto;
}

.attachment-list h6 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.375rem;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #f8f9fa;
  border-color: #dee2e6;
    transform: translateX(2px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.attachment-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
border-radius: 6px;
    font-size: 1.25rem;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
  font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    line-height: 1.2;
}

.attachment-meta {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.125rem;
}

.attachment-actions {
    display: flex;
    gap: 0.125rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.25rem 0.375rem !important;
    font-size: 0.875rem !important;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn.text-danger:hover {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Compact layout container */
.attachment-container {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.upload-area {
    flex: 0 0 25%;
}

.list-area {
    flex: 1;
    min-width: 0;
}

/* ========================================
   File Type Icon Colors
   ======================================== */

.bi-file-earmark-image.text-primary {
    color: #0d6efd !important;
}

.bi-file-earmark-image.text-info {
    color: #0dcaf0 !important;
}

.bi-file-earmark-image.text-success {
 color: #198754 !important;
}

.bi-file-earmark-pdf.text-danger {
    color: #dc3545 !important;
}

.bi-file-earmark-word.text-primary {
    color: #2b579a !important;
}

.bi-file-earmark-excel.text-success {
    color: #217346 !important;
}

.bi-file-earmark-ppt.text-warning {
    color: #d24726 !important;
}

.bi-file-earmark-zip.text-secondary {
color: #6c757d !important;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .attachment-container {
        flex-direction: column;
    }

    .upload-area {
flex: 0 0 auto;
        height: 120px;
 }

    .list-area {
        flex: 1;
    }

    .file-upload-zone {
        padding: 0.5rem;
    }

    .upload-icon {
     font-size: 1.5rem;
    }
}

/* ========================================
   Timeline Styles - Compact Version
   ======================================== */

.timeline {
    position: relative;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 0.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 0.875rem;
}

.activity-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    display: inline-block;
    margin-right: 0.5rem;
}

.activity-user {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: normal;
}

.activity-time {
    font-size: 0.7rem;
 white-space: nowrap;
}

.activity-content {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.activity-change {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

.activity-change .old-value {
    color: #dc3545;
    text-decoration: line-through;
}

.activity-change .new-value {
    color: #198754;
    font-weight: 500;
}

/* Timeline connector line */
.timeline-item:not(:last-child)::before {
  content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: -0.5rem;
    width: 2px;
    background: #e9ecef;
}

.text-upload-bottom {
    font-size: 0.6rem;
    line-height: 1.2;
}

.card-body-attachment {
    height: 180px;
    overflow: hidden;
}

.ketergantungan {
    padding: 0.25rem;
}

.ketergantungan-text {
    font-size: 0.85rem;
    padding: 0.5rem;
}

.detail-height {
    height: 80vh;
}

.user-combo-box .dxbl-list-box-table-header-row {
    display: none;
}

.user-tab {
    height: 16rem !important;
}

/* ========================================
   WhatsApp Notification Status Badges
   ======================================== */

.notification-status {
    font-size: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-status .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notification-status .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.notification-status .badge i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
}

/* Badge color overrides for better visibility */
.notification-status .badge.bg-success {
    background-color: #198754 !important;
}

.notification-status .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.notification-status .badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Border highlight */
.notification-status.border-success {
    border-color: #25D366 !important; /* WhatsApp green */
    border-width: 3px !important;
}

/* Icon styling */
.notification-status .bi-whatsapp {
    font-size: 1rem;
}

/* Gap utility for badge spacing */
.gap-1 {
    gap: 0.25rem;
}

/* ========================================
   WhatsApp Notification Status Badges - Compact
   ======================================== */

.notification-status-compact {
    line-height: 1.2;
}

.notification-status-compact .badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.notification-status-compact .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: help;
}

.notification-status-compact .badge i {
    margin-right: 0.15rem;
}

/* Badge color overrides for better visibility */
.notification-status-compact .badge.bg-success {
    background-color: #198754 !important;
}

.notification-status-compact .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.notification-status-compact .badge.bg-danger {
    background-color: #dc3545 !important;
}

.dxbl-menu .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dxbl-scroll-viewer {
    --dxbl-scroll-viewer-hor-scroll-bar-height: 0.35rem;
    --dxbl-scroll-viewer-hor-scroll-bar-hover-height: 0.5rem;
    --dxbl-scroll-viewer-vert-scroll-bar-width: 0.35rem;
    --dxbl-scroll-viewer-vert-scroll-bar-hover-width: 0.5rem;
}

/* Scrollable container for popup content */
.user-profile-popup .popup-scroll-container {
    max-height: calc(90vh - 60px); /* Subtract header height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Compact avatar circle */
.user-profile-popup .avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0086ff 0%, #01437d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .user-profile-popup .avatar-circle i {
        font-size: 1.5rem;
    }

    .user-profile-popup .avatar-circle .avatar-initials {
        color: white;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

/* Compact avatar for member list */
.user-profile-popup .avatar-small {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-profile-popup .avatar-small i {
        font-size: 1.2rem;
    }

/* Compact gradient background */
.user-profile-popup .bg-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Compact tabs styling */
.user-profile-popup .compact-tabs .dxbl-tabs-nav-item {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Remove extra borders from list items */
.user-profile-popup .list-group-item {
    border-left: none;
    border-right: none;
}

    .user-profile-popup .list-group-item:first-child {
        border-top: none;
    }

    .user-profile-popup .list-group-item:last-child {
        border-bottom: none;
    }

/* Subtle hover effect for cards */
.user-profile-popup .card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .user-profile-popup .card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

/* Remove border from last member in list */
.user-profile-popup .border-bottom:last-child {
    border-bottom: none !important;
}

/* Compact card styling */
.user-profile-popup .card-body {
    font-size: 0.875rem;
}

/* Scrollbar styling for better UX */
.user-profile-popup .popup-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.user-profile-popup .popup-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.user-profile-popup .popup-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    .user-profile-popup .popup-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.dxbl-drawer-content {
    overflow: hidden !important;
}

/* ========================================
   Skeleton Loading Animation - Subtle
   ======================================== */

.skeleton-loading {
    position: relative;
}

.skeleton-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    pointer-events: none;
    animation: skeleton-pulse 1s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Smooth transition for notification badges - NO transform/translate */
.notification-status-compact .badge {
    transition: opacity 0.2s ease-in-out;
}

.notification-status-compact .badge.badge-entering {
    animation: badgeFadeIn 0.3s ease-out;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}