/* Assets Module Styles */

/* Wizard Steps (Transfer, Dispose, Improve) */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--border-color);
}
.wizard-step.active:not(:last-child)::after {
    background: var(--primary-color);
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}
.wizard-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.wizard-step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}
.step-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.wizard-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Transfer Location Cards */
.transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.transfer-arrow svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}
.location-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: var(--lux-surface, white);
}
.location-card.from {
    border-color: var(--color-warning-500, #fbbf24);
    background: linear-gradient(135deg, var(--color-warning-50, #fffbeb) 0%, var(--color-warning-100, #fef3c7) 100%);
}
.location-card.to {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--color-success-50, #f0fdf4) 0%, var(--color-success-100, #dcfce7) 100%);
}
.location-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.location-card.from .location-label {
    color: var(--warning);
}
.location-card.to .location-label {
    color: var(--success-color);
}

/* Disposal Form Styles */
.asset-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.info-item label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.info-value.highlight { color: var(--primary); font-size: 1.125rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.preview-item { display: flex; flex-direction: column; }
.preview-item label { font-size: 0.75rem; color: var(--text-muted); }
.preview-item .value { font-weight: 600; font-size: 1rem; }
.preview-item.highlight-result { grid-column: span 2; background: var(--lux-surface, white); padding: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.result-value { font-size: 1.5rem !important; }
.result-value.gain { color: var(--success); }
.result-value.loss { color: var(--danger); }
.input-group-currency { position: relative; display: flex; align-items: center; }
.currency-prefix { position: absolute; left: 12px; color: var(--text-muted); font-weight: 500; z-index: 1; pointer-events: none; }
.input-group-currency .form-control { padding-left: 28px; }

/* Improvement Cost Preview */
.cost-preview {
    background: linear-gradient(135deg, var(--color-success-50, #f0fdf4) 0%, var(--color-success-100, #dcfce7) 100%);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}
.cost-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.cost-preview-header svg {
    width: 24px;
    height: 24px;
    color: var(--success-color);
}
.cost-preview-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--success-color);
}
.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-success-400, #86efac);
}
.cost-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--success-color);
}
.cost-label {
    color: var(--color-success-700);
}
.cost-value {
    font-weight: 600;
    color: var(--color-success-700);
}

/* Improvement History */
.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}
.history-item:last-child {
    margin-bottom: 0;
}
.history-date {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 100px;
}
.history-desc {
    flex: 1;
    font-weight: 500;
}
.history-cost {
    font-weight: 600;
    color: var(--success-color);
}

/* Asset Hero Card */
.asset-hero {
    background: linear-gradient(135deg, var(--color-brand-700, #1e3a5f) 0%, var(--color-brand-550, #2d4a6f) 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.asset-hero-main {
    display: flex;
    padding: 24px;
    gap: 24px;
}

.asset-hero-image {
    position: relative;
    flex-shrink: 0;
}

.asset-hero-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
}

.image-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.asset-hero-image:hover .image-upload-overlay { opacity: 1; }
.image-upload-overlay svg { width: 28px; height: 28px; }
.image-upload-overlay span { font-size: 11px; font-weight: 600; text-transform: uppercase; }

.qr-code-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    background: var(--lux-surface, white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.qr-code-badge img { width: 28px; height: 28px; }
.qr-code-badge:hover { transform: scale(1.05); }

.health-ring {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: rgba(30,58,95,0.95);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.health-ring-value { font-size: 18px; font-weight: 800; color: white; line-height: 1; }
.health-ring-label { font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase; }

.asset-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.asset-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.asset-hero-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
}

/* Asset Page Layout */
.asset-page { max-width: 1400px; }

/* Transaction List */
.transaction-list { display: flex; flex-direction: column; gap: 12px; }
.transaction-item {
    display: grid;
    grid-template-columns: 70px 100px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.transaction-date {
    text-align: center;
    line-height: 1.2;
}
.transaction-date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}
.transaction-date-month {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.transaction-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.transaction-type-badge.success { background: var(--color-success-100, #dcfce7); color: var(--color-success-700); }
.transaction-type-badge.info { background: var(--color-info-100, #dbeafe); color: var(--color-info-700, #1e40af); }
.transaction-type-badge.danger { background: var(--color-danger-100, #fee2e2); color: var(--color-danger-700); }
.transaction-type-badge.warning { background: var(--color-warning-100, #fef3c7); color: var(--color-warning-700); }
.transaction-summary {
    font-weight: 500;
    color: var(--text-primary);
}
.transaction-amount {
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    min-width: 100px;
}

/* Asset Header Card */
.asset-header-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}
.asset-header-content {
    display: flex;
    gap: 24px;
    padding: 20px;
}
.asset-image-container {
    position: relative;
    width: 200px;
    height: 160px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.asset-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.condition-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.7);
    color: white;
}
.condition-excellent, .condition-good { background: rgba(34, 197, 94, 0.9); }
.condition-fair { background: rgba(245, 158, 11, 0.9); }
.condition-poor, .condition-critical, .condition-damaged { background: rgba(239, 68, 68, 0.9); }
