/**
 * D-NOVA Customer Panel Styles
 * MEGA design dla panelu klienta - BLUE HARMONY
 */

:root {
    --customer-primary: #6496FF;
    --customer-secondary: #5080e6;
    --bmw-black: #0a0a0a;
    --bmw-dark: #1a1a1a;
    --bmw-matrix-blue: #6496FF;
    --bmw-gray: #888888;
    --text-light: #ffffff;
}

/* Page Layout */
.customer-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: var(--text-light);
    padding: 2rem 0;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6496FF, #7ba8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-subtitle {
    color: var(--bmw-gray);
    font-size: 1.1rem;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 150, 255, 0.4);
    border-color: var(--customer-primary);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--customer-primary);
    margin-bottom: 0.5rem;
}

.summary-label {
    color: var(--bmw-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Content Card */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

/* Order Item */
.order-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.order-item:hover {
    border-color: var(--customer-primary);
    transform: translateX(8px);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--customer-primary);
}

.order-item-date {
    color: var(--bmw-gray);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.order-item-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 184, 0, 0.2);
    color: #FFB800;
    border: 1px solid #FFB800;
}

.status-processing {
    background: rgba(100, 150, 255, 0.2);
    color: var(--bmw-matrix-blue);
    border: 1px solid var(--bmw-matrix-blue);
}

.status-paid {
    background: rgba(100, 150, 255, 0.2);
    color: var(--customer-primary);
    border: 1px solid var(--customer-primary);
}

.status-shipped {
    background: rgba(100, 150, 255, 0.2);
    color: var(--bmw-matrix-blue);
    border: 1px solid var(--bmw-matrix-blue);
}

.status-delivered {
    background: rgba(100, 150, 255, 0.3);
    color: #7ba8ff;
    border: 1px solid #7ba8ff;
}

.status-cancelled {
    background: rgba(255, 100, 100, 0.2);
    color: #FF6464;
    border: 1px solid #FF6464;
}

.status-returned {
    background: rgba(255, 150, 0, 0.2);
    color: #FF9600;
    border: 1px solid #FF9600;
}

.status-failed {
    background: rgba(255, 100, 100, 0.2);
    color: #FF6464;
    border: 1px solid #FF6464;
}

.status-refunded {
    background: rgba(150, 150, 150, 0.2);
    color: #999999;
    border: 1px solid #999999;
}

.order-item-body {
    margin-bottom: 1.5rem;
}

.order-item-info {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--bmw-gray);
}

.info-label {
    font-weight: 600;
}

.info-value {
    color: var(--text-light);
}

.payment-status-pending {
    color: #FFB800;
}

.payment-status-paid {
    color: var(--customer-primary);
}

.payment-status-failed {
    color: #FF6464;
}

.payment-status-refunded {
    color: #999999;
}

.payment-status-cancelled {
    color: #FF6464;
}

.order-item-products {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item-products ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--bmw-gray);
}

.order-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item-total {
    font-size: 1.3rem;
    color: var(--text-light);
}

.btn-details {
    padding: 0.5rem 1rem;
    background: var(--customer-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--customer-secondary);
    transform: translateX(5px);
}

/* Adapters Grid */
.adapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.adapter-card-detailed {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.adapter-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 150, 255, 0.4);
    border-color: var(--customer-primary);
}

.adapter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(100, 150, 255, 0.2);
}

.adapter-serial-big {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--customer-primary);
}

.adapter-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-installed {
    background: rgba(100, 150, 255, 0.2);
    color: var(--customer-primary);
    border: 1px solid var(--customer-primary);
}

.status-instock {
    background: rgba(100, 150, 255, 0.2);
    color: var(--bmw-matrix-blue);
    border: 1px solid var(--bmw-matrix-blue);
}

.status-intransit {
    background: rgba(255, 184, 0, 0.2);
    color: #FFB800;
    border: 1px solid #FFB800;
}

.adapter-card-body {
    margin-bottom: 1rem;
}

.adapter-info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adapter-info-section:last-child {
    border-bottom: none;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--customer-primary);
    margin-bottom: 0.8rem;
}

.adapter-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bmw-gray);
    font-size: 0.85rem;
}

/* Warranty Items */
.warranty-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.warranty-item.warranty-active {
    border-color: rgba(100, 150, 255, 0.3);
}

.warranty-item:hover {
    border-color: var(--customer-primary);
}

.warranty-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warranty-item-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--customer-primary);
}

.warranty-item-serial {
    color: var(--bmw-gray);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.warranty-item-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(100, 150, 255, 0.2);
    color: var(--customer-primary);
    border: 1px solid var(--customer-primary);
}

.status-expired {
    background: rgba(255, 100, 100, 0.2);
    color: #FF6464;
    border: 1px solid #FF6464;
}

.warranty-item-body {
    margin-bottom: 1.5rem;
}

.warranty-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.warranty-days-left {
    color: var(--customer-primary);
    font-weight: 700;
}

.warranty-notes {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--bmw-gray);
}

.warranty-documents {
    margin-top: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--customer-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--customer-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
}

.warranty-item-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.warranty-created {
    color: var(--bmw-gray);
    font-size: 0.85rem;
}

.warranty-progress {
    flex: 1;
    max-width: 300px;
    margin-left: 2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--customer-primary), var(--customer-secondary));
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--bmw-gray);
}

/* Empty States */
.empty-state, .empty-state-full {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--bmw-gray);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-subtext {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--customer-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--customer-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 150, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .adapters-grid {
        grid-template-columns: 1fr;
    }

    .warranty-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-item-header,
    .warranty-item-header,
    .adapter-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-item-footer,
    .warranty-item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .warranty-progress {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .info-row {
        flex-direction: column;
        gap: 0.3rem;
    }
}
