:root {
    --primary-dark: #0e0e0e;
    --secondary-dark: #161616;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --error-red: #ef4444;
    --border-subtle: rgba(148, 163, 184, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}


*::-webkit-scrollbar {
    width: 4px !important;
    height: 3px;
}

*::-webkit-scrollbar-track {
    background: transparent;
    margin: 3px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #2a2a2a, #1b1b1bc9) !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

*:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
    width: 5px;
}

*::-webkit-scrollbar-thumb:active {
    background: var(--accent-blue);
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px !important;
    height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    margin: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

.custom-scrollbar::-webkit-scrollbar-thumb:active {
    background: var(--accent-blue);
}

.tool-button{
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

.hidden-mobile {
    display: none !important;
}


@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.new-email-animation {
    animation: slideInFromTop 0.3s ease-out forwards;
    will-change: transform, opacity;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes fadeScale {
    from {
        transform: translate3d(0, 0, 0) scale(0.90);
        opacity: 0;
        filter: saturate(1.5) brightness(0.2) blur(20px);
    }

    to {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: none;
    }
}

@keyframes shimmer {
    0% {
        transform: translate3d(-150%, 0, 0);
    }
    100% {
        transform: translate3d(150%, 0, 0);
    }
}

._shadow {
    position: relative
}

._shadow:before {
    content: "";
    -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0), rgb(0, 0, 0));
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0), #000);
    height: 16px;
    position: absolute;
    top: 100%;
    right: 10px;
    left: 0;
    width: 100%;
    z-index: 2;
    opacity: 1;
    background:rgb(17 17 17) !important;
    pointer-events: none;
    transition: opacity .1s ease;
}

._shadow_sm {
    position: relative
}

._shadow_sm:before {
    content: "";
    -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0), rgb(0 0 0 / 41%));
    mask-image: linear-gradient(0deg, rgb(255 255 255 / 0%), #000000);
    height: 56px;
    position: absolute;
    top: 100%;
    right: 10px;
    left: 0;
    backdrop-filter: brightness(0.5);
    width: 100%;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    transition: opacity .1sease;
    border-radius: 12px 12px 0px 0px;
}
.animate-slide-in {
    animation: slideInRight 0.3s ease-out forwards;
}

.animate-fade-scale {
    animation: fadeScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity, filter;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.skeleton-loading {
    background: linear-gradient(90deg,
            var(--secondary-dark) 25%,
            rgba(28, 28, 28, 0.1) 50%,
            var(--secondary-dark) 75%);
    background-size: 1000px 100%;
    will-change: background-position;
    contain: paint style;
}


.skeleton-loading::after {
    background: linear-gradient(90deg,
            var(--secondary-dark) 25%,
            rgba(28, 28, 28, 0.1) 50%,
            var(--secondary-dark) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}


.email-grid {
    display: grid;
    grid-template-columns: 280px 1fr 0px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
}


.email-loading-container {
    background: transparent;
}

.email-skeleton {
    position: relative;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -50%;
    transform: skewX(-25deg);
    background-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 60%
    );
    animation: shimmer 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer {
    0% {
        transform: translate3d(-150%, 0, 0) skewX(-25deg);
    }
    50%, 100% {
        transform: translate3d(150%, 0, 0) skewX(-25deg);
    }
}

.avatar-skeleton {
    width: 32px;
    height: 32px;
    border-radius: 99px;
    background: rgb(255 255 255 / 14%);
    position: relative;
}

.line-skeleton {
    height: 10px;
    border-radius: 3px;
    background: rgb(255 255 255 / 42%);
    margin-bottom: 6px;
    position: relative;
    transform-origin: left;
    animation: expand 2s ease-in-out infinite;
}

@keyframes expand {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

.skeleton-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.skeleton-content {
    flex: 1;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.email-header-controls {
    width: 100%;
    min-height: 44px;
}

.ms-Checkbox input:checked + label {
    background-color: rgb(59, 130, 246);
    border-color: rgb(59, 130, 246);
}

.ms-Checkbox input:checked + label .check-mark {
    display: block;
    color: white;
}

.folder-title-section {
    position: relative;
}

.folder-title-section h1 {
    display: flex;
    align-items: center;
    font-weight: 600;
}
.dialog-over{
    main.page{
        border-radius: 15px 0px 0px 15px !important;
        margin-right: 0rem !important;
    }
}

.email-group {
    margin-bottom: 1px;
}

#email-list-sidebar {
    transition: width 0.3s ease-in-out;
}

#email-list-sidebar.collapsed {
    overflow: hidden;
    border-right: none;
}

#toggle-email-list {
    transition: transform 0.3s ease;
}

#email-list-sidebar.collapsed + div {
    flex-grow: 1;
}

