/* Custom Scrollbars */
.mt-account-root ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.mt-account-root ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.mt-account-root ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.mt-account-root ::-webkit-scrollbar-thumb:hover {
    background: var(--mt-accent, #6ca12b);
}

/* Inner scroll for content area */
.mt-content-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 80px); /* Adjust based on header */
}

/* Glassmorphism subtle effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.dark-glass-panel {
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Hover Animations */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(108, 161, 43, 0.15);
}

/* Active Sidebar Indicator */
.nav-item-active {
    background-color: rgba(108, 161, 43, 0.1);
    color: var(--mt-accent, #6ca12b) !important;
    border-right: 4px solid var(--mt-accent, #6ca12b);
}

/* Search Input Fix */
.mt-account-root input[type="text"].pr-12 { 
    padding-right: 3rem !important; 
}

/* Loading 3 Dots for Buttons */
.mt-btn-loading {
    color: transparent !important;
    position: relative !important;
    pointer-events: none !important;
    transition: none !important;
}
.mt-btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 6px;
    background-image: radial-gradient(circle closest-side, white 90%, transparent 100%);
    background-position: -200% 50%;
    background-size: 6px 6px;
    background-repeat: repeat-x;
    animation: mt-dots-loading 1s infinite linear;
}
@keyframes mt-dots-loading {
    0% { background-position: -200% 50%; }
    100% { background-position: 200% 50%; }
}

/* Button Global fixes to remove red borders */
.mt-account-root button {
    outline: none !important;
    border-color: transparent;
}
.mt-account-root button:focus {
    box-shadow: none !important;
}

/* Accordion Animation for Domains */
.mt-accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
}
.mt-accordion-content.expanded {
    max-height: 400px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Print Invoice Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #mt-order-modal-box, #mt-order-modal-box * {
        visibility: visible;
    }
    #mt-order-modal-box {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    .mt-no-print, #mt-order-modal-box button, #mt-order-modal-box .bg-slate-50.border-t {
        display: none !important;
    }
}