/* ==========================================
   Quick Access / Fast Open Tabs Styling (Fixed)
   ========================================== */

#quick-access {
    margin-bottom: 30px !important;
    width: 100% !important;
    display: block !important;
}

.quick-tabs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.quick-tab-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.quick-tab-card:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
    box-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.15) !important;
}

/* Left Icon Box */
.tab-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 12px !important;
    background: rgba(234, 179, 8, 0.15) !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.tab-icon-wrap svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #b45309 !important;
}

/* Middle Details */
.tab-details {
    flex: 1 1 auto !important;
    text-align: left !important;
}

.tab-details h3 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.tab-details p {
    margin: 4px 0 0 0 !important;
    font-size: 0.8rem !important;
    color: #71717a !important;
    line-height: 1.2 !important;
}

/* Right Arrow Icon */
.tab-arrow {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.6 !important;
}

.tab-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #52525b !important;
}

/* ==========================================
   MSNS AI Floating Widget Styling & Animation
   (Red & Gold Theme)
   ========================================== */

.msns-ai-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 1px solid rgba(185, 28, 28, 0.4);
    border-right: none;
    border-radius: 35px 0 0 35px;
    padding: 8px 12px 8px 14px;
    box-shadow: -6px 12px 30px rgba(185, 28, 28, 0.35), 
                inset 0 1px 1px rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
}

/* Page load එකේදී සැඟවී පැවතීම */
.msns-ai-widget.hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(120%) scale(0.5);
    pointer-events: none;
}

/* 1. Website open වෙද්දී එන "Smile Bounce" Animated Entrance */
@keyframes smileBounceEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(100%) rotate(15deg) scale(0.4);
    }
    50% {
        opacity: 1;
        /* හිනාවෙනවා වගේ Arch එකකට උඩට ගොස් කරකැවීම */
        transform: translateY(-68%) translateX(-20px) rotate(-6deg) scale(1.12);
    }
    75% {
        transform: translateY(-44%) translateX(-5px) rotate(3deg) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
}

.msns-ai-widget.pop-in {
    animation: smileBounceEntrance 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 2. දකුණු පැත්තට Slide වී Dock වෙන State එක */
.msns-ai-widget.docked {
    transform: translateY(-50%) translateX(calc(100% - 46px));
    opacity: 0.88;
    box-shadow: -2px 6px 18px rgba(185, 28, 28, 0.3);
}

.msns-ai-widget.docked:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(calc(100% - 52px));
}

/* Widget Content Components */
.msns-ai-main {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.msns-ai-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.msns-ai-avatar svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* Smile Curve pulse movement */
.smile-curve {
    stroke: #fef3c7;
    animation: smilePulse 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes smilePulse {
    0%, 100% { stroke: #fef3c7; transform: scale(1); }
    50% { stroke: #ffffff; transform: scale(1.15); }
}

.msns-ai-text {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.msns-ai-open-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.msns-ai-open-btn:hover {
    background: #ffffff;
    color: #b91c1c;
    transform: scale(1.1);
}

.msns-ai-open-btn svg {
    width: 14px;
    height: 14px;
}
