/* voltcycle build checker style sheet */

/* slot cards styling */
.slot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.slot-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent2);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--accent-glow);
}

.slot-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

.slot-card:hover .slot-icon-box {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* active slot modifications */
.slot-card.active {
    background: rgba(127, 107, 252, 0.05);
    border-color: rgba(127, 107, 252, 0.25);
}

.slot-card.active .slot-icon-box {
    background: rgba(127, 107, 252, 0.12);
    border-color: rgba(127, 107, 252, 0.3);
}

/* sticky telemetry sidebar */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
    transition: all 0.3s ease;
}

/* power budget monitor */
.wattage-progress-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.wattage-progress {
    height: 100%;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green-dim);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

/* dynamic colors for wattage bar */
.wattage-progress.warning {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber-dim);
}

.wattage-progress.danger {
    background: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

/* diagnostics deck */
.diagnostics-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diagnostic-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--text3);
    animation: diagSlideIn 0.2s ease-out;
}

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

.diagnostic-item.success {
    border-left-color: var(--green);
    background: rgba(56, 217, 169, 0.03);
}

.diagnostic-item.warning {
    border-left-color: var(--amber);
    background: rgba(252, 196, 25, 0.03);
}

.diagnostic-item.error {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.03);
}

.diagnostic-item.empty {
    border-left-color: var(--text3);
    color: var(--text2);
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 24px;
}

.diag-icon {
    font-size: 1rem;
    line-height: 1.2;
}

.diag-msg {
    color: var(--text);
    line-height: 1.4;
}

.diagnostic-item.success .diag-msg {
    color: #c3fae8;
}

.diagnostic-item.warning .diag-msg {
    color: #fff3bf;
}

.diagnostic-item.error .diag-msg {
    color: #ffe3e3;
}

/* glass modal selector styling */
.glass-modal {
    background: rgba(15, 15, 22, 0.95);
    border: 1px solid var(--border2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--r-xl);
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(127, 107, 252, 0.1);
}

.parts-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

/* modal parts rows styling */
.part-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.part-row-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.part-row-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.part-row-specs {
    font-size: 0.75rem;
    color: var(--text2);
    margin-top: 4px;
}

.part-row-price {
    font-family: var(--font-mono);
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* custom scrollbars */
.parts-list-scroll::-webkit-scrollbar,
.diagnostics-container::-webkit-scrollbar {
    width: 6px;
}

.parts-list-scroll::-webkit-scrollbar-track,
.diagnostics-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
}

.parts-list-scroll::-webkit-scrollbar-thumb,
.diagnostics-container::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 99px;
}

.parts-list-scroll::-webkit-scrollbar-thumb:hover,
.diagnostics-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* print spec sheet override styles */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .navbar, footer, .select-part-btn, #addBuildToCartBtn, #shareBuildBtn, #printSpecsBtn, #clearBuildBtn, .modal, #quickAutoBuildBtn {
        display: none !important;
    }
    
    .subpage-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .col-lg-8 {
        width: 100% !important;
    }

    .col-lg-4 {
        width: 100% !important;
        margin-top: 40px !important;
        position: static !important;
    }
    
    .slot-card {
        border: 1px solid #ddd !important;
        background: none !important;
        color: #000 !important;
        margin-bottom: 10px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .slot-icon-box {
        border: 1px solid #ddd !important;
        background: #f5f5f5 !important;
        color: #000 !important;
    }

    .glass-card {
        border: 1px solid #ddd !important;
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    #buildTotalPrice {
        color: #000 !important;
        font-size: 2rem !important;
    }

    .diagnostics-container {
        border: 1px solid #ddd !important;
        background: none !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .diagnostic-item {
        border: 1px solid #ddd !important;
        border-left: 4px solid #333 !important;
        background: none !important;
        color: #000 !important;
    }

    .text-gradient {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #000 !important;
    }

    .slot-value-name {
        color: #000 !important;
    }
}
