/* Xtellaris Dashboard Demo Widget Styles */
.xt-dashboard-demo {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    font-family: 'Funnel Display', sans-serif;
    height: 600px; /* Base height for the demo */
}

/* Premium Background Decoration (Diagonal support) */
.xt-dashboard-demo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(165deg, rgba(0, 149, 255, 0.04) 0%, transparent 50%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.xt-dashboard-demo__sidebar {
    position: relative;
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid #F0F2F5;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.xt-dashboard-demo__logo {
    margin-bottom: 40px;
}

.xt-dashboard-demo__nav-group {
    margin-bottom: 32px;
}

.xt-dashboard-demo__nav-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.xt-dashboard-demo__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.xt-dashboard-demo__nav-item:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.xt-dashboard-demo__nav-item--active {
    background: #0095FF;
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(0, 149, 255, 0.2);
}

.xt-dashboard-demo__sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #F0F2F5;
}

.xt-dashboard-demo__socials {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.xt-dashboard-demo__social-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #64748B;
    transition: all 0.3s ease;
}

.xt-dashboard-demo__social-link:hover {
    background: #0095FF;
    color: #FFFFFF;
}

.xt-dashboard-demo__copyright {
    font-size: 10px;
    color: #94A3B8;
}

/* Main Content */
.xt-dashboard-demo__main {
    flex: 1;
    background: #F8FAFC;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header Pills */
.xt-dashboard-demo__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.xt-dashboard-demo__header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.xt-dashboard-demo__pill {
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #F1F5F9;
}

.xt-dashboard-demo__pill-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
}

.xt-dashboard-demo__pill-value {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.xt-dashboard-demo__wallet-btn {
    width: 40px;
    height: 40px;
    background: #FFE600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.xt-dashboard-demo__wallet-btn:hover {
    transform: scale(1.05);
}

.xt-dashboard-demo__header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.xt-dashboard-demo__user-action {
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #F1F5F9;
}

.xt-dashboard-demo__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    border: 1px solid #F1F5F9;
}

/* Tabs */
.xt-dashboard-demo__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.xt-dashboard-demo__tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xt-dashboard-demo__tab--active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Card */
.xt-dashboard-demo__card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    width: 340px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #F1F5F9;
    position: relative;
    z-index: 1;
}

.xt-dashboard-demo__card-image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.xt-dashboard-demo__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xt-dashboard-demo__card-timer {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFE600;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xt-dashboard-demo__card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
}

.xt-dashboard-demo__card-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.xt-dashboard-demo__card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xt-dashboard-demo__card-btn {
    flex: 1;
    background: #0095FF;
    color: #FFFFFF;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.xt-dashboard-demo__card-btn:hover {
    background: #0084E6;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.xt-dashboard-demo__card-value {
    background: #F1F5F9;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Fade Out Effect */
.xt-dashboard-demo__fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #FFFFFF 90%);
    pointer-events: none;
    z-index: 10;
}

.xt-dashboard-demo__sidebar-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #FFFFFF 90%);
    pointer-events: none;
    z-index: 10;
}

/* --- RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .xt-dashboard-demo {
        flex-direction: column;
        height: 750px !important; /* Fixed height for demo effect on mobile */
        max-width: 100%;
    }

    .xt-dashboard-demo__sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #F1F5F9;
        padding: 24px;
    }

    .xt-dashboard-demo__nav-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .xt-dashboard-demo__nav-item {
        padding: 10px;
        font-size: 13px;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .xt-dashboard-demo__sidebar-footer,
    .xt-dashboard-demo__nav-label,
    .xt-dashboard-demo__sidebar-fade {
        display: none;
    }

    .xt-dashboard-demo__main {
        padding: 24px;
        overflow: visible;
        background: #F8FAFC;
    }

    .xt-dashboard-demo__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .xt-dashboard-demo__header-right {
        width: 100%;
        justify-content: space-between;
    }

    .xt-dashboard-demo__card {
        width: 100%;
        margin-top: 10px;
        box-sizing: border-box;
    }

    .xt-dashboard-demo__fade-overlay {
        background: linear-gradient(to bottom, transparent, #F8FAFC 85%);
        height: 180px;
    }
}