#toggle-email-list.floating-toggle {
    position: fixed;
    top: 93px;
    z-index: 100;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.email-group-header {
    user-select: none;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.email-group-header:hover {
    background-color: rgba(30, 41, 59, 0.7);
}

.email-group-header svg {
    transition: transform 0.2s ease;
}

.email-group-header .border-b {
    margin: 0 8px;
    opacity: 0.5;
}

.bg-slate-700-ss {
    --tw-bg-opacity: 1;
    background-color: rgb(29 32 36) !important;
}

.email-group-content {
    transition: all 0.3s ease;
}

.email-group-content.hidden {
    display: none;
}

.email-group-header span {
    background: linear-gradient(to right bottom, rgb(255, 255, 255) 30%, rgba(255, 255, 255, .5));
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: unset;
    font-weight: 600;
    min-width: 100px;
}

#root{        
    --curveAccelerateMax: cubic-bezier(0.9,0.1,1,0.2);
    --curveAccelerateMid: cubic-bezier(1,0,1,1);
    --curveAccelerateMin: cubic-bezier(0.8,0,0.78,1);
    --curveDecelerateMax: cubic-bezier(0.1,0.9,0.2,1);
    --curveDecelerateMid: cubic-bezier(0,0,0,1);
    --curveDecelerateMin: cubic-bezier(0.33,0,0.1,1);
    --curveEasyEaseMax: cubic-bezier(0.8,0,0.2,1);
    --curveEasyEase: cubic-bezier(0.33,0,0.67,1); }

.favorite-folder-btn:hover svg {
    fill: rgb(234, 179, 8);
    color: rgb(234, 179, 8);
}

.view-controls {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.view-controls button {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -ms-flex-item-align: end;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-box-flex: 0;
    align-items: center;
    align-self: flex-end;
    margin: 0;
    min-width: auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    justify-content: center;
    text-decoration-line: none;
    vertical-align: middle;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    transition-duration: 300ms;
    transition-property: all;
    transition-timing-function: var(--curveEasyEase);
}
.view-controls button[aria-selected="true"] {
}

.email-actions button {
    transition: all 0.2s ease;
}

.email-actions button:hover {
    transform: scale(1.05);
}

.email-group-header {
    padding-left: 40px;
    margin-bottom: 0;
    overflow: hidden;
    padding-right: 32px;
    display: flex;
    align-items: center;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skeleton-meta {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    opacity: 0.7;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

body{
    overflow: hidden !important;
}


.main-page::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgb(0 0 0 / 25%), rgba(10, 10, 15, 0.5), rgb(5 5 10 / 25%));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

main.page {
    border-radius: 15px !important;
    box-shadow: 0 0 15px rgb(18 18 18 / 18%), inset 0 0 15px rgba(255, 255, 255, 0.02), 0px -8px 12px rgb(215 140 140 / 0%), -8px 2px 12px rgb(0 0 0 / 8%), 0px 8px 12px rgb(0 0 0 / 13%), 8px 2px 12px rgb(0 0 0 / 11%), 0 0 25px rgb(255 223 223 / 0%), 0px -1px 0px rgba(255, 255, 255, 0.04), 10px 10px 25px rgb(0 0 0 / 13%), -10px -10px 25px rgba(0, 0, 0, 0.15);
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67) !important;
    overflow: hidden;
    background-image: linear-gradient(to bottom right, rgb(10 10 10 / 26%), rgb(15 15 15 / 13%));
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
}

main.page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 80%, rgb(0 26 62 / 12%));
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    main{
        margin: 0px !important;
        border-radius: 0px !important;
    }

    .email-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .sidebar{
        display: none !important;
    }
    
    #email-view{
        display: none;
    }

    #overlay-email{
        display: none;
    }

    #search-bar{

        button.group.relative.w-full.bg-slate-800\/50.text-slate-100.pl-10.pr-4.py-2\.5.rounded-lg.hover\:bg-slate-800\/70.active\:scale-\[0\.99\].focus\:outline-none.focus\:ring-2.focus\:ring-blue-500\/50.transition-all.duration-300.ease-in-out {
            width: 232px;
            height: 43px;
            margin-left: 12px;
            span.block.text-left.text-slate-500 {
                display: none;
            }
        }

        svg.w-5.h-5.text-slate-400.absolute.left-3.top-3 {
            margin-left: 12px;
        }
    }
}

