.ysw-container {
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.ysw-container * {
    box-sizing: border-box;
}

/* Sidebar */
.ysw-sidebar {
    width: 280px;
    border-right: 1px solid #1e293b;
    padding: 8px;
}

.ysw-sidebar-title {
    font-size: 10px;
    letter-spacing: 1px;
    color: #64748b;
    margin: 4px 0 8px 8px;
    font-weight: 600;
}

.ysw-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ysw-tab {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

.ysw-tab:hover {
    background-color: #121524;
}

.ysw-tab.active {
    background-color: #151828;
    border: 1px solid #272a3d;
}

.ysw-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #0b0d17;
    border: 1px solid #1e293b;
    margin-right: 10px;
    flex-shrink: 0;
    color: #6366f1; /* default color */
}

.ysw-tab-icon i {
    font-size: 14px;
}

.ysw-tab-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Fallback colors for predefined classes if still used */
.ysw-icon-compute, .ysw-icon-compute-large { color: #6366f1; }
.ysw-icon-database, .ysw-icon-database-large { color: #14b8a6; }
.ysw-icon-kubernetes, .ysw-icon-kubernetes-large { color: #a855f7; }
.ysw-icon-storage, .ysw-icon-storage-large { color: #22c55e; }
.ysw-icon-gpu, .ysw-icon-gpu-large { color: #f59e0b; }

.ysw-tab-text {
    flex-grow: 1;
    overflow: hidden;
}

.ysw-tab-text h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #f8fafc;
    line-height: 1.2;
}

.ysw-tab-text p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ysw-tab-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
    color: #6366f1;
}

.ysw-tab:hover .ysw-tab-arrow {
    opacity: 0.5;
    transform: translateX(0);
}

.ysw-tab.active .ysw-tab-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Content Area */
.ysw-content-area {
    flex-grow: 1;
    padding: 12px 16px;
    position: relative;
}

.ysw-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ysw-pane.active {
    display: block;
}

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

.ysw-pane-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ysw-pane-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #0b0d17;
    border: 1px solid #1e293b;
    margin-right: 12px;
    flex-shrink: 0;
    color: #6366f1; /* default color */
}

.ysw-pane-icon i {
    font-size: 18px;
}

.ysw-pane-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ysw-pane-title h2 {
    margin: 0 0 -2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.2;
}

.ysw-pane-title p {
    margin: 0;
    font-size: 11px;
    color: #818cf8;
    font-style: italic;
    line-height: 1.2;
}

.ysw-pane-description {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ysw-pane-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.ysw-pane-features li {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    line-height: 1.2;
}

.ysw-feature-icon {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ysw-feature-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ysw-feature-icon i {
    font-size: 14px;
}

.ysw-pane-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid #1e293b;
    padding-top: 8px;
}

.ysw-price-block {
    display: flex;
    flex-direction: column;
}

.ysw-price-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ysw-price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #c084fc;
}

.ysw-price-unit {
    font-size: 14px;
    color: inherit;
    font-weight: 400;
}

.ysw-btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #a78bfa;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #2e245a;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.ysw-btn svg {
    margin-left: 6px;
}

.ysw-btn:hover {
    background-color: #1e1b4b;
    border-color: #4c1d95;
    color: #c4b5fd;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ysw-container {
        flex-direction: column !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .ysw-sidebar {
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
        background-color: transparent !important;
    }
    .ysw-sidebar-title {
        display: none !important;
    }
    .ysw-content-area {
        display: none !important;
    }
    .ysw-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .ysw-tab {
        background-color: #0c0e18 !important;
        border: 1px solid #161b2c !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        margin-bottom: 0 !important;
        text-decoration: none !important;
    }
    .ysw-tab.active {
        background-color: #0c0e18 !important;
        border: 1px solid #161b2c !important;
    }
    .ysw-tab-text h4 {
        font-size: 14px !important;
        white-space: normal !important;
    }
    .ysw-tab-text p {
        display: none !important;
    }
    .ysw-tab-icon {
        width: 24px !important;
        height: 24px !important;
        background-color: transparent !important;
        border: none !important;
        margin-right: 12px !important;
    }
    .ysw-tab-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    .ysw-tab-icon i {
        font-size: 16px !important;
    }
    .ysw-tab-arrow {
        opacity: 1 !important;
        transform: none !important;
        margin-left: auto !important;
        display: block !important;
    }
    .ysw-tab-arrow svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ==========================================================================
   CSS Variable Overrides (From Elementor Individual Repeater Items)
   ========================================================================== */

/* Icon Color Override */
.ysw-tab[style*="--item-icon-color"] .ysw-tab-icon {
    color: var(--item-icon-color) !important;
}
.ysw-tab[style*="--item-icon-color"] .ysw-tab-icon svg {
    fill: var(--item-icon-color) !important;
}
.ysw-pane[style*="--item-icon-color"] .ysw-pane-icon {
    color: var(--item-icon-color) !important;
}
.ysw-pane[style*="--item-icon-color"] .ysw-pane-icon svg {
    fill: var(--item-icon-color) !important;
}

/* Subtitle Color Override */
.ysw-pane[style*="--item-subtitle-color"] .ysw-pane-title p {
    color: var(--item-subtitle-color) !important;
}

/* Bullet Color Override */
.ysw-pane[style*="--item-bullet-color"] .ysw-feature-icon {
    color: var(--item-bullet-color) !important;
}
.ysw-pane[style*="--item-bullet-color"] .ysw-feature-icon svg {
    fill: var(--item-bullet-color) !important;
}

/* Price Color Override */
.ysw-pane[style*="--item-price-color"] .ysw-price-amount,
.ysw-pane[style*="--item-price-color"] .ysw-price-unit {
    color: var(--item-price-color) !important;
}

/* Button Normal Overrides */
.ysw-pane[style*="--item-btn-color"] .ysw-btn {
    color: var(--item-btn-color) !important;
}
.ysw-pane[style*="--item-btn-bg"] .ysw-btn {
    background-color: var(--item-btn-bg) !important;
}
.ysw-pane[style*="--item-btn-border"] .ysw-btn {
    border-color: var(--item-btn-border) !important;
}

/* Button Hover Overrides */
.ysw-pane[style*="--item-btn-hover-color"] .ysw-btn:hover {
    color: var(--item-btn-hover-color) !important;
}
.ysw-pane[style*="--item-btn-hover-bg"] .ysw-btn:hover {
    background-color: var(--item-btn-hover-bg) !important;
}
.ysw-pane[style*="--item-btn-hover-border"] .ysw-btn:hover {
    border-color: var(--item-btn-hover-border) !important;
}

/* ==========================================================================
   Ycloud Service Card Widget (Standalone)
   ========================================================================== */
.ysw-card-widget {
    border-radius: 12px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #e2e8f0;
}

.ysw-card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.ysw-card-starting {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ysw-card-price-amount {
    font-size: 42px;
    font-weight: 700;
    color: #a78bfa;
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 12px;
}

.ysw-card-currency {
    font-size: 42px;
}

.ysw-card-price-val {
    /* Optional specifics for price value */
}

.ysw-card-term-specs {
    font-size: 13px;
    color: #94a3b8;
}

.ysw-card-features {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ysw-card-features li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 14px;
    padding: 0 !important;
}

.ysw-card-features li:last-child {
    margin-bottom: 0;
}

.ysw-card-chevron {
    color: #a78bfa;
    margin-right: 12px;
    flex-shrink: 0;
}
