/* Enhanced calculator styling with site theme colors */
.calculator-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.progress-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(121, 215, 173, 0.1);
    border: 1px solid rgba(121, 215, 173, 0.2);
}

.progress {
    background: rgba(121, 215, 173, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.6s ease;
}

.main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(121, 215, 173, 0.15);
    border: 1px solid rgba(121, 215, 173, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 2rem;
}

.asset-selection-card {
    border: 2px solid rgba(121, 215, 173, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
}

.asset-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--complementary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-selection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(121, 215, 173, 0.2);
    border-color: var(--primary-color);
}

.asset-selection-card:hover::before {
    opacity: 1;
}

.asset-selection-card.border-primary {
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(121, 215, 173, 0.05), rgba(215, 121, 163, 0.05));
    box-shadow: 0 8px 32px rgba(121, 215, 173, 0.25);
}

.asset-icon {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.asset-selection-card:hover .asset-icon {
    transform: scale(1.15);
}

.quantity-selector .input-group {
    box-shadow: 0 4px 12px rgba(121, 215, 173, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-selector .btn {
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-selector .btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.quantity-selector .form-control {
    border: none;
    background: white;
    font-weight: bold;
    font-size: 18px;
    color: var(--on-surface);
}

.asset-selection-card.border-primary .quantity-selector .input-group {
    box-shadow: 0 6px 20px rgba(121, 215, 173, 0.4);
}

.alert-info {
    background: linear-gradient(135deg, rgba(121, 215, 173, 0.1), rgba(215, 121, 163, 0.1));
    border: 1px solid rgba(121, 215, 173, 0.3);
    border-radius: 12px;
    color: var(--on-surface);
}

.help-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfb 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(121, 215, 173, 0.2);
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--complementary-color));
}

.step-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--complementary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(121, 215, 173, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(121, 215, 173, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(121, 215, 173, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline-secondary {
    background: rgba(121, 215, 173, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.card-title {
    color: var(--on-surface);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-text {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
}

/* Net Worth Tracker Sidebar */
.net-worth-tracker {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(121, 215, 173, 0.15);
    border: 1px solid rgba(121, 215, 173, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.tracker-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.tracker-header h5 {
    font-weight: 600;
    margin: 0;
}

.net-worth-summary {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(121, 215, 173, 0.1);
}

.summary-item {
    margin-bottom: 0;
}

.net-worth-total .label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-surface);
}

.net-worth-total .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.net-worth-total .value.positive {
    color: #22c55e;
}

.net-worth-total .value.negative {
    color: #ef4444;
}

.tracker-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(121, 215, 173, 0.1);
}

.tracker-section:last-child {
    border-bottom: none;
}

.section-header h6 {
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}

.asset-list,
.asset-actions {
    margin-top: 1rem;
}

.asset-actions .btn {
    min-width: 140px;
    font-weight: 500;
}

.list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(121, 215, 173, 0.05);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.item-name {
    font-weight: 500;
    color: var(--on-surface);
    font-size: 0.9rem;
}

.item-value {
    font-weight: 600;
    color: var(--on-surface);
    font-size: 0.95rem;
}

.asset-info {
    flex-grow: 1;
}

.asset-info .asset-name {
    font-weight: 500;
    color: var(--on-surface);
}

.asset-item .asset-actions,
.liability-item .liability-actions {
    display: flex;
    gap: 0.25rem;
}

.asset-item .asset-actions .btn,
.liability-item .liability-actions .btn {
    padding: 0.125rem 0.25rem;
    font-size: 0.7rem;
    line-height: 1;
    min-width: auto;
}

.asset-item .asset-actions .btn .material-icons,
.liability-item .liability-actions .btn .material-icons {
    font-size: 14px !important;
}

.item-count {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    margin-top: 0.25rem;
    margin-left: 26px;
}

.section-total {
    padding-top: 0.75rem;
    border-top: 2px solid rgba(121, 215, 173, 0.2);
    margin-top: 0.5rem;
}

.total-label {
    font-weight: 600;
    color: var(--on-surface);
    font-size: 1rem;
}

.total-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.total-value.assets-total {
    color: #22c55e;
}

.total-value.liabilities-total {
    color: #ef4444;
}

.tracker-progress {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(121, 215, 173, 0.05), rgba(215, 121, 163, 0.05));
    text-align: center;
}

.progress-text {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .net-worth-tracker {
        margin-top: 2rem;
        position: relative;
        top: 0;
    }
}

@media (max-width: 767px) {
    .net-worth-tracker {
        margin-top: 1rem;
    }
    
    .tracker-header,
    .tracker-section,
    .net-worth-summary,
    .tracker-progress {
        padding: 1rem;
    }
    
    .net-worth-total .value {
        font-size: 1.2rem;
    }
    
    .item-name {
        font-size: 0.85rem;
    }
    
    .item-value {
        font-size: 0.9rem;
    }
}
