@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock .btn-add {
    width: 30%;
    margin-top: 10px;
}

.stock .btn-clear {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    margin-left: 10px;
}

.stock .transactions-list {
    margin: 25px 0;
}

.stock .transaction-item {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stock .transaction-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.stock .transaction-details {
    font-weight: 600;
    color: #333;
}

.stock .transaction-total {
    color: #667eea;
    font-weight: bold;
}

.stock .btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.stock .btn-remove:hover {
    background: #ff3838;
    transform: scale(1.1);
}

.stock .results {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.stock .result-item {
    margin: 15px 0;
    font-size: 1.2em;
}

.stock .result-value {
    font-weight: bold;
    font-size: 1.4em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stock .hidden {
    display: none;
}

@media (max-width: 768px) {
    .stock .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .stock label {
        min-width: auto;
        margin-bottom: 5px;
    }

    .stock .transaction-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}