/* ========================================
   Part B: Left Sidebar - Static Device Info
   ======================================== */

.apply-sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Device Card */
.device-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.device-card:hover {
    border-color: var(--logoBlue, #086AB0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 106, 176, 0.15);
}

/* Card Header */
.device-card-header {
    background: linear-gradient(135deg, #e8f4fc, #d0e8f7);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.device-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--logoBlue, #086AB0), #065a94);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-card-icon i {
    font-size: 1rem;
    color: white;
}

.device-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

/* Card Body */
.device-card-body {
    padding: 1rem 1.25rem;
}

.device-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed #e9ecef;
}

.device-info-row:last-child {
    border-bottom: none;
}

.device-info-row span {
    color: #6c757d;
}

.device-info-row strong {
    color: #343a40;
}

.device-info-row.device-info-note {
    font-size: 0.95rem;
}
.device-info-row.device-info-note span,
.device-info-row.device-info-note strong {
    color: #6c757d;
}

.text-free {
    color: #28a745 !important;
}

.text-price {
    color: var(--logoBlue, #086AB0) !important;
}

/* Out of Stock */
.device-card.out-of-stock {
    opacity: 0.75;
    position: relative;
    overflow: hidden;
}

.device-card.out-of-stock::before {
    content: 'OUT OF STOCK';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 1.4rem;
    font-weight: 900;
    color: #dc3545;
    text-shadow: 0 0 20px rgba(255,255,255,0.9), 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.15em;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.device-card.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(220, 53, 69, 0.12) 4px,
        rgba(220, 53, 69, 0.12) 8px
    );
    pointer-events: none;
    border-radius: 14px;
}

.device-card.out-of-stock .device-card-body,
.device-card.out-of-stock .device-card-header {
    filter: grayscale(0.4);
}

.device-card.out-of-stock:hover {
    transform: none;
    border-color: #dee2e6;
}

.out-of-stock-badge {
    margin-left: auto;
    background: #dc3545;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 992px) {
    .apply-sidebar-left {
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }

    .device-card {
        min-width: 200px;
        flex: 1;
    }
}

@media (max-width: 576px) {
    .apply-sidebar-left {
        flex-direction: column;
    }

    .device-card {
        min-width: auto;
    }
}