.scroll-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.scroll-container > * {
    transition: all 0.3s ease;
}

.scroll-container > *:not(:first-child):not(:last-child) {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.from-slate-900 {
    --tw-gradient-from: rgb(0 0 0 / 41%) !important;
}

.to-transparent {
    --tw-gradient-to: transparent !important;
}

.via-slate-900\/80 {
    --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), #0000002b var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.border-gray-800 {
    --tw-border-opacity: 1;
    border-color: rgb(58 58 58 / 51%);
}


.bg-slate-900 {
    --tw-bg-opacity: 1;
    background-color: rgb(17 17 17) !important;
}

.bg-slate-800 {
    --tw-bg-opacity: 1;
    background-color: rgb(25 25 25) !important;
}

.bg-big-main {
    --tw-bg-opacity: 1;
    background-color: rgb(6 14 19) !important
}

.border-slate-700 {
    --tw-border-opacity: 1;
    border-color: rgb(56 56 56) !important;
}

.bg-slate-700\/50 {
    background-color: rgb(20 20 20 / 50%) !important;
}

.border-slate-800 {
    --tw-border-opacity: 1;
    border-color: rgb(56 56 56 / 71%) !important;
}

.compose-btn {
    position: relative;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.74rem;
    background: linear-gradient(135deg, #4F46E5, #6366F1, #7C3AED, #8B5CF6);
    background-size: 300% 300%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 8s ease infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    contain: layout style paint;
}

@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.compose-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.7s;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) }
    100% { transform: translateX(200%) }
}

.compose-btn .btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.compose-btn:hover {
    transform: translate3d(0, -2px, 0) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(76, 29, 149, 0.25), 
              0 10px 10px -5px rgba(76, 29, 149, 0.1),
              0 0 20px rgba(124, 58, 237, 0.6),
              inset 0 0 20px rgba(255,255,255,0.1);
}

.compose-btn:active {
    transform: translate3d(0, 1px, 0) scale(0.98);
}

