/* Styles for the tips column */
.main-tips {
    flex: 1 1 260px;
    min-width: 260px;
    max-width: 280px;
    background: #f7f8fa;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(30,114,197,0.06);
    padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    margin-top: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.tips-container {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(10,37,64,0.05);
}

.tips-container h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6ed;
}

.tip-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 3px solid #1976d2;
}

.tip-item.upgrade {
    border-left-color: #28a745;
    background: #e8f5e8;
}

.tip-item.budget {
    border-left-color: #ff9800;
    background: #fff8e1;
}

.tip-item h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tip-item h4 .icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tip-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.tip-item .tip-action {
    margin-top: 0.8rem;
    text-align: right;
}

.tip-action button {
    background: transparent;
    color: #1976d2;
    border: 1px solid #1976d2;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s;
    margin-top: 0;
}

.tip-action button:hover {
    background: #1976d2;
    color: #fff;
}

.upgrade-tag {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: #28a745;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.save-tag {
    background: #dc3545;
}

/* Update the layout styles to accommodate the new column */
@media (min-width: 1180px) {
    main {
        max-width: 1360px;
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 1179px) {
    .main-tips {
        margin-top: 1.5rem;
        max-width: none;
        width: 100%;
        position: static;
    }
}

@media (max-width: 900px) {
    main {
        padding: 1.2rem 1rem;
    }
    
    .main-left, .main-right, .main-tips {
        margin-bottom: 1.5rem;
    }
}