.compose-btn svg {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.compose-btn:hover svg {
    transform: rotate(90deg) scale(1.2);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

.preview-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: white;
}
.preview-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.preview-content p {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.compose-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.74rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compose-btn:hover::after {
    opacity: 1;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mix-blend-lighten {
    mix-blend-mode: lighten;
}

.slide-in {
    animation: sophisticatedEntry 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    backface-visibility: hidden;
}

@keyframes sophisticatedEntry {
    0% {
        transform: translate3d(0, 30%, -100px) rotateX(20deg);
        opacity: 0;
        filter: blur(8px);
    }

    40% {
        opacity: 0.6;
        filter: blur(4px);
    }

    100% {
        transform: translate3d(0, 0, 0) rotateX(0);
        opacity: 1;
    }
}

@keyframes slideIn-BIG {
    0% {
        transform: translate3d(0, 100%, -100px) rotateX(20deg);
        filter: blur(8px);
    }

    40% {
        filter: blur(4px);
    }

    100% {
        transform: translate3d(0, 0, 0) rotateX(0);
        opacity: 1;
    }
}


.slide-in-big {
    animation: slideIn-BIG 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    backface-visibility: hidden;
    will-change: transform, opacity;
    contain: layout style paint;
}

.action-cards {
    z-index: 100;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    gap: 2rem;
    pointer-events: none;
}



.action-card {
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card.delete {
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.2) 0%,
            rgba(153, 27, 27, 0.3) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.action-card.archive {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.2) 0%,
            rgba(29, 78, 216, 0.3) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.action-card svg {
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.action-card span {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.action-card.delete svg {
    color: rgb(239, 68, 68);
}

.action-card.archive svg {
    color: rgb(59, 130, 246);
}

.action-cards.show {
    display: flex;
}

.action-cards.active .action-card {
    transform: scale(1.1) translateY(-10px);
}

.action-cards.active .action-card::before {
    opacity: 1;
}

.action-cards.active .action-card svg {
    transform: scale(1.2);
}

.action-cards.active .action-card span {
    transform: translateY(0);
    opacity: 1;
}


.action-cards.show .action-card {
    animation: cardPulse 2s infinite;
    will-change: transform, opacity;
    contain: layout style paint;
    transform: translateZ(0);
}

.email-item {
    cursor: move;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    will-change: transform, opacity, box-shadow;
    contain: layout style paint;
}

.email-item:hover {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.email-item.dragging {
    opacity: 0.7;
    transform: scale(1.02) rotate(-1deg);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.email-item.dragging::before {
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(0);
}

.sidebar {
    width: 280px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar.collapsed {
    z-index: 100;
    width: 80px;
}

.email-grid.collapsed {
    display: grid;
    grid-template-columns: 80px 1fr 0px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
}
.sidebar.collapsed .hide-when-collapsed {
    display: none;
}

.sidebar.collapsed .flex.items-center.mb-4.m-4.justify-between {
    justify-content: center;
    justify-items: center;
}

.sidebar.collapsed .sidebar-item {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .compose-btn {
    padding: 0.75rem;
}

.sidebar.collapsed .compose-btn span {
    display: none;
}

.sidebar:hover .sidebar-toggle {
    opacity: 1;
    scale: 1;
}

.sidebar-toggle {
    position: absolute;
    opacity: 0;
    scale: 0.8;
    right: 13px;
    top: 40px;
    background: #131313;
    border: 2px solid #282828;
    border-radius: 9px;
    width: 21px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: #121212;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar.collapsed .sidebar-toggle {
    right: 15px;
    top: 30px;
    border-radius: 16px;
    z-index: 10000;
    width: 50px;
    height: 50px;
}

.sidebar.collapsed .sidebar-toggle:hover {
    background: #191919;
}

#sidebar-app-icon{
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed:hover #sidebar-app-icon{
    transform: scale(0.9);
    opacity: 0;
}

.sidebar-toggle svg {
    transition: transform 0.3s ease;
}

.sidebar-toggle:hover svg {
    transform: translateX(-1px);
}

.sidebar.collapsed .sidebar-toggle:hover svg {
    transform: translateX(1px);
}



.bg-border-300 {
    background-color: hsl(48deg 3% 36% / 25%);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #1e293b;
}

.status-online {
    background-color: #22c55e;
}

.sidebar.collapsed .count-badge {
    display: none;
}

.sidebar.collapsed #aside-footer .flex {
    flex-direction: column;
    justify-content: center;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
}

.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .section-title {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.fade-in:not(class="hidden") {
    animation: fadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeOut 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeOUt {
    to {
        opacity: 0;
    }

    from {
        opacity: 1;
    }
}

.sidebar *,
.sidebar-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-over {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    contain: layout style paint;

    
}

.email-grid.dialog-over {
    display: grid;
    grid-template-columns: 280px 1fr 0.7fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
}

.email-grid.collapsed.dialog-over {
    display: grid;
    grid-template-columns: 80px 1fr 0.6fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
}


.dialog-over::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),   
        rgba(255, 255, 255, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-in-big-dd {
    animation: slideInBig-dd 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height, opacity, transform, filter;
}
@keyframes shimmerEffect {
    0% {
        opacity: 0;
        transform: translateY(-100%) rotate(-5deg);
    }
    20% {
        opacity: 0.7;
    }
    60% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(100%) rotate(0deg);
    }
}

@keyframes slideInBig-dd {
    from {
        opacity: 0;
        transform: translateY(-10%);
        filter: blur(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    animation: fadeInDown 1s ease-out;
}

.description {
    font-size: 1.1rem;
    color: #b0b0b0;
    animation: fadeInUp 1s ease-out;
}

.login-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn 1.5s ease-out;
}

.login-card {
    border-radius: 20px;
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    border: 1px solid #3a3a3a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.155);
}

.leaflet-control-layers-toggle {
    background-image: url('https://unpkg.com/leaflet@1.9.3/dist/images/layers.png');
    background-size: 20px 20px;
    width: 30px;
    height: 30px;
}

.popup-content {
    font-size: 0.9rem;
    color: #ffffff;
}

.leaflet-tooltip.my-tooltip {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.8rem;
}

.map-search-bar {
    position: absolute;
    top: 10px;
    left: 50px;
    display: none !important;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.leaflet-control-geocoder{
    display: none !important;
}

.map-search-bar input {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 0.9rem;
}

.map-search-bar button {
    background-color: #00b09b;
    border: none;
    color: #ffffff;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.map-search-bar button:hover {
    background-color: #009678;
}

.card-header {
    display: flex;
    padding: 25px;
    background: linear-gradient(45deg, #00b09b08, #00000014);
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-id {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.login-card.expanded {
    max-height: 600px;
    transition: max-height 0.5s ease;
}


.timestamp {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.status {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: #ffffff;
    box-shadow: 0 0 20px rgb(0 176 155 / 4%);
    transition: background 0.3s ease;
}

.status.active {
    background: linear-gradient(45deg, #00b09b08, #ffffff14);
}

.status.inactive {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
}

.card-body {
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label {
    flex: 0 0 150px;
    font-weight: 600;
    color: #b0b0b0;
    position: relative;
}

.info-label::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(45deg, #00b09b08, #ffffff14);
    bottom: -5px;
    left: 0;
}

.info-value {
    flex: 1;
    color: #e0e0e0;
    word-break: break-all;
}

.map-container {
    width: 100%;
    height: 250px;
    margin-top: 10px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222222;
    transition: all 0.3s ease;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 2px solid rgba(0, 0, 0, 0.2);
    overflow: hidden !important;
    border-radius: 12px !important;

    a {
        background: rgba(17, 17, 17, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #eee;
        overflow: hidden;
    }

    a:hover {
        box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
        transform: translateY(-2px);
    }
}

.leaflet-control-fullscreen a {
    background: #2a2a2a17 url(https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/fullscreen.png) no-repeat 0 0;
    background-size: 26px 52px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.error-message {
    color: #ff4d4f;
    background-color: #1e1e1e;
    padding: 20px;
    border-left: 5px solid #ff4d4f;
    border-radius: 10px;
    font-size: 1rem;
    animation: fadeIn 1s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-list {
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.login-list::-webkit-scrollbar {
    width: 8px;
}

.login-list::-webkit-scrollbar-track {
    background: transparent;
}

.login-list::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-label {
        flex: 0 0 120px;
    }

    .map-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .info-label {
        flex: 0 0 100px;
    }

    .map-container {
        height: 180px;
    }
}
/* Attachment Container Styles */
.attachment-container {
    display: flex;
    align-items: center;
    background-color: #374151; /* slate-700 */
    padding: 0.5rem;
    border-radius: 0.375rem; /* rounded-md */
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.attachment-container svg {
    flex-shrink: 0;
}

.attachment-container img {
    width: 24px; /* w-6 */
    height: 24px; /* h-6 */
    object-fit: cover;
    border-radius: 0.25rem; /* rounded */
}

.attachment-container a {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d1d5db; /* slate-300 */
    text-decoration: none;
}

.attachment-container a:hover {
    text-decoration: underline;
}

.attachment-container span {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-slate-900\/60 {
    background-color: rgb(0 0 0 / 60%) !important;
}

.bg-slate-900\/50 {
    background-color: rgb(52 52 52 / 50%) !important;
}

.attachment-container button:hover {
    color: #ef4444; /* red-500 */
}

#editor.drag-over {
    border: 2px dashed #9ca3af; /* slate-400 */
    background-color: #4b5563; /* slate-600 */
}


.fixed.inset-0.z-50.flex.items-center.justify-center.bg-black.bg-opacity-75 .bg-slate-800 img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.375rem;
}

.fixed.inset-0.z-50.flex.items-center.justify-center.bg-black.bg-opacity-75 .bg-slate-800 p {
    color: #d1d5db; 
    margin-top: 0.5rem;
    text-align: center;
}
.to-muted-foreground {
    --tw-gradient-to: hsl(240deg 4.4% 58%) var(--tw-gradient-to-position);
}

.from-foreground {
    --tw-gradient-from: hsl(240deg 4.8% 95.9%) var(--tw-gradient-from-position);
    --tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.backdrop-blur-2xl-cloud {
    --tw-backdrop-blur: blur(40px);
    --tw-backdrop-brightness: brightness(2);
    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

select[id="eventContacts"]{
    option{
        border-radius: 7px;
        border: 1px solid #303030;
        padding-left: 7px;
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

#onboarding-dialog {
    animation: fadeIn 0.5s ease-out;
}

#onboarding-dialog.fade-out {
    animation: fadeOut 0.5s ease-out;
}

.highlight-element {
    position: relative;
    z-index: 60;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.highlight-element::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    animation: borderPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    }
    50% {
        border-color: rgba(59, 130, 246, 1);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    }
}

.icon-container {
    animation: iconFloat 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.step-title, .step-description {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-container img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-container:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.onboarding-link {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.onboarding-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.onboarding-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.step-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    transform: scale(1.2);
}

.performance-layer {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.new-email-animation {
    animation: slideInFromTop 0.3s ease-out forwards;
    will-change: transform, opacity;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes fadeScale {
    from {
        transform: translate3d(0, 0, 0) scale(0.90);
        opacity: 0;
        filter: saturate(1.5) brightness(0.2) blur(20px);
    }

    to {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: none;
    }
}

.animate-fade-scale {
    animation: fadeScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity, filter;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes shimmer {
    0% {
        transform: translate3d(-150%, 0, 0);
    }
    100% {
        transform: translate3d(150%, 0, 0);
    }
}

.skeleton-loading {
    background: linear-gradient(90deg,
        var(--secondary-dark) 25%,
        rgba(28, 28, 28, 0.1) 50%,
        var(--secondary-dark) 75%);
    background-size: 1000px 100%;
    will-change: background-position;
    contain: paint style;
}

.dialog-over {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    contain: layout style paint;
}

.compose-btn {
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.compose-btn:hover {
    transform: translate3d(0, -2px, 0) scale(1.02);
}

.compose-btn:active {
    transform: translate3d(0, 1px, 0) scale(0.98);
}


.action-cards.show .action-card {
    animation: cardPulse 2s infinite;
    will-change: transform, opacity;
    contain: layout style paint;
    transform: translateZ(0);
}

.composite-layer {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    contain: layout style paint;
}

.email-item {
    cursor: move;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    will-change: transform, opacity, box-shadow;
    contain: layout style paint;
}

@keyframes float-slow {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-10px) translateX(5px); }
    100% { transform: translateY(0) translateX(0); }
}
@keyframes float-slow-reverse {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(10px) translateX(-5px); }
    100% { transform: translateY(0) translateX(0); }
}
@keyframes pulse-slow {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}
.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}
.animate-float-slow-reverse {
    animation: float-slow-reverse 9s ease-in-out infinite;
}
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.optimize-animation {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: auto;
    contain: layout style paint;
}

.optimize-transform {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout style;
}

.optimize-opacity {
    transform: translateZ(0);
    will-change: opacity;
    contain: paint style;
}

.view-toggle-container {
    position: relative;
    display: inline-flex;
    transition: all 0.3s ease;
}

.view-toggle-container:hover {
    background-color: rgba(30, 41, 59, 0.7);
}

.view-toggle-label {
    position: relative;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.375rem;
    color: rgba(148, 163, 184, 1);
    z-index: 1;
}

.view-toggle-label svg {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.view-toggle-label:hover {
    color: rgba(226, 232, 240, 1);
}

.view-toggle-label:hover svg {
    opacity: 1;
}

input[type="radio"].view-toggle:checked + .view-toggle-label {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(59, 130, 246, 0.2);
}

input[type="radio"].view-toggle:checked + .view-toggle-label svg {
    opacity: 1;
}

input[type="radio"].view-toggle:focus + .view-toggle-label {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#email-viewer-container > * {
    animation: fadeInContent 0.3s ease-out forwards;
}

.shadow-settings {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.back-button {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(30, 41, 59, 0.5);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-button:active {
    transform: translateY(1px);
}

.account-button {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.account-button:hover {
    background: rgba(59, 130, 246, 0.15);
    box-shadow:
        inset 0 0 0 1px rgba(59, 130, 246, 0.3),
        0 4px 8px rgba(59, 130, 246, 0.15);
}

.account-button:active {
    transform: translateY(1px);
}

.account-button svg,
.account-button span {
    transition: color 0.2s ease;
}

.account-button:hover svg,
.account-button:hover span {
    color: rgb(96, 165, 250);
}
@keyframes cardFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.integration-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
}

.integration-card:hover {
    animation: cardFloat 3s ease-in-out infinite;
}

.integration-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    transition: opacity 0.4s ease;
    opacity: 0;
}

.integration-card:hover::before {
    opacity: 1;
}

.status-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.full-view-transition {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, border-radius;
    backface-visibility: hidden;
    perspective: 1000px;
}

.full-view-active {
    transform: translate(0, 0) scale(1) !important;
    opacity: 1 !important;
    background: #12121273 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
}

.exiting-full-view {
    transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.full-view-active .email-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.toolbar-fullview {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toolbar-fullview button {
    transform: scale(1.05);
}

.fullview-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    transition: background 0.4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.fullview-backdrop.active {
    background: rgba(0, 0, 0, 0.336);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(8px);
    }
    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.full-view-active #email-viewer-container {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@keyframes floatEffect {
    0% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-8px) translateZ(0);
    }
    100% {
        transform: translateY(0px) translateZ(0);
    }
}

.content-float-effect {
    animation: floatEffect 6s ease-in-out infinite;
    will-change: transform;
}

.floating-animation {
    transform-style: preserve-3d;
    perspective: 1000px;
}

body.overflow-hidden {
    overflow: hidden !important;
}

/* Button Styles */
.full-view-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-view-btn.btn-hover {
    background-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.icon-transition {
    opacity: 0;
    transform: scale(0.8) rotate(10deg);
    transition: all 0.3s ease;
}

.tooltip-fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .full-view-active #email-viewer-container {
        padding: 1rem;
    }
    
    .content-float-effect {
        animation: floatEffect 4s ease-in-out infinite;
    }
}

/* Elegant scrollbar for fullview mode */
.full-view-active::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.full-view-active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.full-view-active::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.full-view-active::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
    background-clip: padding-box;
}
#sidebarAppsDropdown {
    transform-origin: top right;
}

#sidebarAppsDropdown button {
    position: relative;
    overflow: hidden;
}

#sidebarAppsDropdown button > div {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#sidebarAppsDropdown button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

#sidebarAppsDropdown button:hover::after {
    transform: translateX(100%);
}

.app-icon {
    filter: saturate(1.2) brightness(1.1);
    transition: all 0.3s ease;
}

.app-icon:hover {
    filter: saturate(1.4) brightness(1.2);
}

/* Add iframe specific styles */
.embed-app-frame {
    border: none;
    width: 100%;
    height: 100%;
    background: transparent;
}

.embed-app-frame-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.embed-app-frame-loaded {
    opacity: 1;
}


/* Loading Animation System */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    background: linear-gradient(135deg, rgb(0 0 0 / 12%) 0%, rgb(0 0 0 / 18%) 37%, rgb(0 0 0 / 15%) 67%, rgb(0 0 0 / 10%) 100%);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.loading-overlay.active {
	opacity: 1;
	visibility: visible;
}

.loading-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	z-index: 10000;
	background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
	box-shadow: 
		0 0 20px rgba(139, 92, 246, 0.8),
		0 2px 8px rgba(139, 92, 246, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transform: translateX(-100%) translateZ(0);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform, width;
	border-radius: 0 0 2px 2px;
	perspective: 1000px;
	transform-style: preserve-3d;
}

.loading-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transform: translateX(-100%) rotateY(0deg);
	animation: shimmer 2s ease-in-out infinite;
	border-radius: inherit;
}

.loading-bar::after {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
	border-radius: 2px 2px 0 0;
	transform: translateZ(1px);
}

.loading-bar.active {
	animation: loadingProgress 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
	transform: translateX(-100%) translateZ(0) rotateX(0deg);
}

.loading-bar.complete {
	transform: translateX(0%) translateZ(0) rotateX(0deg);
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 
		0 0 25px rgba(139, 92, 246, 1),
		0 3px 12px rgba(139, 92, 246, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes loadingProgress {
	0% {
        width: 70%;
		transform: translateX(-100%);
	}

    50% {
        width: 30%;
        transform: translateX(50%);
	}

	100% {
        width: 100%;
		transform: translateX(100%);
	}
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%) rotateY(-10deg);
		opacity: 0;
	}
	
	50% {
		transform: translateX(0%) rotateY(0deg);
		opacity: 1;
	}
	
	100% {
		transform: translateX(100%) rotateY(10deg);
		opacity: 0;
	}
}
.loading-pulse {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(139, 92, 246, 0.2);
	z-index: 9998;
	opacity: 0;
	animation: pulseGlow 2s ease-in-out infinite;
}

.loading-pulse.active {
	opacity: 1;
}
@keyframes pulseGlow {

	0%,
	100% {
		opacity: 0.2;
	}

	50% {
		opacity: 0.4;
	}
}

/* Organic loading dots for content areas */
.loading-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.loading-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #8b5cf6;
	animation: dotPulse 1.5s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
	animation-delay: -0.3s;
}

.loading-dot:nth-child(2) {
	animation-delay: -0.15s;
}

.loading-dot:nth-child(3) {
	animation-delay: 0s;
}

@keyframes dotPulse {

	0%,
	100% {
		transform: scale(0.8);
		opacity: 0.5;
	}

	50% {
		transform: scale(1.2);
		opacity: 1;
	}
}

/* Skeleton loading for content */
.skeleton {
	background: linear-gradient(90deg,
			rgba(14, 20, 73, 0.3) 0%,
			rgba(139, 92, 246, 0.15) 25%,
			rgba(168, 85, 247, 0.2) 50%,
			rgba(139, 92, 246, 0.15) 75%,
			rgba(14, 20, 73, 0.3) 100%);
	background-size: 300% 100%;
	animation: skeletonLoading 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
	border-radius: var(--radius);
}

@keyframes skeletonLoading {
	0% {
		background-position: 300% 0;
	}

	100% {
		background-position: -300% 0;
	}
}

/* Breathing animation for heavy operations */
.loading-breathe {
	animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {

	0%,
	100% {
		opacity: 0.85;
	}

	50% {
		opacity: 1;
	}
}

/* Content fade during loading */
.content-loading {
	transition: all 0.3s ease-out;
}

.content-loading.dimmed {
	opacity: 0.7;
	pointer-events: none;
}


.needs-scrolling {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	overflow-y: auto !important;
	scroll-behavior: smooth;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.needs-scrolling::-webkit-scrollbar {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	width: 6px;
}

.needs-scrolling::-webkit-scrollbar-track {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	background: transparent;
	border-radius: 3px;
}

.needs-scrolling::-webkit-scrollbar-thumb {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	background: hsl(var(--muted-foreground) / 0.2);
	border-radius: 3px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid transparent;
	background-clip: content-box;
}

.needs-scrolling:hover::-webkit-scrollbar-thumb {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	background: hsl(var(--muted-foreground) / 0.4);
	border-radius: 3px;
}

.needs-scrolling::-webkit-scrollbar-thumb:hover {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	background: hsl(var(--muted-foreground) / 0.6);
	border-radius: 3px;
}

.needs-scrolling::-webkit-scrollbar-thumb:active {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	background: hsl(var(--muted-foreground) / 0.8);
	border-radius: 3px;
}

.needs-scrolling {
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 210 20% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --radius: 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: hsl(var(--muted-foreground) / 0.2) transparent;
}

.needs-shadow {
	box-shadow: 0 -25px 50px -12px rgb(104 104 104 / 40%), 0 -8px 25px -8px rgb(105 105 105 / 30%), 0 -4px 15px -4px rgb(0 0 0), 0 -2px 8px -2px rgb(172 172 172 / 36%), 0 0 18px 2px rgb(31 21 119 / 35%), inset 0 1px 0 rgb(255 255 255 / 34%), inset 0 -1px 0 rgb(201 201 201 / 39%) !important;
}

.needs-shadow-2{
   box-shadow: 0 -25px 50px -12px rgb(17 17 17 / 34%), 0 -8px 25px -8px rgb(71 71 71 / 30%), 0 -4px 15px -4px rgb(0 0 0), 0 -2px 8px -2px rgb(34 34 34 / 36%), 0 0 18px 2px rgb(10 6 45 / 35%), inset 0 1px 0 rgb(19 19 19 / 34%), inset 0 -1px 0 rgb(47 47 47 / 39%) !important;
}